:root {
    color-scheme: light;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: #ffedd5;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --page: #fff7ed;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 34%, #f9fafb 100%);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(120deg, #f97316 0%, #fb923c 44%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.site-logo span,
.footer-logo {
    font-size: 23px;
}

.site-logo::before,
.footer-logo::before {
    content: "▶";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-links a,
.mobile-menu a {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.top-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input {
    width: 220px;
    border: 0;
    border-radius: 999px;
    padding: 10px 96px 10px 16px;
    outline: 0;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transition: width 0.25s ease, background 0.25s ease;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.top-search input:focus {
    width: 270px;
    background: rgba(255, 255, 255, 0.3);
}

.top-search button,
.mobile-search button {
    position: absolute;
    right: 4px;
    border: 0;
    border-radius: 999px;
    padding: 7px 15px;
    background: #ffffff;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 23px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    margin-top: 8px;
}

.mobile-search input {
    width: 100%;
}

.search-panel {
    position: fixed;
    top: 86px;
    right: max(18px, calc((100vw - 1180px) / 2));
    width: min(520px, calc(100vw - 32px));
    max-height: min(640px, calc(100vh - 120px));
    overflow: auto;
    border-radius: 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.search-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.search-panel-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    cursor: pointer;
    font-size: 22px;
}

.search-results {
    padding: 12px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

.search-result-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.search-result-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.search-result-item p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.search-result-item em {
    color: var(--brand-dark);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    height: min(68vh, 560px);
    min-height: 430px;
    margin: 28px auto 22px;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 34px 80px rgba(17, 24, 39, 0.28);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 20%, rgba(249, 115, 22, 0.32), transparent 34%), linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.18) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 40%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 7vw, 76px);
    bottom: clamp(36px, 9vw, 86px);
    width: min(640px, calc(100% - 48px));
    color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    max-width: 610px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2.2vw, 21px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-actions,
.quick-entry,
.story-card h2,
.section-head,
.filter-card form {
    display: flex;
    align-items: center;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.glass-btn,
.text-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 24px;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(249, 115, 22, 0.34);
}

.primary-btn:hover,
.glass-btn:hover,
.text-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.glass-btn {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-actions.small .primary-btn,
.hero-actions.small .glass-btn {
    min-height: 40px;
    padding: 0 18px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.quick-entry {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0 54px;
}

.quick-entry a {
    border-radius: 999px;
    padding: 10px 18px;
    background: #ffffff;
    color: var(--brand-dark);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.12);
    font-weight: 900;
}

.content-section {
    margin: 0 0 66px;
}

.section-head {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(27px, 3.5vw, 38px);
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link,
.text-btn {
    color: var(--brand-dark);
    background: var(--brand-soft);
    padding: 10px 16px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.movie-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #fed7aa, #fdba74);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 42%, rgba(0, 0, 0, 0.62));
}

.card-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.card-badge.top-left {
    top: 12px;
    left: 12px;
}

.card-badge.bottom-right {
    right: 12px;
    bottom: 12px;
    background: rgba(37, 99, 235, 0.92);
}

.movie-card-body {
    padding: 18px;
}

.movie-card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card-body h3 a:hover,
.ranking-copy h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand-dark);
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.tag-row,
.detail-tags,
.mini-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span,
.mini-title-row span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 800;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.compact-card {
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 22px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
}

.compact-card img {
    width: 112px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    background: #fed7aa;
}

.compact-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 17px;
}

.compact-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 26px;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-tile span,
.category-overview-card .category-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.16));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 20px;
    right: 20px;
}

.category-tile strong {
    bottom: 54px;
    font-size: 22px;
}

