:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --amber: #f59e0b;
    --orange: #fb923c;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12), transparent 30rem),
        radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.10), transparent 26rem),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #111827, #334155);
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    max-width: 1200px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #020617;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav > a,
.nav-drop > button {
    color: var(--muted-strong);
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-drop:hover > button {
    color: var(--amber);
}

.nav-drop {
    position: relative;
}

.nav-panel {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 168px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.2s ease;
}

.nav-drop:hover .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-panel a {
    display: block;
    padding: 10px 12px;
    color: var(--muted-strong);
    border-radius: 12px;
}

.nav-panel a:hover {
    color: var(--amber);
    background: rgba(255, 255, 255, 0.06);
}

.nav-search {
    position: relative;
    display: flex;
    width: 260px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input {
    min-width: 0;
    flex: 1;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 16px;
}

.nav-search input::placeholder {
    color: #64748b;
}

.nav-search button {
    border: 0;
    color: #0f172a;
    background: var(--amber);
    padding: 0 16px;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 36%, rgba(2, 6, 23, 0.28) 76%, rgba(2, 6, 23, 0.72) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 60px;
    align-items: center;
    padding-top: 34px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

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

.hero p {
    max-width: 690px;
    color: #dbeafe;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
}

.hero-poster-card img {
    position: absolute;
    inset: 0;
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 54%);
}

.hero-card-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
}

.hero-card-text strong {
    display: block;
    font-size: 22px;
}

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

.hero-dots button {
    width: 32px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--amber);
}

.section {
    padding: 68px 0;
}

.section.alt {
    background: rgba(15, 23, 42, 0.52);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
}

.text-link {
    color: var(--amber);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 44%);
}

.card-score {
    position: absolute;
    right: 12px;
    top: 12px;
    color: #0f172a;
    background: #fbbf24;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 900;
    font-size: 13px;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--amber);
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #475569;
}

.card-body p,
.rank-card p,
.detail-copy p {
    color: var(--muted-strong);
    margin: 0;
}

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

.tag-row span {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

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

.channel-pill {
    padding: 18px;
    min-height: 126px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.88));
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.channel-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.44);
}

.channel-pill strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.channel-pill span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
}

.rank-num {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    font-weight: 900;
    border-radius: 999px;
    padding: 4px 9px;
}

.rank-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
}

.rank-card h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

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

.breadcrumb a:hover {
    color: var(--amber);
}

.page-hero {
    padding: 54px 0 38px;
}

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

.page-hero p {
    max-width: 780px;
    color: var(--muted-strong);
    font-size: 17px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
}

.filter-bar input,
.filter-bar select {
    color: var(--text);
    background: rgba(30, 41, 59, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    outline: 0;
}

.filter-bar input {
    min-width: min(100%, 320px);
    flex: 1;
}

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

.player-card,
.detail-side,
.copy-card {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.player-box video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #0f172a;
    border: 0;
    background: rgba(2, 6, 23, 0.18);
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #fb923c);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
    font-size: 32px;
    padding-left: 5px;
}

.play-overlay.hidden {
    display: none;
}

.player-info {
    padding: 26px;
}

.player-info h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-side {
    padding: 20px;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    margin-bottom: 18px;
}

.detail-side h2,
.copy-card h2,
.related-section h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.copy-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-copy p + p {
    margin-top: 18px;
}

.related-section {
    padding: 54px 0;
}

.search-empty {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
    padding: 54px 24px 26px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 42px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-grid p {
    color: var(--muted);
    max-width: 420px;
}

.footer-grid a:not(.footer-logo) {
    display: inline-block;
    color: var(--muted-strong);
    margin: 0 16px 10px 0;
}

.footer-grid a:hover {
    color: var(--amber);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 980px) {
    .nav-wrap {
        gap: 14px;
    }

    .main-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    body.menu-open .main-nav,
    body.menu-open .nav-search {
        position: fixed;
        left: 16px;
        right: 16px;
        display: flex;
        z-index: 80;
    }

    body.menu-open .main-nav {
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    body.menu-open .nav-search {
        top: 340px;
        width: auto;
    }

    .nav-drop {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        align-content: center;
    }

    .hero-poster-card {
        display: none;
    }

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

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

    .rank-list,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .nav-wrap,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 21px;
    }

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

    .grid,
    .grid.three,
    .channel-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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