:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(255, 255, 255, 0.1);
    --muted: #94a3b8;
    --text: #f8fafc;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 12%, rgba(249, 115, 22, 0.13), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-light), var(--orange));
    color: white;
    font-size: 17px;
    box-shadow: 0 14px 38px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav a:hover {
    color: white;
    background: rgba(245, 158, 11, 0.17);
}

.nav-link:hover {
    transform: translateY(-1px);
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

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

main {
    min-height: 60vh;
}

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

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

.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 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 73% 18%, rgba(245, 158, 11, 0.22), transparent 25rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.3) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, transparent 46%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 44px;
    padding: 86px 0 70px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    margin-bottom: 18px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 12px 0 0;
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.card-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.card-meta-line span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 24px 58px rgba(245, 158, 11, 0.4);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.hero-panel-info {
    padding: 18px;
}

.hero-panel-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.hero-panel-info small {
    color: var(--muted);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.44);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(245, 158, 11, 0.86);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.quick-search {
    position: relative;
    z-index: 6;
    width: min(940px, calc(100% - 32px));
    margin: -48px auto 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.search-form,
.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    color: white;
    padding: 0 18px;
    outline: none;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.page-section,
.page-hero,
.detail-layout,
.player-section,
.detail-copy,
.related-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.section-heading h2,
.page-hero h1,
.player-section h2,
.detail-copy h2,
.related-section h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-card {
    position: relative;
    min-height: 176px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.18), transparent 10rem),
        rgba(15, 23, 42, 0.82);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    border-color: rgba(251, 191, 36, 0.48);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
}

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    overflow: hidden;
    box-shadow: 0 16px 54px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(251, 191, 36, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

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

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

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

.card-badge,
.card-play {
    position: absolute;
    z-index: 2;
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: white;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta a {
    color: #fbbf24;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.32;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
}

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

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

.rank-item {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
}

.rank-link {
    display: grid;
    grid-template-columns: 58px 62px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
}

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

.rank-link img {
    width: 62px;
    height: 82px;
    border-radius: 13px;
    object-fit: cover;
}

.rank-copy strong,
.rank-copy small {
    display: block;
}

.rank-copy strong {
    margin-bottom: 4px;
    font-size: 17px;
}

.rank-copy small {
    color: var(--muted);
}

.page-hero {
    padding: 78px 0 28px;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-bar {
    grid-template-columns: minmax(0, 1.2fr) 170px 170px;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.04);
    opacity: 0.5;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.4)),
        linear-gradient(0deg, rgba(2, 6, 23, 1), rgba(2, 6, 23, 0.08));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    min-height: 640px;
    padding: 76px 0 48px;
}

.detail-poster {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

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

.detail-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: #e2e8f0;
    font-size: 20px;
}

.player-section {
    padding: 70px 0 0;
}

.player-shell {
    position: relative;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: #000;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.28)),
        rgba(2, 6, 23, 0.2);
    color: white;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 34px;
    box-shadow: 0 22px 58px rgba(245, 158, 11, 0.4);
}

.player-title {
    max-width: 78%;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 900;
    text-align: center;
}

.detail-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    padding: 60px 0 0;
}

.copy-panel,
.info-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    padding: 26px;
}

.copy-panel p {
    color: #dbeafe;
    font-size: 17px;
}

.info-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
    text-align: right;
}

.related-section {
    padding: 64px 0 82px;
}

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

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 220px 1fr;
    gap: 34px;
}

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

.footer-grid p,
.footer-grid a {
    color: var(--muted);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

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

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 16px;
    color: var(--muted);
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

    .hero-content {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .hero-panel {
        display: none;
    }

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero-content {
        padding-top: 70px;
    }

    .hero-control {
        display: none;
    }

    .quick-search {
        margin-top: -28px;
    }

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

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

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .detail-poster {
        width: min(280px, 78%);
    }
}

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

    .brand-text {
        font-size: 19px;
    }

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

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

    .hero h2,
    .detail-title {
        font-size: 32px;
    }

    .category-grid,
    .movie-grid,
    .rank-layout {
        grid-template-columns: 1fr;
    }

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

    .rank-link {
        grid-template-columns: 48px 58px minmax(0, 1fr);
    }
}
.mini-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    color: #f8fafc;
    font-size: 14px;
}

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