:root {
    --bg: #070a12;
    --bg-soft: #0d1322;
    --bg-card: rgba(15, 23, 42, 0.82);
    --text: #f8fafc;
    --muted: #a7b0c1;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #f97316;
    --brand-2: #ef4444;
    --brand-3: #facc15;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(249, 115, 22, 0.20), transparent 28rem),
        radial-gradient(circle at 100% 10%, rgba(239, 68, 68, 0.18), transparent 26rem),
        linear-gradient(135deg, #05070d 0%, #0f172a 48%, #111827 100%);
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(7, 10, 18, 0.76);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-logo::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.42);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

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

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

.hero-track {
    position: relative;
    min-height: 660px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.68) 42%, rgba(5, 7, 13, 0.36) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.18);
    transform: scale(1.03);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-content-grid {
    position: relative;
    z-index: 1;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 46px;
    padding: 76px 0 92px;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(120, 53, 15, 0.34);
    font-size: 14px;
    font-weight: 800;
}

.hero-title {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-summary {
    margin: 24px 0 0;
    max-width: 700px;
    color: #d8e1ee;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(239, 68, 68, 0.38);
}

.button.button-ghost {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--line);
    box-shadow: none;
}

.hero-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.50);
    box-shadow: var(--shadow);
}

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

.hero-panel-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.56);
    cursor: pointer;
}

.hero-control:hover {
    background: rgba(249, 115, 22, 0.86);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

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

.search-bar {
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

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

.search-bar input::placeholder {
    color: #aab4c5;
}

.search-bar button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    padding: 11px 18px;
    font-weight: 900;
    cursor: pointer;
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding-top: 42px;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #fbbf24;
    font-weight: 900;
}

.section h1,
.section h2,
.page-title {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-intro,
.page-intro {
    margin: 12px 0 0;
    max-width: 800px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(15, 23, 42, 0.72));
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.20);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.60);
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

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

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

.card-body {
    padding: 15px;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
}

.card-title {
    margin: 10px 0 7px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title a:hover {
    color: #fed7aa;
}

.card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px;
    font-weight: 800;
}

.card-action {
    display: inline-flex;
    margin-top: 15px;
    color: #fdba74;
    font-weight: 900;
}

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.24), transparent 14rem),
        rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.20);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.55);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 950;
}

.rank-title {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-thumb {
    width: 90px;
    height: 118px;
    object-fit: cover;
    border-radius: 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 28px 0;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #fed7aa;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.13), transparent 44%),
        rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

.detail-poster-wrap {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-content h1 {
    margin: 8px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 19px;
    line-height: 1.85;
}

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.66);
}

.content-card h2 {
    margin: 0 0 15px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #dbe4f0;
    line-height: 2;
    font-size: 17px;
}

.content-stack {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.player-section {
    margin-top: 34px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    font-size: 22px;
    font-weight: 950;
}

.player-overlay span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.40);
}

.player-overlay span::before {
    content: "";
    margin-left: 5px;
    border-style: solid;
    border-width: 16px 0 16px 24px;
    border-color: transparent transparent transparent #ffffff;
}

.player-overlay.is-hidden {
    display: none;
}

.filter-panel {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 28px 0 34px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-panel input {
    flex: 1;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    padding: 0 16px;
}

.filter-panel input::placeholder {
    color: #94a3b8;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 70px;
    background: rgba(2, 6, 23, 0.56);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.footer-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: #dbe4f0;
    font-weight: 800;
}

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

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

.empty-state.is-visible {
    display: block;
}

[hidden] {
    display: none !important;
}

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

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

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

    .site-nav {
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(7, 10, 18, 0.96);
        box-shadow: var(--shadow);
    }

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

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

    .hero-panel {
        max-width: 360px;
    }

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

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

@media (max-width: 640px) {
    .header-inner {
        min-height: 66px;
    }

    .site-logo {
        font-size: 18px;
    }

    .site-logo::before {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .site-nav {
        top: 66px;
    }

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

    .hero-content-grid {
        padding: 56px 0 84px;
        gap: 28px;
    }

    .hero-control {
        display: none;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    .section {
        padding: 54px 0;
    }

    .section-head {
        display: block;
    }

    .filter-panel {
        display: block;
    }

    .filter-panel input {
        width: 100%;
    }

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

    .rank-thumb {
        display: none;
    }

    .detail-hero,
    .content-card {
        padding: 20px;
        border-radius: 24px;
    }
}
