:root {
    color-scheme: light;
    --site-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-soft: #64748b;
    --text-muted: #94a3b8;
    --line: #e2e8f0;
    --brand: #0d9488;
    --brand-strong: #0891b2;
    --brand-deep: #2563eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #eef7fb 100%);
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong), var(--brand-deep));
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.28);
}

.brand-text {
    font-size: 22px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #0f766e;
    background: #ecfeff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: linear-gradient(120deg, #0f766e 0%, #0891b2 48%, #2563eb 100%);
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
    background-size: 42px 42px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -15% -35% auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(5px);
}

.hero-stage {
    position: relative;
    z-index: 1;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr;
    align-items: center;
    gap: 56px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
    max-width: 720px;
    padding: 64px 0 96px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #e0f2fe;
    font-weight: 800;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 24px;
    color: #dff8ff;
    font-size: 18px;
    line-height: 1.9;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0;
}

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

.btn-primary {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

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

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.btn-soft {
    color: #0f766e;
    background: #ecfeff;
    border-color: #ccfbf1;
}

.hero-search {
    width: min(100%, 620px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.hero-search input,
.section-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
}

.hero-search button,
.section-search button {
    min-height: 48px;
    white-space: nowrap;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.hero-poster-wrap {
    position: relative;
    min-height: 480px;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    transform: rotate(2deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster-info {
    position: absolute;
    inset: auto 16px 16px 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.hero-poster-info span {
    color: #bfdbfe;
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hero-arrows,
.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    padding: 0;
}

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

.quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.quick-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ecfeff;
    font-weight: 800;
    font-size: 13px;
}

.section {
    padding: 62px 0;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-title p,
.page-title p,
.detail-title p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.section-kicker,
.detail-kicker {
    color: #0f766e;
    border-color: #ccfbf1;
    background: #ecfeff;
}

.section-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 430px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #99f6e4;
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.24);
}

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

.movie-meta-line,
.breadcrumbs,
.detail-meta,
.rank-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span,
.detail-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

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

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

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-row span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2 54%, #2563eb);
    box-shadow: var(--shadow-card);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0e7490, #2563eb 58%, #4f46e5);
}

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

.category-card p {
    color: #dff8ff;
    line-height: 1.8;
}

.category-card span {
    display: inline-flex;
    align-self: flex-start;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 94px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.rank-number {
    font-size: 28px;
    font-weight: 950;
    color: #0f766e;
    text-align: center;
}

.rank-thumb img {
    width: 94px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.rank-info p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.page-hero,
.detail-hero {
    padding: 56px 0 38px;
    background: linear-gradient(180deg, #ecfeff 0%, rgba(236, 254, 255, 0) 100%);
}

.breadcrumbs {
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: #0f766e;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 34px;
    align-items: start;
}

.detail-poster {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.player-card,
.content-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.video-shell {
    position: relative;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.74), rgba(14, 116, 144, 0.50));
}

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

.play-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    cursor: pointer;
    color: #0f766e;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
    font-size: 38px;
}

.player-caption {
    padding: 20px 22px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 950;
}

.player-caption p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.content-card {
    padding: 26px;
}

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

.content-card p {
    margin: 0 0 16px;
    color: #334155;
    line-height: 1.95;
}

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

.site-footer {
    margin-top: 60px;
    padding: 42px 0;
    color: #dbeafe;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-weight: 800;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        border-radius: 14px;
    }

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

    .hero-slide {
        gap: 22px;
        align-content: center;
    }

    .hero-copy {
        padding: 54px 0 0;
    }

    .hero-poster-wrap {
        min-height: 320px;
        max-width: 320px;
        margin: 0 auto 74px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 56px 78px 1fr;
    }

    .rank-item .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .detail-poster {
        position: static;
        max-width: 360px;
    }
}

@media (max-width: 620px) {
    .page-container,
    .nav-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 720px;
    }

    .hero-stage {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-search,
    .section-search {
        flex-direction: column;
        align-items: stretch;
    }

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

    .section {
        padding: 44px 0;
    }

    .rank-item {
        grid-template-columns: 48px 70px 1fr;
        gap: 12px;
    }

    .rank-number {
        font-size: 22px;
    }

    .rank-thumb img {
        width: 70px;
        border-radius: 14px;
    }
}
