:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
    --shadow-soft: 0 10px 28px rgba(120, 53, 15, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 38%, #fafaf9 100%);
    color: var(--stone-900);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.92);
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.26);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--amber-900);
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: var(--amber-700);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--amber-900);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(217, 119, 6, 0.18);
    padding: 10px 16px 16px;
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 18% 15%, rgba(251, 191, 36, 0.45), transparent 28%), linear-gradient(135deg, #fef3c7 0%, #ffedd5 44%, #f8fafc 100%);
}

.hero::before,
.hero::after {
    position: absolute;
    content: "";
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.55;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -160px;
    background: rgba(249, 115, 22, 0.2);
}

.hero::after {
    width: 320px;
    height: 320px;
    left: -120px;
    bottom: -180px;
    background: rgba(217, 119, 6, 0.16);
}

.hero-shell {
    position: relative;
    z-index: 1;
    min-height: 560px;
    padding: 54px 0;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
    min-height: 470px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    font-weight: 800;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    color: var(--amber-950);
}

.hero-text {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
    color: var(--amber-800);
    font-size: 12px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    color: var(--amber-900);
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 28px 80px rgba(120, 53, 15, 0.24);
    transform: rotate(1.25deg);
}

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

.hero-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 50%, rgba(28, 25, 23, 0.76));
}

.hero-card-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
}

.hero-card-caption strong {
    display: block;
    font-size: 22px;
    line-height: 1.3;
}

.hero-card-caption span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.hero-dots {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-dot {
    width: 44px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(146, 64, 14, 0.18);
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.active {
    width: 68px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.section {
    padding: 48px 0;
}

.section-muted {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(245, 245, 244, 0.9));
}

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

.section-kicker {
    margin-bottom: 8px;
    color: var(--orange-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-title {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--stone-600);
    line-height: 1.8;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(234, 88, 12, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.movie-card.is-hidden,
.rank-row.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.12));
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(234, 88, 12, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
    font-weight: 900;
    box-shadow: 0 12px 20px rgba(234, 88, 12, 0.25);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    color: var(--stone-900);
    font-weight: 900;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title:hover {
    color: var(--orange-600);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 10px;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-compact .movie-line,
.movie-card-compact .movie-tags {
    display: none;
}

.search-panel {
    display: grid;
    gap: 14px;
    margin: 24px 0;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.search-input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 18px;
    outline: none;
    color: var(--stone-900);
    background: #fff;
}

.search-input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.13);
    font-weight: 900;
}

.filter-tab.active,
.filter-tab:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.category-card {
    display: grid;
    min-height: 180px;
    padding: 22px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.92));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    display: block;
    color: var(--amber-900);
    font-size: 20px;
}

.category-card span {
    margin-top: 10px;
    color: var(--stone-600);
    line-height: 1.7;
}

.category-card em {
    align-self: end;
    margin-top: 18px;
    color: var(--orange-600);
    font-style: normal;
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 70px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.06);
}

.rank-row:hover {
    border-color: rgba(234, 88, 12, 0.36);
    box-shadow: var(--shadow-soft);
}

.rank-num {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    font-weight: 900;
}

.rank-row img {
    width: 70px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--stone-500);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--stone-500);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-hero {
    padding: 38px 0 52px;
    background: radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.28), transparent 26%), linear-gradient(135deg, #fffbeb 0%, #fff7ed 46%, #fafaf9 100%);
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-title {
    margin: 0 0 14px;
    color: var(--amber-950);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(255, 255, 255, 0.75);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(120, 53, 15, 0.07);
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: var(--stone-950);
    box-shadow: var(--shadow);
}

.video-box {
    position: relative;
    background: #000;
}

.video-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(12, 10, 9, 0.34);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 24px 45px rgba(234, 88, 12, 0.35);
    font-size: 32px;
}

.player-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.player-caption strong {
    font-size: 18px;
}

.content-card {
    padding: 24px;
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: var(--stone-700);
    line-height: 1.9;
}

.content-stack {
    display: grid;
    gap: 18px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.site-footer {
    margin-top: 36px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--amber-950), var(--stone-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.8fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-logo {
    margin-bottom: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 520px;
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

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

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 13px;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 22px;
    color: var(--stone-600);
    background: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.empty-state.show {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid-wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .hero-shell {
        min-height: auto;
        padding: 34px 0;
    }

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

    .hero-card {
        width: min(380px, 100%);
        margin: 0 auto;
    }

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

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

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

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

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

    .brand-subtitle {
        display: none;
    }

    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        gap: 14px;
    }

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

    .movie-title {
        font-size: 14px;
    }

    .movie-line,
    .movie-tags {
        display: none;
    }

    .rank-row {
        grid-template-columns: 38px 56px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-row img {
        width: 56px;
    }

    .player-caption {
        align-items: flex-start;
        flex-direction: column;
    }
}
