:root {
    --page: #0c0a09;
    --panel: #1c1917;
    --panel-soft: rgba(41, 37, 36, 0.78);
    --line: rgba(120, 113, 108, 0.24);
    --text: #fafaf9;
    --muted: #c7c2bd;
    --soft: #a8a29e;
    --amber: #f59e0b;
    --amber-strong: #d97706;
    --copper: #b45309;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    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.18), transparent 30rem),
        radial-gradient(circle at 80% 0, rgba(180, 83, 9, 0.18), transparent 26rem),
        var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(68, 64, 60, 0.82);
    background: rgba(12, 10, 9, 0.92);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #fff7ed;
    font-size: 15px;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 15px;
    color: #d6d3d1;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fbbf24;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(120, 113, 108, 0.35);
    border-radius: 12px;
    background: rgba(41, 37, 36, 0.7);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid rgba(120, 113, 108, 0.28);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #e7e5e4;
}

.mobile-nav.is-open {
    display: block;
}

.hero-slider {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-bottom: 1px solid rgba(120, 113, 108, 0.2);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.78) 42%, rgba(12, 10, 9, 0.35) 100%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.95) 0%, transparent 42%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100% - 1480px) / 2));
    width: min(720px, calc(100% - 48px));
    transform: translateY(-50%);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-content h1,
.hero-content h2 {
    max-width: 740px;
    font-size: clamp(42px, 7vw, 88px);
}

.hero-movie-title {
    margin-top: -4px !important;
    color: #fbbf24;
    font-size: clamp(28px, 4vw, 48px) !important;
}

.hero-content p,
.page-hero p,
.detail-lead {
    max-width: 740px;
    margin: 0 0 24px;
    color: #ddd6d1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.detail-chips,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-tags span,
.detail-chips span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.7);
    color: #f5f5f4;
    font-size: 14px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
    background: linear-gradient(135deg, var(--amber), var(--copper));
    color: #fff7ed;
    box-shadow: 0 16px 35px rgba(245, 158, 11, 0.22);
}

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

.hero-panel {
    position: absolute;
    right: max(24px, calc((100% - 1480px) / 2));
    bottom: 54px;
    width: min(520px, calc(100% - 48px));
    padding: 20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-search {
    display: flex;
    gap: 10px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(120, 113, 108, 0.35);
    border-radius: 14px;
    background: rgba(12, 10, 9, 0.7);
    color: #fff;
    padding: 0 16px;
    outline: none;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.7);
}

.hero-search button {
    height: 48px;
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    background: #f59e0b;
    color: #1c1917;
    font-weight: 900;
    cursor: pointer;
}

.hero-shortcuts,
.hero-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-shortcuts a {
    flex: 1;
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(68, 64, 60, 0.58);
    color: #e7e5e4;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.section-head a {
    color: #fbbf24;
    font-weight: 800;
}

.category-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-chip-grid a {
    min-height: 94px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.82));
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-chip-grid a:hover,
.movie-card:hover,
.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
}

.category-chip-grid span {
    display: block;
    margin-top: 8px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 500;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(120, 113, 108, 0.22);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.82);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 70px rgba(245, 158, 11, 0.12);
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1c1917;
}

.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);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.04) 58%);
}

.movie-score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.95);
    color: #1c1917;
    font-size: 13px;
    font-weight: 950;
}

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

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

.movie-card-meta span:first-child {
    color: #fbbf24;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 46px;
    overflow: hidden;
    margin: 0 0 12px;
    color: #d6d3d1;
    line-height: 1.55;
}

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

.ranking-band {
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.9), rgba(12, 10, 9, 0.9));
    border-top: 1px solid rgba(120, 113, 108, 0.18);
    border-bottom: 1px solid rgba(120, 113, 108, 0.18);
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 42px;
    align-items: start;
}

