:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef9ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #eff6ff 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(18px);
}

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

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

.brand span:last-child,
.footer-brand {
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.14);
    color: #67e8f9;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 15px;
    padding: 10px 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    background: rgba(51, 65, 85, 0.72);
    color: #ffffff;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(51, 65, 85, 0.82);
    padding: 10px;
}

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

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
    color: #ffffff;
}

.hero-stage,
.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-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.16), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(760px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto 0 max(24px, calc((100vw - 1280px) / 2));
    padding: 104px 0 128px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
    color: #67e8f9;
    border-color: rgba(103, 232, 249, 0.34);
    background: rgba(8, 145, 178, 0.18);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-content p,
.page-hero p,
.detail-line {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.9;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
}

.tag-list span {
    background: #ecfeff;
    color: #0e7490;
}

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

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

.primary-button,
.inline-search button,
.hero-search button {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.36);
    color: #ffffff;
}

.primary-button:hover,
.ghost-button:hover,
.inline-search button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    font-size: 36px;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(8, 145, 178, 0.78);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 28px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

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

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 56px;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(220px, 460px) auto;
    gap: 10px;
    width: min(620px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-search input,
.inline-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    outline: none;
    padding: 0 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

.section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.75rem, 3vw, 3rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
    color: #0891b2;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

.movie-poster img,
.rank-thumb img,
.detail-poster img,
.category-tile img,
.category-mini-grid img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.category-tile:hover img,
.category-mini-grid a:hover img {
    transform: scale(1.06);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 9px;
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 3.2em;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 950;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-title:hover,
.rank-title:hover {
    color: #0891b2;
}

.movie-meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-line {
    display: -webkit-box;
    min-height: 4.7em;
    margin: 10px 0 14px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0.58;
}

.category-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.1));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 22px;
}

.category-tile span {
    margin-top: 112px;
    font-size: 25px;
    font-weight: 950;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.highlight-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.22), transparent 28%),
        linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 36px;
    align-items: center;
}

.two-column h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.two-column p {
    margin: 20px 0 28px;
    color: #475569;
    font-size: 18px;
    line-height: 1.9;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.24), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #155e75 100%);
}

.small-hero {
    padding: 76px 0 64px;
}

.page-hero h1,
.detail-info h1 {
    max-width: 940px;
}

.inline-search {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 10px;
    width: min(660px, 100%);
    margin-top: 28px;
}

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

.breadcrumb a:hover {
    color: #67e8f9;
}

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

.category-overview-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 28px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.category-overview-card h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
}

.category-overview-card p {
    margin: 10px 0 20px;
    color: #64748b;
    line-height: 1.8;
}

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

.category-mini-grid a {
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
}

.category-mini-grid img {
    aspect-ratio: 2 / 3;
}

.category-mini-grid span {
    display: block;
    padding: 8px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 22px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    font-weight: 950;
}

.rank-thumb {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

.rank-title {
    display: inline-block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.rank-content p {
    margin: 6px 0;
    color: #64748b;
    font-size: 14px;
}

.rank-content span {
    color: #475569;
    line-height: 1.65;
}

.detail-hero {
    padding: 70px 0;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.5);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
}

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

.detail-meta {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.player-section {
    padding-top: 64px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 88px rgba(15, 23, 42, 0.24);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16), rgba(2, 6, 23, 0.76));
    color: #ffffff;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.42);
    font-size: 34px;
    text-indent: 4px;
}

.player-cover strong {
    font-size: 20px;
}

.text-panel {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 28px;
    background: #ffffff;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 950;
}

.text-panel h2:not(:first-child) {
    margin-top: 34px;
}

.text-panel p {
    color: #334155;
    font-size: 17px;
    line-height: 2;
}

.empty-state {
    border: 1px dashed rgba(6, 182, 212, 0.36);
    border-radius: 20px;
    background: #ecfeff;
    color: #0e7490;
    font-weight: 800;
    padding: 22px;
    text-align: center;
}

.site-footer {
    margin-top: 54px;
    background: #0f172a;
    color: #cbd5e1;
}

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

.footer-inner p {
    margin: 12px 0 0;
    color: #94a3b8;
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a,
.footer-cats a {
    color: #cbd5e1;
    font-weight: 700;
}

.footer-links a:hover,
.footer-cats a:hover {
    color: #67e8f9;
}

[hidden] {
    display: none !important;
}

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

    .menu-button {
        display: block;
    }

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

    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero-slider {
        min-height: 82vh;
    }

    .hero-content {
        margin: 0 auto;
        padding: 92px 0 168px;
    }

    .hero-search,
    .inline-search {
        grid-template-columns: 1fr;
    }

    .hero-control {
        display: none;
    }

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

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

    .detail-poster {
        width: min(280px, 78vw);
        margin: 0 auto;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 22px, 1280px);
    }

    .mobile-nav.is-open {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .category-mini-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 42px 74px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 12px;
    }
}
