:root {
    --color-amber: #d97706;
    --color-orange: #f97316;
    --color-deep: #111827;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --shadow-card: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 12px 30px rgba(217, 119, 6, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-deep);
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fffbeb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 8px 28px rgba(154, 52, 18, 0.22);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    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: 800;
    letter-spacing: 0.02em;
}

.site-logo__mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-amber);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 650;
}

.site-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
    color: #fef3c7;
}

.nav-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    flex-direction: column;
    gap: 12px;
    font-weight: 650;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #92400e, #111827);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
    position: absolute;
    left: 50%;
    bottom: 70px;
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 10px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: #f3f4f6;
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(253, 230, 138, 0.35);
    padding: 6px 12px;
}

.tag-row span {
    color: #b45309;
    background: #fef3c7;
    padding: 4px 9px;
}

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

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

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

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

.btn-primary:hover {
    background: #b45309;
}

.btn-ghost {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.btn-light {
    color: #b45309;
    background: #fff7ed;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease;
}

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

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

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

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hero-dots button.is-active {
    width: 30px;
    background: #fbbf24;
}

.search-panel,
.section-card,
.detail-content {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.search-panel {
    margin-top: 34px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 24px;
    align-items: end;
}

.search-panel h2,
.section-heading h2,
.detail-content h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 900;
}

.search-panel p {
    margin: 10px 0 0;
    color: var(--color-muted);
}

.search-box {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 13px 18px;
    color: #111827;
    background: #ffffff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-box input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.search-box--wide {
    max-width: 720px;
}

.section-block {
    padding: 54px 0 0;
}

.section-card {
    padding: 28px;
}

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

.section-heading a {
    color: #b45309;
    font-weight: 850;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

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

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

.movie-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 8px;
    color: #ffffff;
    background: #f59e0b;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 850;
}

.movie-card__body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--color-amber);
}

.movie-card__desc {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

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

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    border-radius: var(--radius-xl);
    padding: 22px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #d97706, #f97316);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.25);
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.1;
}

.category-tile span {
    color: #fff7ed;
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #92400e, #f97316);
}

.page-hero--compact {
    padding: 74px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #fffbeb;
    font-size: 18px;
}

.ranking-list {
    display: grid;
    gap: 16px;
    padding: 34px 0 0;
}

.ranking-row {
    display: grid;
    grid-template-columns: 72px 140px 1fr auto;
    gap: 20px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.ranking-row__rank {
    color: #d97706;
    font-size: 30px;
    font-weight: 950;
    text-align: center;
}

.ranking-row__poster {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

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

.ranking-row__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.ranking-row__body p {
    margin: 0 0 8px;
    color: var(--color-muted);
}

.ranking-row__body span {
    color: #92400e;
    font-weight: 800;
}

.detail-hero {
    padding: 54px 0;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.28), transparent 36%), linear-gradient(135deg, #111827, #7c2d12 64%, #d97706);
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #f59e0b, #111827);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-weight: 700;
}

.detail-one-line {
    max-width: 780px;
    margin: 20px 0 0;
    color: #f3f4f6;
    font-size: 20px;
}

.detail-meta {
    margin: 18px 0 0;
    color: #fde68a;
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}

.player-cover__icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-amber);
    font-size: 34px;
    box-shadow: 0 18px 35px rgba(217, 119, 6, 0.42);
}

.player-card.is-playing .player-cover {
    display: none;
}

.detail-content {
    margin-top: 34px;
    padding: 34px;
}

.detail-content h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.detail-content h2:not(:first-child) {
    margin-top: 32px;
}

.detail-content p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    margin-top: 64px;
    padding: 42px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 10px;
}

.site-footer p {
    max-width: 680px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
    font-weight: 750;
}

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

[data-card].is-hidden {
    display: none;
}

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

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

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

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

    .hero {
        height: 520px;
    }

    .hero-slide__content {
        bottom: 62px;
    }

    .search-panel,
    .detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
    }

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

    .ranking-row {
        grid-template-columns: 52px 110px 1fr;
    }

    .ranking-row .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .footer-grid {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container,
    .site-header__inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        height: 500px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .section-card,
    .detail-content {
        padding: 20px;
    }

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

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

    .ranking-row {
        grid-template-columns: 44px 1fr;
    }

    .ranking-row__poster {
        grid-column: 1 / -1;
    }

    .ranking-row__body {
        grid-column: 1 / -1;
    }

    .ranking-row .btn {
        grid-column: 1 / -1;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
