:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --sky: #e0f7ff;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --dark: #111827;
    --gold: #facc15;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.65;
}

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

img,
video {
    display: block;
    width: 100%;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.26);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--gold);
    opacity: 1;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #0f172a;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.62), rgba(6, 182, 212, 0.28));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 560px;
    padding-top: 30px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 16px 0 8px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-actions,
.detail-copy .button {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.button.ghost {
    margin-left: 12px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button.ghost-dark {
    color: var(--blue);
    border-color: rgba(37, 99, 235, 0.22);
    background: #eff6ff;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--gold);
}

.hero-search-card {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 360px) 1.2fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search-card strong {
    display: block;
    font-size: 20px;
}

.hero-search-card span {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search-inline,
.search-panel {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
}

.hero-search-inline input,
.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    color: var(--ink);
}

.hero-search-inline button,
.search-panel button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    color: #ffffff;
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-links a {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #e0f7ff);
}

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

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

.section-more {
    color: var(--blue);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

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

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: #111827;
    background: var(--gold);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.32);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--blue);
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.is-compact .movie-card-body {
    padding: 14px;
}

.is-compact h3 {
    font-size: 16px;
}

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

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: stretch;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.ranking-list span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 900;
}

.ranking-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.feature-panel {
    padding: 34px;
    border-radius: var(--radius);
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 32%), linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: var(--shadow);
}

.feature-panel span {
    color: #fde68a;
    font-weight: 900;
}

.feature-panel h2 {
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.14;
}

.feature-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.category-grid-home,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.category-showcase,
.category-tile {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.category-showcase-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.category-showcase-head h3,
.category-tile h2 {
    margin: 0;
    font-size: 26px;
}

.category-showcase-head p,
.category-tile p {
    margin: 6px 0 0;
    color: var(--muted);
}

.category-showcase-head a {
    flex: 0 0 auto;
    color: var(--blue);
    font-weight: 900;
}

.page-hero {
    padding: 88px 0 74px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.26), transparent 26%), linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.search-panel {
    max-width: 760px;
    margin: 0 auto 32px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.category-links {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.category-links a {
    color: var(--blue);
    font-weight: 700;
}

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

.ranking-feature {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-feature img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ranking-feature div {
    padding: 22px;
}

.ranking-feature span {
    color: var(--blue);
    font-weight: 900;
}

.ranking-feature h2 {
    margin: 8px 0;
    font-size: 24px;
}

.ranking-feature p {
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    filter: blur(2px);
}

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.72), rgba(6, 182, 212, 0.42));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 14px 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid span {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-grid strong {
    display: block;
    color: #bfdbfe;
    font-size: 12px;
}

.detail-tags span {
    color: #083344;
    background: #cffafe;
}

.player-shell {
    overflow: hidden;
    border-radius: var(--radius);
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.55));
    cursor: pointer;
}

.play-cover.is-hidden {
    display: none;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35);
    font-size: 36px;
}

.player-info {
    padding: 24px;
    color: #ffffff;
}

.player-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.player-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.prose-section {
    max-width: 900px;
}

.prose-section h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.prose-section p {
    margin: 0 0 28px;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p,
.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #67e8f9;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

.hidden-by-search {
    display: none !important;
}

@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-search-card,
    .split-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        align-items: start;
    }

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

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

    .mobile-menu-button {
        display: flex;
    }

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

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        min-height: 520px;
        align-items: end;
        padding-bottom: 160px;
    }

    .hero-search-card {
        bottom: 16px;
        width: min(100% - 24px, 1180px);
        padding: 16px;
    }

    .hero-controls {
        bottom: 232px;
    }

    .hero-actions {
        display: grid;
        gap: 12px;
        max-width: 240px;
    }

    .button.ghost {
        margin-left: 0;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading,
    .category-showcase-head,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .mini-grid,
    .category-grid-home,
    .category-overview-grid,
    .ranking-feature-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .ranking-list a {
        grid-template-columns: 42px 1fr;
    }

    .ranking-list em {
        grid-column: 2;
    }
}
