* {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #f59e0b;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(217, 119, 6, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--amber-50), #ffffff 32rem);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.95rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--amber-600);
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: var(--shadow-soft);
    font-size: 0.92rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 650;
    color: var(--gray-700);
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--amber-600);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.32rem;
    border: 0;
    background: white;
    padding: 0.65rem;
    border-radius: 0.9rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.menu-toggle span {
    width: 1.35rem;
    height: 2px;
    background: var(--gray-800);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0.25rem 1.25rem 1rem;
    border-top: 1px solid var(--gray-100);
}

.mobile-nav a {
    display: block;
    padding: 0.78rem 0;
    color: var(--gray-700);
    font-weight: 700;
}

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

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 3rem;
    padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2)) 4.5rem;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transform: scale(1.06);
    filter: saturate(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 35%, rgba(245, 158, 11, 0.38), transparent 26rem), linear-gradient(90deg, rgba(17, 24, 39, 0.93), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.5));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 0.8rem;
    display: inline-flex;
    color: var(--amber-200);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    color: white;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    max-width: 880px;
}

.hero-summary {
    max-width: 740px;
    margin: 1.45rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    line-height: 1.9;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags span,
.tag-row span {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-tags span {
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-row span {
    color: var(--amber-700, #92400e);
    background: var(--amber-100);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.primary-btn,
.ghost-btn,
.section-more,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 0.95rem 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: var(--shadow-soft);
}

.ghost-btn {
    padding: 0.9rem 1.35rem;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(217, 119, 6, 0.24);
}

.hero-poster {
    display: block;
    width: min(100%, 360px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    justify-self: end;
    transform: rotate(2deg);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 1.7rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

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

.hero-dots button.is-active {
    width: 2.2rem;
    background: var(--amber-400);
}

.feature-strip {
    max-width: 1180px;
    margin: -3.2rem auto 0;
    position: relative;
    z-index: 7;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature-item {
    padding: 1.4rem;
    border-radius: 1.4rem;
    background: white;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.feature-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gray-900);
    font-size: 1.08rem;
}

.feature-item span {
    color: var(--gray-500);
    font-size: 0.92rem;
}

.content-section,
.category-overview-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.5rem 1.25rem;
}

.soft-bg {
    max-width: none;
    background: linear-gradient(180deg, var(--amber-50), white);
}

.soft-bg > .section-heading,
.soft-bg > .movie-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.category-overview-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
}

.section-heading span,
.category-overview-head span {
    display: block;
    margin-top: 0.45rem;
    color: var(--gray-500);
    font-size: 1.02rem;
}

.content-section .eyebrow,
.category-overview-card .eyebrow,
.page-hero .eyebrow,
.detail-info .eyebrow {
    color: var(--amber-600);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-600);
    background: var(--amber-100);
    padding: 0.75rem 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.category-tile {
    min-height: 235px;
    padding: 1rem;
    overflow: hidden;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, white, var(--amber-50));
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-covers {
    height: 110px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.category-covers img {
    width: 33.333%;
    height: 110px;
    object-fit: cover;
    border-radius: 0.8rem;
    box-shadow: 0 12px 25px rgba(17, 24, 39, 0.16);
}

.category-covers img:nth-child(2) {
    transform: translateY(-0.45rem);
}

.category-covers img:nth-child(3) {
    transform: translateY(-0.9rem);
}

.category-tile h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.category-tile p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.65;
    font-size: 0.93rem;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 1.35rem;
    background: white;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-box {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #fff7ed);
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 850;
}

.type-badge {
    right: 0.75rem;
    top: 0.75rem;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    padding: 0.34rem 0.68rem;
    font-size: 0.76rem;
}

.rank-badge {
    left: 0.72rem;
    top: 0.72rem;
    width: 2.05rem;
    height: 2.05rem;
    color: white;
    background: linear-gradient(135deg, #ef4444, var(--orange-600));
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.25);
}

.card-body {
    padding: 1rem;
}

.compact-card .card-body {
    padding: 0.78rem;
}

.card-body h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card .card-body h3 {
    font-size: 0.95rem;
}

.card-body p {
    margin: 0 0 0.8rem;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.card-meta span {
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: var(--gray-100);
}

.card-body .tag-row span {
    padding: 0.26rem 0.5rem;
    font-size: 0.72rem;
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.page-hero {
    position: relative;
    padding: 6rem 1.25rem;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -12rem;
    top: -12rem;
    width: 33rem;
    height: 33rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.small-hero > div {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    color: white;
}

.small-hero .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.06em;
}

.page-hero p:last-child {
    max-width: 760px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    font-size: 1.1rem;
}

.filter-panel {
    max-width: 1180px;
    margin: -2.1rem auto 0;
    position: relative;
    z-index: 5;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(245, 158, 11, 0.16);
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-form input {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    outline: none;
    color: var(--gray-800);
}

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

.search-form button {
    flex: 0 0 auto;
    padding: 0.95rem 1.35rem;
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.quick-filters button {
    border: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--amber-700, #92400e);
    background: var(--amber-100);
    font-weight: 750;
}

.quick-filters button.is-active {
    color: white;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.empty-state {
    margin: 2rem 0 0;
    padding: 1.2rem;
    border-radius: 1rem;
    background: var(--amber-50);
    color: var(--gray-600);
    text-align: center;
}

.category-overview-card {
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-100);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: var(--gray-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(2px) saturate(1.12);
    transform: scale(1.04);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.42));
}

.detail-wrap {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--amber-200);
}

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 2rem;
    align-items: end;
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 1.6rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.13rem;
    line-height: 1.85;
    margin: 1rem 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.8rem 0 1.1rem;
}

.detail-meta span {
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.84);
}

.detail-tags {
    margin-bottom: 1.6rem;
}

.player-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.25rem 1rem;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #050505;
    box-shadow: var(--shadow-card);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: black;
    object-fit: contain;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.46));
}

.play-trigger span {
    width: 5.5rem;
    height: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.25rem;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
}

.play-trigger.is-hidden {
    display: none;
}

.detail-content {
    padding-top: 2rem;
}

.article-card {
    padding: clamp(1.4rem, 4vw, 2.2rem);
    border-radius: 1.5rem;
    background: white;
    box-shadow: 0 16px 35px rgba(17, 24, 39, 0.08);
}

.article-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.article-card h2:not(:first-child) {
    margin-top: 2rem;
}

.article-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.95;
    font-size: 1.02rem;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2rem;
}

.info-table div {
    display: flex;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: var(--gray-50);
}

.info-table strong {
    flex: 0 0 4rem;
    color: var(--gray-900);
}

.info-table span,
.info-table a {
    color: var(--gray-600);
}

.info-table a:hover {
    color: var(--amber-600);
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(180deg, #78350f, #431407);
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 1rem;
    color: var(--amber-100);
}

.footer-grid p {
    margin: 0;
    color: var(--amber-100);
    line-height: 1.8;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 0.6rem;
}

.footer-grid a {
    color: var(--amber-100);
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.2rem 1.25rem;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: var(--amber-200);
    text-align: center;
    font-size: 0.92rem;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 680px;
        padding-top: 6rem;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .logo {
        font-size: 1.18rem;
    }

    .hero {
        min-height: 600px;
    }

    .hero-slide {
        min-height: 600px;
        padding: 5.5rem 1.2rem 4rem;
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -2rem;
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

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

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

@media (max-width: 520px) {
    .nav-wrap {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-content h1 {
        font-size: 2.55rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .feature-strip,
    .category-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .ranking-list,
    .info-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .category-overview-card {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
