:root {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-soft: #111827;
    --bg-card: #1f2937;
    --bg-muted: #273244;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --gold: #facc15;
    --gold-soft: #fde047;
    --orange: #f97316;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(250, 204, 21, 0.12), transparent 34rem),
        radial-gradient(circle at 90% 20%, rgba(249, 115, 22, 0.08), transparent 32rem),
        linear-gradient(135deg, #0b1020 0%, #111827 48%, #0b1020 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 16, 32, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #111827;
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.25);
}

.brand-name {
    font-size: 21px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 310px;
}

.header-search input,
.page-filter input,
.page-filter select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    outline: none;
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.86);
    color: var(--text);
    padding: 12px 14px;
}

.header-search input:focus,
.page-filter input:focus,
.page-filter select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.16);
}

.header-search button,
.btn,
.page-filter button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 800;
}

.header-search button {
    padding: 12px 16px;
    background: var(--gold);
    color: #111827;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero-carousel {
    position: relative;
    height: min(680px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: #0b1020;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.1s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 16, 32, 0.98) 0%, rgba(11, 16, 32, 0.86) 36%, rgba(11, 16, 32, 0.3) 72%, rgba(11, 16, 32, 0.76) 100%),
        linear-gradient(0deg, rgba(11, 16, 32, 1) 0%, transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.eyebrow,
.section-heading span,
.page-hero span,
.showcase-copy span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 900;
    letter-spacing: 0.08em;
}

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

.hero-content p {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--text-soft);
    font-size: clamp(17px, 2.2vw, 23px);
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.detail-meta span,
.movie-meta span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-soft);
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
}

.hero-tags span:first-child,
.poster-badge,
.rank-cover strong,
.detail-meta span:nth-child(2) {
    background: var(--gold);
    color: #111827;
    font-weight: 900;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    background: var(--gold);
    color: #111827;
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.25);
}

.btn-secondary,
.btn-dark {
    background: rgba(31, 41, 55, 0.9);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-light {
    background: #fff;
    color: #111827;
}

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

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

.hero-dot.active {
    background: var(--gold);
}

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

.section-heading {
    margin-bottom: 30px;
}

.section-heading.centered {
    text-align: center;
}

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

.section-heading h2,
.page-hero h1,
.showcase-copy h2,
.rank-panel h2,
.detail-card h1 {
    margin: 8px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.showcase-copy p {
    max-width: 720px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.section-heading.with-link a {
    color: var(--gold);
    font-weight: 900;
}

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

.category-tile,
.category-overview-card a {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.category-tile img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    z-index: -2;
}

.category-tile span,
.category-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(11, 16, 32, 0.88), rgba(11, 16, 32, 0.2));
}

.category-tile strong,
.category-tile em,
.category-overview-card div {
    align-self: flex-end;
    padding: 20px;
}

.category-tile strong {
    position: absolute;
    left: 0;
    bottom: 42px;
    font-size: 24px;
    font-style: normal;
}

.category-tile em {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.category-tile:hover img,
.category-overview-card a:hover img,
.movie-card:hover img,
.rank-item:hover img,
.related-card:hover img {
    transform: scale(1.08);
}

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

.movie-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(31, 41, 55, 0.82);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.movie-card:hover,
.rank-item:hover,
.related-card:hover {
    border-color: rgba(250, 204, 21, 0.7);
    transform: translateY(-3px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-copy h3 a:hover {
    color: var(--gold);
}

.movie-info p,
.rank-copy p {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
}

.movie-meta {
    margin-bottom: 10px;
}

.latest-band {
    background: linear-gradient(90deg, rgba(31, 41, 55, 0.82), rgba(17, 24, 39, 0.72));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.latest-list,
.rank-list {
    display: grid;
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(31, 41, 55, 0.72);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-cover {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    background: #111827;
}

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

.rank-cover strong {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.rank-copy {
    padding: 20px;
}

.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.center-action {
    text-align: center;
    margin-top: 30px;
}

.split-showcase {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.showcase-copy,
.rank-panel,
.detail-card,
.side-card,
.player-card {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    background: rgba(31, 41, 55, 0.82);
    box-shadow: var(--shadow);
}

.showcase-copy {
    padding: clamp(30px, 5vw, 58px);
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #111827;
}

.showcase-copy span,
.showcase-copy p {
    color: rgba(17, 24, 39, 0.78);
}

.rank-panel {
    padding: 24px;
}

.rank-panel h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

.rank-panel a {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

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

.rank-panel strong {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gold);
    color: #111827;
}

.rank-panel em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: clamp(34px, 6vw, 76px);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 10px);
    background:
        linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.68)),
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.14), transparent 28rem);
    box-shadow: var(--shadow);
}

.compact-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.category-hero {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 28px;
    align-items: end;
}

.page-filter {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
}

.ranking-filter,
.search-filter {
    margin-bottom: 24px;
}

.search-filter {
    grid-template-columns: 1fr 210px 160px;
}

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

.category-overview-card a {
    min-height: 260px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 30px;
}

.category-overview-card p {
    max-width: 520px;
    color: var(--text-soft);
    line-height: 1.7;
}

.category-overview-card em {
    color: var(--gold);
    font-style: normal;
    font-weight: 900;
}

.empty-state {
    margin: 40px 0;
    padding: 38px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-muted);
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

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

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 72px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 18px;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
    color: var(--text);
    cursor: pointer;
    text-align: center;
}

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

.play-ring {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--gold);
    color: #111827;
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(250, 204, 21, 0.35);
}

.player-overlay strong {
    max-width: 80%;
    font-size: 24px;
}

.detail-card {
    padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
    margin-top: 0;
}

.detail-card section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-card p {
    color: var(--text-soft);
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.side-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111827;
    margin-bottom: 16px;
}

.poster-card .btn {
    width: 100%;
}

.side-play-button {
    border: 0;
}

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

.related-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.45);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card img {
    width: 92px;
    height: 70px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card span {
    display: grid;
    gap: 5px;
    padding-right: 10px;
}

.related-card strong {
    font-size: 14px;
    line-height: 1.3;
}

.related-card em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 12px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.92);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 28px;
}

.footer-inner p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--gold);
}

@media (max-width: 1024px) {
    .header-search {
        min-width: 240px;
    }

    .category-grid,
    .movie-grid.four-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-layout,
    .split-showcase,
    .category-hero {
        grid-template-columns: 1fr;
    }

    .detail-side {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .header-inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

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

    .header-search {
        order: 4;
        width: 100%;
        min-width: 0;
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .category-grid,
    .movie-grid.four-col,
    .category-overview-grid,
    .detail-side {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-item {
        grid-template-columns: 160px 1fr;
    }

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

    .compact-hero {
        display: block;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .hero-carousel {
        min-height: 660px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 90px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

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

    .category-grid,
    .movie-grid.four-col,
    .category-overview-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-cover {
        aspect-ratio: 16 / 9;
    }

    .section-heading.with-link {
        display: block;
    }

    .detail-card p {
        font-size: 15px;
    }
}
