:root {
    --page-bg: #fffaf3;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3e6d3;
    --brand: #f59e0b;
    --brand-strong: #ea580c;
    --brand-dark: #92400e;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-strong));
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.brand-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: #4b5563;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.active,
.mobile-nav a.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    transform: translateY(-1px);
}

.nav-cta,
.mobile-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-cta,
.mobile-cta {
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.18);
}

.btn {
    padding: 13px 22px;
}

.btn:hover,
.nav-cta:hover,
.mobile-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 35px rgba(234, 88, 12, 0.2);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.btn-light {
    color: var(--brand-dark);
    background: #ffffff;
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-soft);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #fed7aa, #fff7ed 45%, #ffffff 100%);
}

.hero-track,
.hero-slide {
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.52), rgba(245, 158, 11, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 237, 213, 0.88);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.32);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.home-search {
    margin-top: -52px;
    position: relative;
    z-index: 8;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-card h2,
.section-heading h2,
.page-hero h1,
.detail-summary h1,
.player-section h2,
.content-card h2 {
    margin: 0;
    color: #111827;
    line-height: 1.16;
}

.search-card p,
.section-heading p,
.page-hero p,
.category-tile p,
.movie-card p,
.content-card p,
.detail-summary p {
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-form input,
.filter-grid input,
.filter-grid select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-form input {
    min-height: 54px;
    padding: 0 18px;
}

.search-form button {
    min-width: 112px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    font-weight: 800;
    cursor: pointer;
}

.search-form input:focus,
.filter-grid input:focus,
.filter-grid select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

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

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 44px);
}

.section-heading p {
    margin: 12px auto 0;
    max-width: 680px;
}

.align-left {
    text-align: left;
}

.align-left p {
    margin-left: 0;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(120, 53, 15, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.movie-card-compact .poster-link {
    aspect-ratio: 16 / 11;
}

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

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

.poster-link::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.65));
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
}

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

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-meta a,
.movie-card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row span,
.detail-tags span {
    color: var(--brand-dark);
    background: #ffedd5;
}

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

.category-tile {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.category-tile h3 {
    margin: 18px 0 8px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) 1.45fr;
    gap: 34px;
    align-items: start;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 42px 74px 1fr;
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 16px 28px rgba(120, 53, 15, 0.14);
}

.ranking-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-weight: 900;
}

.ranking-item img {
    width: 74px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: #fed7aa;
}

.ranking-info {
    display: grid;
    gap: 3px;
}

.ranking-info strong {
    color: #111827;
    line-height: 1.3;
}

.ranking-info em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand-dark);
    font-weight: 800;
}

.page-hero {
    padding: 82px 0;
    background: radial-gradient(circle at top left, #fed7aa, #fff7ed 42%, #ffffff 100%);
}

.page-hero-inner {
    max-width: 780px;
    text-align: center;
}

.page-hero h1 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
    margin: 16px auto 0;
    max-width: 720px;
    font-size: 18px;
}

.category-section {
    padding: 58px 0;
}

.category-section:nth-child(even) {
    background: rgba(255, 247, 237, 0.64);
}

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

.category-section-head h2 {
    margin: 10px 0 6px;
    font-size: 34px;
}

.category-section-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.filter-panel {
    position: sticky;
    top: 73px;
    z-index: 20;
    padding: 18px 0;
    background: rgba(255, 250, 243, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 7px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    min-height: 48px;
    padding: 0 14px;
}

.detail-hero {
    padding: 70px 0;
    background: radial-gradient(circle at top left, #fed7aa, #fff7ed 48%, #ffffff 100%);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 38px;
    align-items: center;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-summary h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
}

.detail-summary p {
    max-width: 790px;
    margin: 0 0 18px;
    font-size: 18px;
}

.detail-meta span {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.detail-tags {
    margin: 16px 0 26px;
}

.player-section {
    padding: 62px 0;
    background: #0f172a;
}

.player-section h2 {
    margin-bottom: 22px;
    color: #ffffff;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.78));
    cursor: pointer;
}

.play-cover[hidden] {
    display: none;
}

.play-cover-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
    font-size: 32px;
}

.play-cover strong {
    font-size: 20px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.content-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.08);
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    font-size: 16px;
}

.ranking-page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 390px) 1fr;
    gap: 32px;
    align-items: start;
}

.ranking-list-large {
    position: sticky;
    top: 112px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 360px;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

    .split-layout,
    .ranking-page-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-list-large {
        position: static;
    }
}

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

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

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 620px;
    }

    .hero-control {
        display: none;
    }

    .search-card,
    .detail-hero-grid,
    .detail-content-grid,
    .filter-grid,
    .category-section-head {
        grid-template-columns: 1fr;
    }

    .category-section-head {
        align-items: start;
    }

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

    .filter-panel {
        position: static;
    }
}

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

    .brand-text em {
        display: none;
    }

    .brand-text strong {
        font-size: 17px;
    }

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

    .hero-copy p,
    .detail-summary p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .search-form {
        flex-direction: column;
    }

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

    .ranking-item {
        grid-template-columns: 36px 64px 1fr;
    }

    .ranking-item img {
        width: 64px;
        height: 52px;
    }
}
