:root {
    color-scheme: light;
    --color-amber-950: #451a03;
    --color-amber-900: #78350f;
    --color-orange-800: #9a3412;
    --color-amber-700: #b45309;
    --color-amber-600: #d97706;
    --color-amber-500: #f59e0b;
    --color-stone-950: #1c1917;
    --color-stone-900: #292524;
    --color-stone-800: #44403c;
    --color-stone-700: #57534e;
    --color-stone-200: #e7e5e4;
    --color-stone-100: #f5f5f4;
    --color-white: #ffffff;
    --shadow-card: 0 18px 45px rgba(41, 37, 36, 0.12);
    --shadow-hover: 0 22px 60px rgba(120, 53, 15, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fafaf9;
    color: var(--color-stone-800);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber-900), var(--color-orange-800), var(--color-amber-900));
    box-shadow: 0 14px 28px rgba(69, 26, 3, 0.22);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 66px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 700;
}

.nav-links a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fde68a;
    opacity: 1;
}

.search-form {
    min-width: 210px;
}

.search-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.search-form input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(253, 230, 138, 0.9);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

.mobile-panel a,
.mobile-panel .search-form {
    display: block;
    margin-top: 10px;
}

.hero {
    position: relative;
    min-height: 570px;
    color: #ffffff;
    background: #111827;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 76px 0 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 15px;
    font-weight: 800;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: #e7e5e4;
    font-size: clamp(16px, 2vw, 20px);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0 24px;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    background: #fff7ed;
    color: #9a3412;
}

.pill.dark {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: var(--color-amber-600);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.32);
}

.btn-primary:hover {
    background: var(--color-amber-700);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

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

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

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 30px;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--color-amber-500);
}

.section {
    padding: 54px 0;
}

.section.soft {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section.gray {
    background: var(--color-stone-100);
}

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

.section-title {
    margin: 0;
    color: var(--color-stone-800);
    font-size: clamp(25px, 3.4vw, 34px);
    line-height: 1.16;
}

.section-subtitle {
    max-width: 740px;
    margin: 8px 0 0;
    color: #78716c;
}

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

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

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

.card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #1f2937;
}

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

.card:hover .poster img {
    transform: scale(1.04);
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(217, 119, 6, 0.94);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 8px;
    color: #292524;
    font-size: 18px;
    line-height: 1.25;
}

.card-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #78716c;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a16207;
    font-size: 12px;
    font-weight: 800;
}

.horizontal-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 0 18px;
    scroll-snap-type: x proximity;
}

.horizontal-scroller .card {
    min-width: 280px;
    scroll-snap-align: start;
}

.category-card {
    min-height: 160px;
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #c2410c 54%, #f59e0b);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.category-card span {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.38), transparent 32%), linear-gradient(120deg, #451a03, #9a3412 54%, #1c1917);
    padding: 60px 0;
}

.page-hero h1 {
    max-width: 880px;
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    color: #ffedd5;
    font-size: 17px;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e7e5e4;
    border-radius: 20px;
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-input {
    width: min(100%, 360px);
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
}

.filter-input:focus {
    border-color: var(--color-amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0c0a09;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
    cursor: pointer;
}

.play-overlay.is-hidden {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.95);
    box-shadow: 0 18px 46px rgba(217, 119, 6, 0.38);
    font-size: 34px;
}

.detail-card {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-card h2,
.detail-card h3 {
    margin-top: 0;
    color: #292524;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #292524;
    box-shadow: var(--shadow-card);
}

.detail-poster img {
    width: 100%;
    height: auto;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.rank-number {
    color: var(--color-amber-700);
    font-size: 24px;
    font-weight: 1000;
    text-align: center;
}

.rank-item img {
    width: 76px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-info h3 {
    margin: 0 0 6px;
    color: #292524;
}

.rank-info p {
    margin: 0;
    color: #78716c;
    font-size: 14px;
}

.rank-score {
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: var(--color-amber-600);
    font-weight: 900;
}

.site-footer {
    margin-top: 56px;
    color: #d6d3d1;
    background: #1c1917;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

.empty-state {
    display: none;
    border-radius: 22px;
    padding: 28px;
    color: #78716c;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

@media (max-width: 1024px) {
    .nav-links,
    .site-nav > .container > .nav-inner > .search-form {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

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

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

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

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

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding: 70px 0 72px;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 38px 0;
    }

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

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

    .grid.categories {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 16px;
    }

    .rank-item {
        grid-template-columns: 40px 64px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }

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