:root {
    --autumn-50: #fff7ed;
    --autumn-100: #ffedd5;
    --autumn-200: #fed7aa;
    --autumn-300: #fdba74;
    --autumn-400: #fb923c;
    --autumn-500: #f97316;
    --autumn-600: #ea580c;
    --autumn-700: #c2410c;
    --autumn-800: #9a3412;
    --leaf-200: #bbf7d0;
    --leaf-500: #22c55e;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f0e7dd;
    --bg: #fffaf5;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(154, 52, 18, 0.13);
    --soft-shadow: 0 10px 28px rgba(154, 52, 18, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--autumn-50) 0%, #ffffff 38%, #fffaf5 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.top-strip {
    padding: 8px 16px;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-600), var(--autumn-400));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 24px rgba(154, 52, 18, 0.08);
}

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

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

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

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.brand em {
    display: block;
    color: var(--autumn-500);
    font-style: normal;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-links a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--autumn-600);
}

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

.nav-search input,
.inline-filter input,
.wide-search input {
    border: 2px solid var(--autumn-200);
    border-radius: 999px;
    padding: 11px 16px;
    min-width: 220px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button,
.inline-filter button,
.wide-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.inline-filter button,
.wide-search button,
.primary-btn {
    color: #ffffff;
    background: var(--autumn-600);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.2);
}

.nav-search button:hover,
.inline-filter button:hover,
.wide-search button:hover,
.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--autumn-700);
    font-size: 26px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700), var(--autumn-400));
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-image: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.44), transparent 28%), radial-gradient(circle at 82% 20%, rgba(187, 247, 208, 0.3), transparent 24%), radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.24), transparent 35%);
}

.hero-slides {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(3px) saturate(1.05);
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 82px 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 720px;
}

.hero-content h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 30px;
    color: var(--autumn-100);
    font-size: clamp(18px, 2vw, 25px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.eyebrow.dark {
    color: var(--autumn-700);
    background: var(--autumn-100);
}

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

.hero-poster {
    position: absolute;
    z-index: 3;
    right: max(32px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(320px, 26vw);
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(80, 26, 7, 0.32);
    transform: translateY(-50%) rotate(3deg);
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

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

.quick-search-panel,
.section-block,
.category-ribbon,
.player-section,
.detail-content {
    padding: 56px 0;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    gap: 28px;
    align-items: center;
    margin-top: -44px;
    padding: 28px;
    position: relative;
    z-index: 6;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.quick-search-panel h2,
.section-head h2,
.page-hero h1,
.detail-intro h1 {
    margin: 0;
    color: #1f2937;
    line-height: 1.12;
}

.quick-search-panel h2,
.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.quick-search-panel p,
.section-head p,
.page-hero p,
.detail-intro p {
    color: var(--muted);
}

.wide-search,
.inline-filter {
    display: flex;
    gap: 10px;
}

.wide-search input,
.inline-filter input {
    flex: 1;
    min-width: 0;
}

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

.section-head > a {
    color: var(--autumn-600);
    font-weight: 800;
}

.center-head {
    justify-content: center;
    text-align: center;
}

.raised-block {
    padding: 36px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.featured-grid .movie-card:first-child {
    grid-column: span 2;
}

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(154, 52, 18, 0.17);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--autumn-100);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.cover-play,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
}

.cover-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
    box-shadow: 0 10px 24px rgba(124, 45, 18, 0.28);
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

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

.card-meta a {
    color: var(--autumn-700);
    font-weight: 800;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.card-body h3 a:hover {
    color: var(--autumn-600);
}

.card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row span,
.detail-tags a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 13px;
}

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

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

.category-chip-grid a,
.category-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 26px 14px;
    border-radius: 22px;
    text-align: center;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-chip-grid a:hover,
.category-card-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-chip-grid span,
.category-card-main span {
    font-size: 34px;
}

.category-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    overflow: hidden;
}

.category-card h2 {
    margin: 0;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-mini-links {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.category-mini-links a {
    color: var(--muted);
    font-size: 14px;
}

.category-mini-links a:hover {
    color: var(--autumn-600);
}

.page-hero {
    padding: 74px 0 64px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700), var(--autumn-400));
    overflow: hidden;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    max-width: 820px;
}

.page-hero p {
    max-width: 740px;
    color: var(--autumn-100);
    font-size: 20px;
}

.category-page-hero,
.search-hero,
.ranking-hero {
    position: relative;
}

.category-page-hero::after,
.search-hero::after,
.ranking-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.search-status {
    margin-bottom: 20px;
    color: var(--autumn-700);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #2b1208;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.28;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 18, 8, 0.94), rgba(43, 18, 8, 0.62), rgba(43, 18, 8, 0.22));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.34);
}

.detail-intro h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 66px);
}

.lead-text {
    max-width: 780px;
    font-size: 20px;
}

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

.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.player-section {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #100804;
    box-shadow: 0 30px 70px rgba(43, 18, 8, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-cover strong {
    position: relative;
    z-index: 2;
    margin-top: 120px;
    font-size: clamp(22px, 3vw, 42px);
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

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

.play-orb {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--autumn-600);
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.38);
    font-size: 34px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.9fr;
    gap: 24px;
}

.story-card {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--autumn-800);
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.info-card div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
}

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

.info-card dd {
    margin: 0;
    font-weight: 750;
}

.site-footer {
    margin-top: 60px;
    padding: 52px 0 24px;
    background: linear-gradient(180deg, var(--autumn-50), var(--autumn-100));
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--autumn-800);
    font-size: 18px;
}

.site-footer p {
    max-width: 520px;
    color: var(--muted);
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #4b5563;
}

.site-footer a:hover {
    color: var(--autumn-600);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(194, 65, 12, 0.16);
    color: var(--muted);
    text-align: center;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

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

    .hero-poster {
        opacity: 0.36;
        right: 24px;
        width: 270px;
    }

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

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

@media (max-width: 760px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .brand strong {
        font-size: 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 8px 0;
    }

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

    .hero-content {
        padding-right: 0;
    }

    .hero-poster {
        display: none;
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .inline-filter,
    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-list,
    .featured-grid .movie-card:first-child,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .raised-block {
        padding: 22px;
    }

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

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

    .player-cover strong {
        margin-top: 96px;
    }

    .play-orb {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 460px) {
    .category-chip-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .card-body h3 {
        font-size: 18px;
    }
}
