* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.26);
}

.brand-text {
    font-size: 1.45rem;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 650;
    color: #4b5563;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ea580c;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #475569;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav .nav-link {
    display: block;
    padding: 11px 4px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.26), transparent 24%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding-right: min(36vw, 420px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow.dark {
    color: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.08em;
    text-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 26px;
    font-size: clamp(1.08rem, 2.4vw, 1.45rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.detail-chip-row,
.ranking-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-chip-row span,
.ranking-tags span,
.ranking-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-chip-row span,
.ranking-tags span,
.ranking-tags a {
    color: #4b5563;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 28px;
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.secondary-button {
    min-height: 48px;
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-overlay-panel {
    position: absolute;
    z-index: 3;
    right: max(22px, calc((100vw - 1180px) / 2));
    bottom: 90px;
    width: min(360px, calc(100% - 44px));
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.hero-overlay-panel h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.hero-pick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-pick {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-pick img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.3s ease;
}

.hero-pick span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 8px 18px rgba(15, 23, 42, 0.44);
}

.hero-pick:hover img {
    transform: scale(1.08);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.section {
    padding: 78px 0;
}

.section-white {
    background: #ffffff;
}

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.section-amber {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-heading.slim {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -0.05em;
    color: #111827;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #64748b;
}

.text-link {
    color: #ea580c;
    font-size: 0.95rem;
}

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

.category-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
}

.category-card-main {
    display: block;
    min-height: 190px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-orb {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #111827;
}

.category-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.93rem;
}

.category-mini-links {
    display: grid;
    gap: 1px;
    background: #f1f5f9;
}

.category-mini-links a {
    padding: 11px 18px;
    background: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-mini-links a:hover {
    color: #ea580c;
}

.accent-rose .category-orb,
.page-hero.accent-rose {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.accent-amber .category-orb,
.page-hero.accent-amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.accent-blue .category-orb,
.page-hero.accent-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.accent-emerald .category-orb,
.page-hero.accent-emerald {
    background: linear-gradient(135deg, #059669, #34d399);
}

.accent-cyan .category-orb,
.page-hero.accent-cyan {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.accent-slate .category-orb,
.page-hero.accent-slate {
    background: linear-gradient(135deg, #334155, #64748b);
}

.accent-violet .category-orb,
.page-hero.accent-violet {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.accent-lime .category-orb,
.page-hero.accent-lime {
    background: linear-gradient(135deg, #65a30d, #bef264);
}

.accent-indigo .category-orb,
.page-hero.accent-indigo {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 13px;
    color: #111827;
    background: #ffffff;
    outline: 0;
    transition: border 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.compact-card .movie-cover {
    height: 180px;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.42s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(15, 23, 42, 0.72));
}

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .cover-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #e11d48, #f97316);
    font-weight: 900;
}

.movie-body {
    padding: 18px;
}

.movie-meta-line,
.movie-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #64748b;
    font-size: 0.82rem;
}

.movie-meta-line a {
    color: #ea580c;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 9px;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card h3 a:hover {
    color: #ea580c;
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero,
.detail-hero {
    padding: 86px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #ea580c);
    overflow: hidden;
}

.category-hero {
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.ranking-hero {
    background: linear-gradient(135deg, #9f1239, #f97316);
}

.search-hero {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

.page-hero h1,
.detail-hero h1 {
    max-width: 880px;
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.07em;
}

.page-hero p,
.detail-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.category-preview {
    margin-top: 54px;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 62px 128px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.compact-ranking .ranking-item:nth-child(n + 9) {
    display: none;
}

.ranking-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    font-size: 1.1rem;
    font-weight: 900;
}

.ranking-thumb {
    width: 128px;
    height: 82px;
    overflow: hidden;
    border-radius: 16px;
    background: #fed7aa;
}

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

.ranking-body h3 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    color: #111827;
}

.ranking-body h3 a:hover {
    color: #ea580c;
}

.ranking-body p {
    margin: 0 0 10px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-hero {
    background-size: cover;
    background-position: center;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fde68a);
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
}

.detail-facts span {
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-info-card,
.detail-text-block,
.detail-related-block,
.side-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.player-card,
.detail-info-card,
.detail-text-block,
.detail-related-block {
    padding: 24px;
}

.player-card h2,
.detail-info-card h2,
.detail-text-block h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 1.35rem;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.48), rgba(2, 6, 23, 0.82)),
        linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.8));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ea580c;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    font-size: 1.7rem;
}

.play-title {
    max-width: 80%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.lead-text {
    margin: 0 0 20px;
    padding: 18px;
    border-radius: 18px;
    color: #374151;
    background: #f8fafc;
    font-size: 1.05rem;
}

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

.fact-grid div {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
}

.fact-grid span {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.8rem;
}

.fact-grid strong {
    color: #111827;
    font-size: 0.95rem;
}

.detail-text-block p {
    margin: 0;
    color: #374151;
    white-space: pre-line;
}

.review-block {
    border-left: 6px solid #f97316;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
}

.side-card {
    padding: 22px;
    position: sticky;
    top: 98px;
}

.side-card + .side-card {
    position: static;
}

.side-category {
    display: block;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    color: #ea580c;
    background: #fff7ed;
    font-weight: 800;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-related {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-related img {
    width: 92px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: #fed7aa;
}

.side-related span {
    font-weight: 750;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1.4fr;
    gap: 38px;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
    color: #94a3b8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.footer-column a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-column a:hover {
    color: #f59e0b;
}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

[data-movie-card].is-hidden {
    display: none;
}

@media (max-width: 1040px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-overlay-panel {
        display: none;
    }

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

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

    .detail-hero-grid {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 13vw, 3.7rem);
    }

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

    .section {
        padding: 54px 0;
    }

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

    .category-grid,
    .movie-grid,
    .movie-grid.small-grid,
    .movie-grid.wide-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 48px 92px minmax(0, 1fr);
    }

    .ranking-item .text-link {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .ranking-thumb {
        width: 92px;
        height: 68px;
    }

    .ranking-tags span:nth-child(n + 3),
    .ranking-tags a:nth-child(n + 3) {
        display: none;
    }

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

    .detail-poster {
        max-width: 210px;
    }

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

    .player-card,
    .detail-info-card,
    .detail-text-block,
    .detail-related-block,
    .side-card {
        padding: 18px;
        border-radius: 20px;
    }

    .footer-link-grid {
        grid-template-columns: 1fr;
    }
}
