:root {
    --peach-50: #fff5f0;
    --peach-100: #ffe9dd;
    --peach-300: #ffbd99;
    --peach-400: #ffa777;
    --peach-500: #ff9155;
    --peach-600: #ff7b44;
    --coral-50: #fff0ee;
    --coral-400: #ff8373;
    --coral-500: #ff6450;
    --ink: #172033;
    --muted: #667085;
    --paper: rgba(255, 255, 255, 0.88);
    --line: rgba(255, 145, 85, 0.18);
    --shadow: 0 24px 60px rgba(255, 145, 85, 0.16);
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 145, 85, 0.20), transparent 28%),
        radial-gradient(circle at 90% 5%, rgba(255, 100, 80, 0.18), transparent 26%),
        linear-gradient(135deg, var(--peach-50), #ffffff 48%, var(--coral-50));
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 145, 85, 0.18);
}

.site-header__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
    box-shadow: 0 12px 28px rgba(255, 100, 80, 0.32);
}

.brand__text,
.footer-brand strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: var(--peach-700, #e8622d);
    background: rgba(255, 233, 221, 0.75);
}

.nav-toggle {
    display: none;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
}

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #111827;
}

.hero-stage {
    position: relative;
    min-height: 76vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 36px;
    padding: 120px max(32px, calc((100vw - 1200px) / 2)) 90px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide__image,
.hero-slide__shade {
    position: absolute;
    inset: 0;
}

.hero-slide__image img,
.detail-hero__backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04);
}

.hero-slide__shade {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.56) 50%, rgba(17, 24, 39, 0.36)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 48%);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--peach-600);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide h1,
.hero-slide h2,
.page-hero h1,
.detail-info h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-summary {
    max-width: 720px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-card__meta,
.rank-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-meta span,
.detail-meta span,
.movie-card__meta span,
.rank-row__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.movie-card__meta span,
.rank-row__meta span {
    color: #667085;
    background: var(--peach-50);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 16px 32px rgba(255, 100, 80, 0.32);
}

.btn-light {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
}

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

.hero-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.68);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.36) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    background: #ffffff !important;
}

.section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0;
}

.section--lifted {
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

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

.section__heading h2,
.detail-copy h2,
.info-card h2,
.player-caption h2 {
    color: var(--ink);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.section__heading a {
    color: var(--peach-600);
    font-weight: 800;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.category-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-card p,
.page-hero p,
.detail-lead,
.detail-copy p,
.player-caption p,
.site-footer p,
.category-overview__text p {
    color: var(--muted);
    line-height: 1.75;
}

.browse-tools {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.search-box {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(255, 145, 85, 0.30);
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
}

.search-box input:focus {
    border-color: var(--peach-500);
    box-shadow: 0 0 0 4px rgba(255, 145, 85, 0.12);
}

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

.filter-chips button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--peach-50);
    font-weight: 800;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 14px 34px rgba(255, 145, 85, 0.12);
}

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--peach-100);
}

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

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

.movie-card__year,
.movie-card__type {
    position: absolute;
    top: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.68);
}

.movie-card__year {
    left: 12px;
}

.movie-card__type {
    right: 12px;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__body h3 {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.movie-card__body p {
    min-height: 3.4em;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--peach-700, #e8622d);
    background: var(--peach-50);
    font-size: 12px;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
}

.empty-state.is-visible {
    display: block;
}

.section--split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
}

.split-panel,
.category-overview,
.player-card,
.info-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.split-panel--warm {
    background: linear-gradient(135deg, rgba(255, 245, 240, 0.92), rgba(255, 255, 255, 0.92));
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.rank-row__index {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
}

.rank-row__poster {
    overflow: hidden;
    width: 70px;
    height: 92px;
    border-radius: 14px;
}

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

.rank-row__main h3 {
    color: var(--ink);
    font-weight: 900;
    line-height: 1.3;
}

.rank-row__main p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.rank-row__score {
    min-width: 76px;
    text-align: right;
}

.rank-row__score strong {
    display: block;
    color: var(--coral-500);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.rank-row__score span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    padding: 120px max(32px, calc((100vw - 1200px) / 2)) 70px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.86), rgba(255, 100, 80, 0.62)),
        radial-gradient(circle at 20% 20%, rgba(255, 145, 85, 0.40), transparent 35%),
        #111827;
}

.page-hero div {
    width: min(780px, 100%);
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.category-overview-list {
    display: grid;
    gap: 26px;
}

.category-overview {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.category-overview__text h2 {
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.category-overview__text .btn {
    margin-top: 18px;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-hero__backdrop,
.detail-hero__shade {
    position: absolute;
    inset: 0;
}

.detail-hero__backdrop {
    opacity: 0.48;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.02);
}

.detail-hero__shade {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent 50%);
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 80px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

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

.detail-lead {
    max-width: 780px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
}

.movie-tags--detail span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-section:first-of-type {
    display: block;
}

.player-card {
    padding: 18px;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #0f172a;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.68));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
    box-shadow: 0 18px 45px rgba(255, 100, 80, 0.42);
    font-size: 34px;
    padding-left: 6px;
}

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

.player-caption {
    padding: 18px 6px 4px;
}

.player-caption h2 {
    font-size: 28px;
}

.detail-copy,
.detail-side {
    min-width: 0;
}

.detail-copy {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.detail-copy h2 + p {
    margin-top: 12px;
}

.detail-copy p + h2 {
    margin-top: 30px;
}

.info-card dl {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.info-card dt {
    color: var(--muted);
    font-weight: 700;
}

.info-card dd {
    color: var(--ink);
    font-weight: 800;
}

.detail-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.pager-link {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.pager-link span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.pager-link strong {
    color: var(--ink);
    font-size: 18px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 245, 240, 0.95), rgba(255, 240, 238, 0.95));
}

.site-footer__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 14px;
}

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

.footer-links h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.footer-links a {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--peach-600);
}

.site-footer__bottom {
    padding: 18px 16px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .hero-poster img {
        height: 400px;
    }

    .section--split,
    .detail-section,
    .category-overview {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: end;
        padding: 110px 16px 86px;
    }

    .hero-poster {
        display: none;
    }

    .hero-slide h1,
    .hero-slide h2,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .section,
    .site-header__inner,
    .detail-hero__inner,
    .site-footer__inner {
        width: min(100% - 24px, 1200px);
    }

    .section {
        padding: 52px 0;
    }

    .section__heading {
        display: block;
    }

    .section__heading a {
        display: inline-flex;
        margin-top: 10px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid--small,
    .footer-links,
    .site-footer__inner,
    .detail-layout,
    .detail-pager {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 44px 62px minmax(0, 1fr);
    }

    .rank-row__score {
        grid-column: 2 / -1;
        text-align: left;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-hero__inner {
        padding: 104px 0 54px;
    }

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

    .page-hero {
        min-height: 320px;
        padding: 110px 16px 58px;
    }
}
