:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111c31;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --line: rgba(148, 163, 184, 0.16);
    --white: #ffffff;
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 28rem), var(--bg);
    color: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #fff;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.32);
}

.brand-text,
.footer-brand,
.gradient-title {
    color: transparent;
    background: linear-gradient(90deg, #fbbf24, var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
}

.brand-text {
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 19px;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #fbbf24;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font-size: 26px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.98);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
}

main {
    padding-top: 66px;
}

.hero {
    position: relative;
    height: min(820px, 82vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 2%, rgba(2, 6, 23, 0.84) 24%, rgba(15, 23, 42, 0.26) 68%, rgba(2, 6, 23, 0.28));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 86px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-kicker,
.section-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pill,
.hero-kicker span,
.section-kicker span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker span:first-child,
.meta-pill.hot {
    background: rgba(245, 158, 11, 0.94);
    color: #fff;
    border-color: transparent;
}

.hero h1 {
    max-width: 860px;
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.58);
}

.hero p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.button.secondary {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 12;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.46);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

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

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

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--amber);
}

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

.page-space {
    padding: 46px 0 84px;
}

.section {
    margin: 0 0 70px;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-head p,
.page-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.01);
    background: #111c31;
    box-shadow: 0 30px 80px rgba(245, 158, 11, 0.16);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-wide .movie-thumb {
    aspect-ratio: 16 / 9;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-thumb img {
    transform: scale(1.08);
}

.movie-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1) 58%, rgba(0, 0, 0, 0));
    opacity: 0.78;
    transition: opacity 0.3s ease;
}

.movie-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #fff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-meta-top {
    position: absolute;
    left: 12px;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.movie-meta-top span,
.movie-duration,
.rank-badge {
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-meta-top span:first-child {
    background: rgba(245, 158, 11, 0.92);
}

.movie-duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
}

.rank-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    min-width: 36px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: #fbbf24;
}

.movie-card-body p {
    margin: 0;
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 12px;
}

.feature-panel,
.category-panel,
.info-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.52));
    box-shadow: var(--shadow);
}

.feature-panel {
    padding: 28px;
}

.category-panel {
    padding: 24px;
    transition: transform 0.25s ease, border 0.25s ease;
}

.category-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.42);
}

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

.category-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.category-link {
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-weight: 800;
}

.search-box {
    display: grid;
    gap: 12px;
    margin: 22px 0 28px;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.filter-chip {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
    color: #cbd5e1;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.9);
    border-color: transparent;
}

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

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

.breadcrumb a {
    color: #fbbf24;
}

.player-wrap {
    margin-top: 66px;
    background: #000;
}

.player-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.player-play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.35);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 24px;
}

.detail-tags span {
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
    font-size: 13px;
}

.info-panel {
    padding: 24px;
    margin-bottom: 24px;
}

.info-panel h2,
.sidebar h2 {
    margin: 0 0 14px;
    font-size: 23px;
}

.info-panel p {
    margin: 0;
    color: #cbd5e1;
}

.info-panel p + p {
    margin-top: 14px;
}

.sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
}

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

.related-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: rgba(148, 163, 184, 0.1);
}

.related-item img {
    width: 94px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 76px 138px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.88);
    transition: transform 0.22s ease, border 0.22s ease;
}

.rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.35);
}

.rank-number {
    font-size: 28px;
    font-weight: 900;
    color: #fbbf24;
    text-align: center;
}

.rank-row img {
    width: 138px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    font-weight: 900;
}

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

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

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 38px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 20px;
}

.site-footer p,
.site-footer li,
.site-footer a {
    color: var(--muted);
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1180px) {
    .grid.cards-6,
    .grid.cards-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .brand-text {
        max-width: 250px;
        font-size: 17px;
    }

    .hero {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content {
        bottom: 70px;
    }

    .grid.cards-4,
    .grid.cards-5,
    .grid.cards-6,
    .grid.cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .sidebar {
        position: static;
    }

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

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .brand-text {
        max-width: 200px;
    }

    .hero {
        min-height: 520px;
    }

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

    .hero-control {
        display: none;
    }

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

    .grid.cards-4,
    .grid.cards-5,
    .grid.cards-6,
    .grid.cards-3 {
        gap: 14px;
    }

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

    .movie-card-body h3 {
        font-size: 15px;
    }

    .rank-row {
        grid-template-columns: 38px 96px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-row img {
        width: 96px;
        height: 70px;
    }

    .rank-row h2 {
        font-size: 17px;
    }

    .detail-tags span,
    .meta-pill {
        font-size: 12px;
    }
}
