:root {
    --bg: #fffbeb;
    --bg-soft: #fff7ed;
    --text: #292524;
    --muted: #78716c;
    --dark: #1c1917;
    --dark-2: #0c0a09;
    --amber: #d97706;
    --amber-2: #f59e0b;
    --amber-soft: #fef3c7;
    --card: #ffffff;
    --line: rgba(120, 113, 108, 0.18);
    --shadow: 0 20px 60px rgba(41, 37, 36, 0.12);
    --shadow-soft: 0 12px 28px rgba(41, 37, 36, 0.10);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #fafaf9 100%);
    min-height: 100vh;
}

body,
button,
input,
select {
    font: inherit;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(120, 53, 15, 0.96);
    color: #fef3c7;
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.22);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f59e0b 48%, #d97706);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.brand-text {
    font-size: 20px;
    color: #fff7ed;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #fef3c7;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    background: rgba(251, 191, 36, 0.18);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #fef3c7;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    min-height: min(86vh, 760px);
    overflow: hidden;
    color: #ffffff;
    background: #1c1917;
}

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

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

.hero-bg,
.hero-bg img,
.hero-vignette {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
    opacity: 0.58;
}

.hero-vignette {
    background:
        radial-gradient(circle at 76% 48%, rgba(251, 191, 36, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(28, 25, 23, 0.72) 46%, rgba(28, 25, 23, 0.3) 100%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.9), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    min-height: min(86vh, 760px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 430px);
    align-items: center;
    gap: 50px;
    padding: 86px 0 74px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--amber-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin: 24px 0 0;
    color: #e7e5e4;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.tag-row span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fef3c7;
    background: rgba(120, 53, 15, 0.3);
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1;
}

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

.primary-btn,
.ghost-btn,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.primary-btn,
.home-search button {
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.3);
}

.ghost-btn {
    color: #fff7ed;
    background: rgba(255, 247, 237, 0.12);
    border: 1px solid rgba(255, 247, 237, 0.28);
}

.hero-poster {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 247, 237, 0.22);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.36);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: #fbbf24;
}

.search-band,
.content-section,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 30;
}

.search-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.search-panel p {
    margin: 0 0 14px;
    color: var(--muted);
    font-weight: 700;
}

.home-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.home-search input,
.filter-input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--line);
    outline: none;
    background: #ffffff;
    color: var(--text);
    padding: 0 16px;
}

.home-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(217, 119, 6, 0.56);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    color: #78350f;
    background: #fef3c7;
}

.content-section {
    padding: 68px 0 0;
}

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

.section-head h2,
.page-hero h1,
.detail-article h1 {
    margin: 0;
    color: var(--text);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

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

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

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

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    border-radius: 22px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(41, 37, 36, 0.18);
}

.poster-frame {
    position: relative;
    margin: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.4), transparent 32%),
        linear-gradient(135deg, #292524, #78350f);
}

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

.card-link:hover .poster-frame img {
    transform: scale(1.06);
}

.card-badge,
.card-year {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    right: 12px;
    background: rgba(217, 119, 6, 0.88);
}

.card-year {
    left: 12px;
    background: rgba(0, 0, 0, 0.44);
}

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

.card-body h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.rank-panel,
.side-card,
.detail-article,
.filter-bar,
.category-card,
.player-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.compact-head {
    margin-bottom: 18px;
}

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

.rank-item a {
    display: grid;
    grid-template-columns: 40px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(254, 243, 199, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item a:hover {
    background: #fef3c7;
    transform: translateX(3px);
}

.rank-number {
    color: #92400e;
    font-size: 20px;
    font-weight: 950;
}

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #292524;
}

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

.rank-copy strong {
    font-weight: 900;
    line-height: 1.35;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.45;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero {
    margin-top: 34px;
    min-height: 310px;
    border-radius: 34px;
    color: #ffffff;
    display: grid;
    align-items: end;
    padding: 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(251, 191, 36, 0.34), transparent 26%),
        linear-gradient(135deg, #1c1917, #78350f 62%, #92400e);
    box-shadow: var(--shadow);
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
    min-height: 260px;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 66px);
}

.page-hero p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: #e7e5e4;
    font-size: 18px;
    line-height: 1.75;
}

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

.category-card {
    overflow: hidden;
    min-height: 270px;
}

.category-card a {
    position: relative;
    display: block;
    min-height: 270px;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(0.88);
}

.category-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.92), rgba(28, 25, 23, 0.18));
}

.category-glass {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: block;
    color: #ffffff;
}

.category-glass strong,
.category-glass em {
    display: block;
}

.category-glass strong {
    font-size: 28px;
    font-weight: 950;
}

.category-glass em {
    margin-top: 10px;
    color: #e7e5e4;
    font-style: normal;
    line-height: 1.65;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-top: 28px;
}

.global-filter {
    margin-top: 28px;
}

.ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-main {
    padding: 28px 0 80px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px;
}

.breadcrumb a {
    color: #92400e;
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    background: #0c0a09;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0c0a09;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7));
    cursor: pointer;
}

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

.play-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #451a03;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    padding-left: 4px;
}

.detail-article {
    margin-top: 24px;
    padding: 30px;
}

.detail-article h1 {
    font-size: clamp(34px, 6vw, 56px);
}

.detail-tags span {
    color: #78350f;
    background: #fef3c7;
}

.lead-text {
    color: #57534e;
    font-size: 18px;
    line-height: 1.85;
    font-weight: 700;
}

.detail-article h2,
.side-card h2 {
    margin: 28px 0 12px;
    color: var(--text);
    font-size: 22px;
    font-weight: 950;
}

.detail-article p {
    color: #44403c;
    line-height: 1.9;
}

.watch-side {
    display: grid;
    gap: 22px;
}

.side-card {
    padding: 20px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    background: #292524;
}

.poster-side dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.poster-side div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.poster-side dt {
    color: var(--muted);
}

.poster-side dd {
    margin: 0;
    font-weight: 900;
    text-align: right;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 96px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    background: #292524;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    line-height: 1.4;
}

.mini-card em {
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    margin-top: 86px;
    color: #d6d3d1;
    background: linear-gradient(180deg, #1c1917, #0c0a09);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    color: #fef3c7;
    font-size: 24px;
    font-weight: 950;
}

.site-footer p {
    color: #a8a29e;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fef3c7;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: #d6d3d1;
}

.copyright {
    margin-top: 34px;
    border-top: 1px solid rgba(214, 211, 209, 0.14);
    padding-top: 18px;
    text-align: center;
}

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

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

    .split-layout,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 780px;
        padding-top: 92px;
    }

    .hero-poster {
        width: min(280px, 78vw);
        justify-self: center;
        transform: none;
    }

    .hero-arrow {
        display: none;
    }

    .home-search,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .listing-grid,
    .compact-grid,
    .spotlight-grid,
    .ranking-page-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .search-band,
    .content-section,
    .page-main,
    .detail-main,
    .footer-shell {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .movie-grid,
    .listing-grid,
    .compact-grid,
    .spotlight-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 15px;
    }

    .page-hero,
    .detail-article {
        padding: 24px;
        border-radius: 26px;
    }

    .watch-side {
        grid-template-columns: 1fr;
    }

    .mini-card {
        grid-template-columns: 84px 1fr;
    }

    .mini-card img {
        width: 84px;
        height: 58px;
    }
}
