:root {
    color-scheme: dark;
    --site-bg: #1c1917;
    --panel-bg: rgba(41, 37, 36, 0.88);
    --panel-soft: rgba(68, 64, 60, 0.68);
    --line: rgba(120, 113, 108, 0.3);
    --text: #fafaf9;
    --muted: #a8a29e;
    --accent: #d97706;
    --accent-soft: #f59e0b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 0%, rgba(180, 83, 9, 0.18), transparent 32%), var(--site-bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(28, 25, 23, 0.86);
    border-bottom: 1px solid rgba(120, 113, 108, 0.22);
}

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

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #d97706, #57534e);
    box-shadow: 0 16px 42px rgba(217, 119, 6, 0.22);
    font-weight: 900;
    color: #fff7ed;
}

.logo-text strong {
    display: block;
    color: #fef3c7;
    font-size: 18px;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    color: #a8a29e;
    font-size: 12px;
    margin-top: 3px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d6d3d1;
}

.nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: rgba(217, 119, 6, 0.18);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(300px, 30vw);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(68, 64, 60, 0.72);
    border: 1px solid rgba(120, 113, 108, 0.24);
}

.header-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fafaf9;
    background: transparent;
    padding: 12px 14px;
    font-size: 14px;
}

.header-search input::placeholder,
.filter-input::placeholder {
    color: #a8a29e;
}

.header-search button {
    border: 0;
    background: #d97706;
    color: white;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(120, 113, 108, 0.35);
    border-radius: 12px;
    color: #f5f5f4;
    background: rgba(68, 64, 60, 0.78);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid rgba(120, 113, 108, 0.25);
    border-radius: 18px;
    background: rgba(41, 37, 36, 0.95);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #e7e5e4;
    background: rgba(68, 64, 60, 0.5);
}

.page-main {
    min-height: 70vh;
    padding-top: 72px;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: #0c0a09;
}

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

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #1c1917 2%, rgba(28, 25, 23, 0.72) 45%, rgba(28, 25, 23, 0.16) 100%);
}

.hero-copy {
    position: absolute;
    left: 50%;
    bottom: 68px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: end;
}

.hero-kicker,
.section-kicker,
.meta-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(217, 119, 6, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.hero-title {
    margin: 18px 0 10px;
    max-width: 860px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.hero-movie-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.08;
}

.hero-desc {
    max-width: 760px;
    color: #d6d3d1;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.34);
}

.btn-secondary {
    color: #fff7ed;
    background: rgba(68, 64, 60, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.btn-ghost {
    color: #fef3c7;
    background: rgba(28, 25, 23, 0.55);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.hero-side-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-side-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.hero-side-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.hero-side-list a {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(68, 64, 60, 0.45);
    transition: 0.2s ease;
}

.hero-side-list a:hover {
    background: rgba(217, 119, 6, 0.2);
}

.hero-side-list img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

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

.hero-dots button {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(214, 211, 209, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #f59e0b;
}

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

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

.section-title {
    margin: 12px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-desc {
    margin: 10px 0 0;
    max-width: 760px;
    color: #a8a29e;
    line-height: 1.8;
}

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

.category-card {
    min-height: 128px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(68, 64, 60, 0.92), rgba(28, 25, 23, 0.92));
    border: 1px solid rgba(120, 113, 108, 0.28);
    transition: 0.2s ease;
}

.category-card:hover {
    border-color: rgba(245, 158, 11, 0.55);
    transform: translateY(-3px);
}

.category-card h3 {
    margin: 0 0 8px;
    color: #fef3c7;
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: #a8a29e;
    font-size: 14px;
    line-height: 1.65;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(41, 37, 36, 0.92);
    border: 1px solid rgba(120, 113, 108, 0.22);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(28, 25, 23, 0.8);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
}

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.card-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #f5f5f4;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #d6d3d1;
    font-size: 12px;
}

.movie-desc {
    margin: 0;
    color: #a8a29e;
    font-size: 14px;
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px 220px;
    gap: 14px;
    margin: 24px 0 30px;
    padding: 16px;
    border: 1px solid rgba(120, 113, 108, 0.26);
    border-radius: 22px;
    background: rgba(41, 37, 36, 0.72);
}

.filter-input,
.filter-select {
    border: 1px solid rgba(120, 113, 108, 0.32);
    border-radius: 14px;
    background: rgba(28, 25, 23, 0.78);
}

.filter-select {
    color: #f5f5f4;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 72px 154px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 22px;
    background: rgba(41, 37, 36, 0.88);
    transition: 0.2s ease;
}

.rank-card:hover {
    border-color: rgba(245, 158, 11, 0.46);
    transform: translateX(4px);
}

.rank-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff7ed;
    background: linear-gradient(135deg, #d97706, #78350f);
    font-weight: 900;
    font-size: 18px;
}

.rank-card img {
    width: 154px;
    height: 92px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-card h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 20px;
}

.rank-card p {
    margin: 0;
    color: #a8a29e;
    line-height: 1.7;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a8a29e;
    font-size: 14px;
    margin-bottom: 20px;
}

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

.player-panel,
.detail-panel {
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 26px;
    background: rgba(41, 37, 36, 0.86);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.player-panel {
    overflow: hidden;
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.play-icon::before {
    content: "";
    display: block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid white;
}

.player-copy {
    padding: 24px;
}

.player-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.2;
}

.player-copy p {
    color: #d6d3d1;
    line-height: 1.85;
}

.detail-panel {
    padding: 20px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    background: rgba(28, 25, 23, 0.85);
}

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

.detail-meta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120, 113, 108, 0.2);
    color: #d6d3d1;
}

.detail-meta span:first-child {
    color: #a8a29e;
}

.content-block {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 24px;
    background: rgba(41, 37, 36, 0.72);
}

.content-block h2 {
    margin: 0 0 14px;
    font-size: 24px;
    color: #fef3c7;
}

.content-block p {
    color: #d6d3d1;
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-list span,
.tag-list a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 48px;
    border-radius: 22px;
    text-align: center;
    color: #a8a29e;
    background: rgba(41, 37, 36, 0.62);
    border: 1px solid rgba(120, 113, 108, 0.22);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(120, 113, 108, 0.22);
    background: rgba(12, 10, 9, 0.88);
}

.footer-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
    gap: 28px;
    color: #a8a29e;
}

.footer-wrap h3,
.footer-wrap h4 {
    margin: 0 0 12px;
    color: #fef3c7;
}

.footer-wrap p,
.footer-wrap a {
    color: #a8a29e;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

@media (max-width: 1024px) {
    .header-search,
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-copy {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        display: none;
    }

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

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

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 64px;
    }

    .page-main {
        padding-top: 64px;
    }

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

    .hero-copy {
        bottom: 58px;
    }

    .hero-actions,
    .section-actions,
    .detail-actions {
        flex-direction: column;
    }

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

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

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

    .rank-card {
        grid-template-columns: 48px 92px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .rank-card img {
        width: 92px;
        height: 62px;
    }

    .rank-card h3 {
        font-size: 16px;
    }

    .rank-card p {
        display: none;
    }

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