:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #ecfeff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --brand: #0f766e;
    --brand-bright: #0891b2;
    --accent: #f59e0b;
    --accent-soft: #fef3c7;
    --dark: #111827;
    --dark-soft: #1f2937;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.10), transparent 32rem), var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

[hidden] {
    display: none !important;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f766e, #0891b2);
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #0f766e;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
}

.brand-name {
    font-size: 1.38rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
}

.main-nav a,
.nav-trigger {
    color: #ffffff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.nav-trigger:hover {
    color: #fcd34d;
}

.nav-dropdown {
    position: relative;
}

.nav-trigger {
    padding: 0;
    background: transparent;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 0;
    width: 220px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 700;
}

.dropdown-panel a:hover {
    color: #0f766e;
    background: #ecfeff;
}

.header-search {
    flex: 0 1 290px;
}

.search-field {
    position: relative;
}

.search-field input,
.filter-input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0 18px 0 44px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-field input:focus,
.filter-input:focus {
    border-color: #fcd34d;
    box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.25);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #ffffff;
    font-weight: 700;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.30)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.12));
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 76px 0 110px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #78350f;
    background: #fde68a;
    font-size: 0.86rem;
    font-weight: 900;
}

.hero h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 1.1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 0.82rem;
    font-weight: 900;
}

.badge.dark {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.badge.gold {
    color: #78350f;
    background: #fde68a;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.88));
}

.hero-card-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    font-size: 1.22rem;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #fbbf24;
}

.page-hero {
    padding: 56px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(251, 191, 36, 0.28), transparent 26rem),
        linear-gradient(135deg, #0f766e, #0891b2 58%, #0f172a);
}

.page-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dcfce7;
    font-size: 1.05rem;
}

.section {
    padding: 64px 0;
}

.section.tight {
    padding-top: 34px;
}

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

.section-title h2,
.section-title h1 {
    margin: 10px 0 4px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-title p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -46px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #e0f2fe;
    font-size: 0.92rem;
}

.category-preview {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-preview span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #cffafe;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.filter-bar .search-field input {
    min-height: 52px;
    border-color: #bae6fd;
    background: #ffffff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.34);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #78350f;
    background: #fde68a;
    font-size: 0.78rem;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.88rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0f766e;
    background: #ecfeff;
    font-size: 0.75rem;
    font-weight: 800;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 84px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 1.05rem;
    font-weight: 900;
}

.rank-cover {
    width: 84px;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 5px;
    font-size: 1.02rem;
    font-weight: 900;
}

.rank-summary {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(160deg, #0f766e, #0f172a);
    box-shadow: var(--shadow);
}

.side-panel h2 {
    margin: 0 0 12px;
}

.side-panel p {
    margin: 0 0 16px;
    color: #dbeafe;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.55;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.74));
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 64px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #dbeafe;
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: #fde68a;
    font-weight: 800;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #e0f2fe;
    font-size: 1.1rem;
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

.player-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.82));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 28px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.36);
}

.play-symbol {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

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

.content-card {
    padding: 26px;
    border: 1px solid #dbeafe;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

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

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.info-list div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.info-list dt {
    color: #64748b;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.related-grid {
    display: grid;
    gap: 12px;
}

.related-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
    transform: translateX(3px);
    border-color: #67e8f9;
}

.related-link img {
    width: 72px;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-link strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.related-link span {
    color: #64748b;
    font-size: 0.82rem;
}

.empty-state {
    margin-top: 20px;
    padding: 24px;
    border-radius: 24px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
}

.site-footer {
    padding: 52px 0 28px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

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

.site-footer p {
    margin: 0;
    color: #cbd5e1;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero-inner,
    .detail-inner,
    .content-grid,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }

    .side-panel {
        position: static;
    }

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

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

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-name {
        font-size: 1.08rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero-inner {
        gap: 26px;
        padding: 46px 0 96px;
    }

    .hero h1 {
        letter-spacing: -0.05em;
    }

    .section {
        padding: 44px 0;
    }

    .section-head,
    .filter-bar {
        grid-template-columns: 1fr;
        display: grid;
        align-items: start;
    }

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

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

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .rank-cover {
        width: 64px;
    }

    .rank-row .btn {
        grid-column: 1 / -1;
    }

    .detail-inner {
        padding: 42px 0;
        gap: 26px;
    }

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

    .content-card {
        padding: 20px;
    }

    .info-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

@media (max-width: 460px) {
    .category-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .section-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }
}