.ranking-layout p {
    max-width: 560px;
    margin: 0 0 24px;
    color: #d6d3d1;
    line-height: 1.7;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 42px 74px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(120, 113, 108, 0.18);
    border-radius: 18px;
    background: rgba(41, 37, 36, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

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

.rank-link img {
    width: 74px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    color: #fff;
    font-size: 16px;
}

.rank-info em {
    margin-top: 4px;
    color: var(--soft);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: #fbbf24;
    font-weight: 950;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0, rgba(245, 158, 11, 0.22), transparent 34rem),
        linear-gradient(135deg, #1c1917, #0c0a09);
}

.small-hero {
    padding: 86px 0 72px;
}

.page-hero-inner {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 72px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #d6d3d1;
    font-size: 14px;
}

.breadcrumb a {
    color: #fbbf24;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    border: 1px solid rgba(120, 113, 108, 0.22);
    border-radius: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile a,
.category-tile img,
.category-tile-mask {
    position: absolute;
    inset: 0;
}

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

.category-tile-mask {
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.08));
}

.category-tile-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.category-tile-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 950;
}

.category-tile-content em {
    display: block;
    color: #d6d3d1;
    font-style: normal;
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 0.5fr));
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(120, 113, 108, 0.22);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.74);
}

.empty-result {
    display: none;
    margin: 32px 0 0;
    padding: 24px;
    border: 1px solid rgba(120, 113, 108, 0.2);
    border-radius: 18px;
    background: rgba(28, 25, 23, 0.72);
    color: #d6d3d1;
    text-align: center;
}

.empty-result.is-visible {
    display: block;
}

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

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 42px;
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 54px;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 20px -40px auto 24%;
    height: 420px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 68%);
    filter: blur(12px);
}

.detail-visual {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.detail-visual img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.detail-info {
    align-self: center;
}

.detail-info h1 {
    font-size: clamp(38px, 5vw, 72px);
}

.detail-chips {
    margin-bottom: 16px;
}

.tag-row {
    margin-bottom: 30px;
}

.watch-section {
    padding-top: 32px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.28));
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 18px 55px rgba(245, 158, 11, 0.35);
}

.detail-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-copy article {
    padding: 28px;
    border: 1px solid rgba(120, 113, 108, 0.2);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.72);
}

.detail-copy h2 {
    margin: 0 0 16px;
    color: #fbbf24;
    font-size: 26px;
}

.detail-copy p {
    margin: 0;
    color: #ddd6d1;
    font-size: 17px;
    line-height: 1.9;
}

.ranking-page {
    padding-top: 48px;
}

.rank-list-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-more-head {
    margin-top: 62px;
}

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

.footer-inner {
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #a8a29e;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 1280px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-content {
        top: 43%;
    }

    .hero-panel {
        left: 24px;
        right: 24px;
        bottom: 28px;
        width: auto;
    }

    .home-grid,
    .category-grid,
    .category-chip-grid,
    .category-tile-grid,
    .rank-list-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-layout,
    .detail-hero,
    .detail-copy {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .nav-wrap,
    .section-wrap,
    .page-hero-inner,
    .detail-hero,
    .footer-inner {
        width: min(100% - 24px, 1480px);
    }

    .site-logo {
        font-size: 19px;
    }

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

    .hero-content {
        top: 37%;
        left: 16px;
        width: calc(100% - 32px);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 40px;
    }

    .hero-movie-title {
        font-size: 28px !important;
    }

    .hero-panel {
        left: 12px;
        right: 12px;
        padding: 14px;
    }

    .hero-search {
        flex-direction: column;
    }

    .section-wrap {
        padding: 46px 0;
    }

    .section-head,
    .footer-inner {
        display: block;
    }

    .section-head a {
        display: inline-block;
        margin-top: 10px;
    }

    .home-grid,
    .category-grid,
    .category-chip-grid,
    .category-tile-grid,
    .rank-list-large,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-link {
        grid-template-columns: 34px 64px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

    .small-hero {
        padding: 60px 0 52px;
    }

    .detail-visual img {
        min-height: 320px;
    }
}
