:root {
    --color-bg: #f7fbff;
    --color-surface: #ffffff;
    --color-surface-soft: #f1f8ff;
    --color-line: #d8e9f7;
    --color-text: #172033;
    --color-muted: #64748b;
    --color-primary: #0284c7;
    --color-primary-dark: #0369a1;
    --color-accent: #f59e0b;
    --color-deep: #08111f;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(14, 116, 144, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
        linear-gradient(180deg, #f8fcff 0%, #eef7ff 48%, #ffffff 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(14, 116, 144, 0.12);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand.compact {
    align-items: flex-start;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), #38bdf8 55%, var(--color-accent));
    box-shadow: var(--shadow-soft);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
}

.desktop-nav a,
.mobile-nav a {
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #e0f2fe;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-primary-dark);
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

.mobile-nav a:hover {
    color: var(--color-primary-dark);
    background: #e0f2fe;
}

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

.hero-slider {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    height: min(70vh, 590px);
    min-height: 480px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-deep);
    box-shadow: 0 28px 70px rgba(2, 8, 23, 0.26);
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 8, 23, 0.9) 0%, rgba(2, 8, 23, 0.62) 45%, rgba(2, 8, 23, 0.22) 100%),
        linear-gradient(0deg, rgba(2, 8, 23, 0.88) 0%, transparent 58%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 76px);
    bottom: clamp(38px, 8vw, 88px);
    width: min(660px, calc(100% - 48px));
    color: white;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span,
.category-tone {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 13px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), #38bdf8);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.tag-row.large span {
    min-height: 34px;
    padding: 7px 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--color-primary), #38bdf8);
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
}

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

.ghost-btn {
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.section-link {
    color: var(--color-primary-dark);
    background: #e0f2fe;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(18px);
}

.hero-controls button {
    border: 0;
}

.hero-controls > button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: inline-flex;
    gap: 7px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 26px;
    background: white;
}

.home-search-band,
.content-section,
.page-hero,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-search-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(14, 116, 144, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.home-search-band span {
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-search-band h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.content-section {
    margin-top: 68px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfe5f6;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--color-text);
    background: #f8fcff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.empty-state {
    display: none;
    padding: 22px;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    background: white;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

.movie-card,
.category-tile,
.category-card,
.article-card {
    overflow: hidden;
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.movie-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--shadow-card);
}

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

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

.movie-card:hover .poster {
    transform: scale(1.05);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 8, 23, 0.72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

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

.rank-badge {
    right: 12px;
    top: 12px;
    background: linear-gradient(135deg, var(--color-accent), #fb7185);
}

.movie-body {
    padding: 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-body h3 a {
    text-decoration: none;
}

.movie-line {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.65;
}

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

.compact-card .poster-link {
    height: 100%;
    min-height: 164px;
    aspect-ratio: auto;
}

.compact-card .movie-line {
    min-height: auto;
}

.category-tile,
.category-card {
    display: block;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-tile h3,
.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p,
.category-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.category-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-mini-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    margin-top: 28px;
    padding: clamp(42px, 7vw, 76px);
    border-radius: var(--radius-xl);
    color: white;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.48), transparent 20rem),
        linear-gradient(135deg, #075985, #0f172a 62%, #111827);
    box-shadow: var(--shadow-card);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero {
    margin-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 34px;
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid rgba(14, 116, 144, 0.13);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 24rem),
        rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
}

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.detail-intro h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-line {
    margin: 0 0 20px;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-list span {
    padding: 9px 12px;
    border-radius: 14px;
    color: #075985;
    background: #e0f2fe;
    font-weight: 900;
}

.detail-intro .primary-btn {
    margin-top: 24px;
}

.detail-section {
    scroll-margin-top: 96px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: 0 28px 70px rgba(2, 8, 23, 0.34);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 8, 23, 0.18), rgba(2, 8, 23, 0.78));
    cursor: pointer;
}

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

.player-overlay strong {
    font-size: 22px;
    font-weight: 900;
}

.play-ring {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.play-ring span {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid white;
}

.article-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid rgba(14, 116, 144, 0.13);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #eaf6ff);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 32px;
}

.footer-brand p {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h2 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 900;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--color-primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: #64748b;
    font-size: 14px;
}

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

    .nav-toggle {
        display: block;
    }

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

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

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

    .filter-panel .search-box {
        grid-column: 1 / -1;
    }

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

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

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-slider {
        min-height: 560px;
        height: 74vh;
        border-radius: 24px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(2, 8, 23, 0.92) 0%, rgba(2, 8, 23, 0.32) 100%);
    }

    .hero-content {
        left: 22px;
        bottom: 88px;
        width: calc(100% - 44px);
    }

    .hero-controls {
        right: 18px;
        bottom: 18px;
        left: 18px;
        justify-content: space-between;
    }

    .home-search-band,
    .section-heading,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .rank-grid,
    .category-grid,
    .category-grid.large,
    .article-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .filter-panel .search-box {
        grid-column: auto;
    }

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

    .detail-poster img {
        min-height: auto;
        aspect-ratio: 2 / 3;
    }

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

@media (max-width: 480px) {
    .movie-grid {
        gap: 16px;
    }

    .movie-card:not(.compact-card) .movie-body {
        padding: 14px;
    }

    .hero-content h1,
    .detail-intro h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .home-search-band,
    .page-hero,
    .detail-layout,
    .article-card,
    .category-card,
    .category-tile {
        padding: 22px;
    }
}