.category-tile em {
    bottom: 20px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.ranking-shell {
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(135deg, #111827, #7c2d12);
    box-shadow: var(--shadow);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 48px 64px 1fr;
    gap: 13px;
    align-items: center;
    border-radius: 18px;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.rank-num {
    font-size: 20px;
    font-weight: 900;
    color: #fdba74;
}

.ranking-list img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    background: #fed7aa;
}

.rank-copy strong {
    display: block;
    margin-bottom: 6px;
}

.rank-copy em {
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 28px 0 34px;
    border-radius: 32px;
    padding: clamp(34px, 7vw, 70px);
    color: #ffffff;
    background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 25%), linear-gradient(120deg, #7c2d12 0%, #f97316 50%, #f59e0b 100%);
    box-shadow: 0 22px 60px rgba(249, 115, 22, 0.22);
}

.page-hero.slim {
    min-height: 260px;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    margin: 18px 0 12px;
    max-width: 820px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
    font-size: 17px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 70px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    align-items: stretch;
    border-radius: 28px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.category-cover {
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    overflow: hidden;
    background: #fed7aa;
}

.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 6px 0 10px;
    font-size: 25px;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.mini-title-row {
    margin-bottom: 18px;
}

.filter-card {
    margin: -10px 0 34px;
    border-radius: 26px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.filter-card form {
    gap: 16px;
    flex-wrap: wrap;
}

.filter-card label {
    display: grid;
    gap: 8px;
    flex: 1 1 220px;
}

.filter-card label span {
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.filter-card input,
.filter-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    outline: 0;
    background: #f9fafb;
    color: var(--ink);
}

.filter-card input:focus,
.filter-card select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

.ranking-page-list {
    display: grid;
    gap: 16px;
    margin-bottom: 70px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 72px 112px 1fr auto;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 14px 18px 14px 14px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.ranking-rank {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    font-weight: 900;
    font-size: 20px;
}

.ranking-poster img {
    width: 112px;
    height: 150px;
    border-radius: 18px;
    object-fit: cover;
    background: #fed7aa;
}

.ranking-copy h2 {
    margin: 0 0 10px;
    font-size: 23px;
}

.ranking-copy p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-page {
    margin: 26px 0 42px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--brand-dark);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.58fr);
    gap: 28px;
    align-items: stretch;
}

.player-card,
.detail-copy,
.story-card {
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.11);
}

.player-card {
    overflow: hidden;
    background: #111827;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.08) contrast(1.08);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(249, 115, 22, 0.32), transparent 28%), linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.2));
}

.play-launch {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    border: 0;
    border-radius: 999px;
    padding: 15px 24px 15px 18px;
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.42);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-launch:hover {
    transform: scale(1.05);
    background: var(--brand-dark);
}

.play-launch span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.detail-copy {
    padding: clamp(22px, 4vw, 34px);
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(31px, 4.8vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-copy .lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
    font-size: 17px;
}

.detail-copy .detail-meta span {
    color: #7c2d12;
    background: #ffedd5;
}

.detail-tags {
    margin-top: 18px;
}

.story-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 34px);
}

.story-card.soft {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.story-card h2 {
    gap: 10px;
    margin: 0 0 14px;
    font-size: 26px;
}

.story-card h2::before {
    content: "";
    width: 10px;
    height: 28px;
    border-radius: 999px;
    background: var(--brand);
}

.story-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    font-size: 17px;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
    margin-top: 70px;
    padding: 46px 0;
    color: rgba(255, 255, 255, 0.8);
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.footer-logo {
    color: #ffffff;
}

.footer-inner p {
    max-width: 760px;
    margin: 0;
    line-height: 1.8;
}

.footer-inner nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-weight: 800;
}

.footer-inner nav a:hover {
    color: #ffffff;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .nav-links,
    .top-search {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero-carousel {
        min-height: 520px;
        border-radius: 26px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 58px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.three,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-card,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .ranking-card .text-btn {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    main,
    .mobile-menu,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .site-logo span {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 560px;
        margin-top: 16px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 37px;
    }

    .hero-actions,
    .quick-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .glass-btn {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.three,
    .related-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .horizontal-row {
        grid-auto-columns: minmax(250px, 86vw);
    }

    .compact-card {
        grid-template-columns: 96px 1fr;
    }

    .compact-card img {
        width: 96px;
        height: 70px;
    }

    .page-hero,
    .story-card,
    .detail-copy {
        border-radius: 24px;
    }
}
