:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-strong: #1e293b;
    --text: #ffffff;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --accent: #f59e0b;
    --accent-2: #fb923c;
    --accent-soft: rgba(245, 158, 11, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(251, 146, 60, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.logo-mark {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.logo-mark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: var(--accent-soft);
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.brand:hover .logo-mark::before {
    opacity: 1;
}

.logo-mark svg {
    position: relative;
    width: 36px;
    height: 36px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.brand:hover .logo-mark svg {
    transform: scale(1.08);
}

.brand-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.header-search {
    width: 240px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    width: 100%;
    padding: 10px 12px 10px 16px;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.header-search button {
    height: 38px;
    padding: 0 15px;
    border: 0;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

main {
    min-height: 66vh;
}

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

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 38%, rgba(2, 6, 23, 0.32) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 44%, transparent 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 34px;
    align-items: end;
}

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

.hero-badges,
.meta-row,
.tag-list,
.card-tags,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-badges span,
.meta-row span,
.tag-list span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 10px;
}

.hero-badges span:first-child,
.meta-row span:first-child {
    border-color: rgba(245, 158, 11, 0.48);
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 950;
    max-width: 840px;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.24);
}

.btn-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
}

.btn-soft {
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.1);
}

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

.hero-panel {
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 22px;
}

.hero-panel h2 {
    margin: 0 0 14px;
    color: #fbbf24;
    font-size: 18px;
    font-weight: 950;
}

.hero-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-panel a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    font-weight: 800;
}

.hero-panel a:last-child {
    border-bottom: 0;
}

.hero-panel small {
    color: #94a3b8;
    white-space: nowrap;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    font-size: 28px;
    z-index: 5;
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

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

.page-section,
.page-hero,
.content-wrap,
.detail-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-section {
    padding: 60px 0 0;
}

.page-hero {
    padding: 64px 0 32px;
}

.page-hero.compact {
    padding-top: 42px;
}

.page-hero h1,
.detail-title h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.page-hero p,
.detail-title p {
    max-width: 860px;
    color: var(--muted);
    line-height: 1.85;
    font-size: 17px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.06em;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--soft);
    line-height: 1.7;
}

.section-more {
    min-width: max-content;
    color: #fbbf24;
    font-weight: 900;
}

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

.movie-grid.featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 24px 46px rgba(245, 158, 11, 0.16);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1e293b;
}

.movie-card.wide .card-cover,
.movie-grid.featured .movie-card .card-cover {
    aspect-ratio: 16 / 9;
}

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

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

.card-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge,
.card-meta-top {
    position: absolute;
    top: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 950;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.card-meta-top {
    right: 12px;
}

.card-body {
    display: block;
    padding: 15px;
}

.card-body strong {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 17px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

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

.card-line {
    display: -webkit-box;
    min-height: 44px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.58;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags span {
    padding: 6px 8px;
    font-size: 11px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.22), transparent 10rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
    box-shadow: var(--shadow);
}

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

.category-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.7;
}

.category-card span {
    color: #fbbf24;
    font-weight: 900;
}

.ranking-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: stretch;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) max-content;
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.72);
}

.ranking-list a:hover {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(30, 41, 59, 0.82);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.rank-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.rank-info {
    color: #94a3b8;
    font-size: 13px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px 180px;
    gap: 12px;
    margin: 26px 0;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0 14px;
    outline: 0;
    color: white;
    background: rgba(2, 6, 23, 0.72);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(245, 158, 11, 0.68);
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed rgba(148, 163, 184, 0.24);
    border-radius: 20px;
}

.breadcrumbs {
    margin-bottom: 18px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #fbbf24;
}

.detail-wrap {
    padding: 42px 0 0;
}

.detail-top {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.16), transparent 18rem),
        rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #1e293b;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title h1 {
    margin-top: 14px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.player-section {
    padding-top: 46px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 26px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

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

.overlay-play-icon {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.play-overlay strong {
    font-size: 20px;
    font-weight: 950;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
}

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

.content-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.92;
    font-size: 16px;
}

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

.hide-card {
    display: none !important;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

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

@media (max-width: 980px) {
    .hero-content,
    .ranking-panel,
    .detail-top {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .detail-cover {
        width: min(360px, 100%);
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 66px;
        gap: 12px;
    }

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

    .header-search {
        display: none;
    }

    .hero-slider {
        height: 680px;
        min-height: 680px;
    }

    .hero-content {
        bottom: 72px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .hero-arrow.prev {
        left: 10px;
    }

    .hero-arrow.next {
        right: 10px;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .detail-top,
    .content-card {
        padding: 18px;
        border-radius: 20px;
    }

    .player-shell {
        border-radius: 18px;
    }

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

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

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 38px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: #94a3b8;
}

.footer-brand p {
    max-width: 560px;
    margin: 16px 0 0;
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 17px;
    font-weight: 950;
}

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

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

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}
