:root {
    color-scheme: light;
    --brand: #f97316;
    --brand-dark: #ea580c;
    --rose: #ec4899;
    --red: #ef4444;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1280px;
    height: 66px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #f97316;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    white-space: nowrap;
    font-size: 15px;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.wide-search input {
    border: 1px solid rgba(255, 255, 255, 0.35);
    outline: none;
}

.top-search input {
    width: 220px;
    padding: 10px 42px 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: width 0.25s ease, background 0.25s ease;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: #ffedd5;
}

.top-search input:focus {
    width: 280px;
    background: rgba(255, 255, 255, 0.28);
}

.top-search button {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel a,
.mobile-search button {
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.mobile-search button {
    border: none;
    color: #ffffff;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    min-height: 590px;
}

.hero-slide.is-active {
    display: block;
}

.hero-backdrop,
.detail-hero {
    background-position: center;
    background-size: cover;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    filter: saturate(1.15) brightness(0.72);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.34) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.04) 55%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    align-items: center;
    gap: 52px;
    max-width: 1280px;
    min-height: 590px;
    margin: 0 auto;
    padding: 64px 24px;
}

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

.hero-eyebrow,
.section-heading p,
.page-hero p {
    color: #fed7aa;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-one-line {
    max-width: 680px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 700;
}

.hero-summary {
    max-width: 680px;
    color: #e5e7eb;
    font-size: 17px;
    line-height: 1.8;
}

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

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

.primary-button,
.wide-search button {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.3);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.category-more:hover,
.wide-search button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px 0;
}

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

.section-heading h2,
.page-hero h1,
.story-card h2,
.detail-side h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

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

.category-tile,
.movie-card,
.rank-item,
.story-card,
.detail-side,
.wide-search,
.filter-bar {
    border: 1px solid rgba(254, 215, 170, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.category-tile {
    padding: 22px;
}

.category-tile-head {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: start;
}

.category-tile-head > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    color: var(--muted);
    line-height: 1.7;
}

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

.compact-card {
    position: relative;
    min-height: 120px;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.compact-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.25s ease;
}

.compact-card span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

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

.category-more {
    width: 100%;
    color: var(--brand-dark);
    background: #fff7ed;
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 40px;
    opacity: 0;
    background: rgba(17, 24, 39, 0.32);
    transition: opacity 0.22s ease;
}

.poster-link:hover .poster-play {
    opacity: 1;
}

.rating-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #fff7ed;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.rank-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 58px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 110px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-index {
    color: #f97316;
    font-size: 32px;
    font-weight: 900;
}

.rank-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-body p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.page-hero {
    position: relative;
    margin: 0;
    padding: 86px 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(115deg, #f97316 0%, #ef4444 48%, #ec4899 100%);
}

.page-hero div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 12px 0;
    color: #ffffff;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

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

.filter-bar,
.wide-search {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
}

.wide-search input,
.filter-bar input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 18px;
    background: #fff7ed;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-chips button {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    color: #c2410c;
    background: #ffedd5;
    font-weight: 800;
}

.filter-chips button.is-active {
    color: #ffffff;
    background: #f97316;
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    color: var(--muted);
    text-align: center;
}

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

.detail-hero {
    position: relative;
    color: #ffffff;
    background-color: #111827;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), transparent);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
    color: #ffedd5;
    font-weight: 700;
}

.detail-head-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    width: 270px;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.detail-copy h1 {
    margin: 10px 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 840px;
    color: #f9fafb;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 700;
}

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

.detail-score-row span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.watch-section {
    max-width: 1280px;
    margin: -30px auto 0;
    padding: 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 8px solid #ffffff;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 16px;
    border: none;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.62));
    font-size: 20px;
    font-weight: 900;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #f97316;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
    font-size: 42px;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.story-card,
.detail-side {
    padding: 26px;
}

.story-card p {
    margin: 16px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.detail-side dl {
    display: grid;
    gap: 16px;
    margin: 20px 0 0;
}

.detail-side div {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
}

.detail-side dt {
    color: #9ca3af;
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.site-footer {
    margin-top: 80px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
}

.footer-brand p {
    max-width: 560px;
    margin: 14px 0 0;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

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

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

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

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

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

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

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 640px;
    }

    .hero-poster {
        display: none;
    }

    .category-grid,
    .rank-list,
    .detail-section,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-head-grid {
        grid-template-columns: 130px minmax(0, 1fr);
        align-items: center;
    }

    .detail-cover {
        width: 130px;
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        padding: 0 16px;
    }

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

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

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .hero-control {
        display: none;
    }

    .section-wrap {
        padding: 50px 16px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 10px;
    }

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

    .rank-item {
        grid-template-columns: 82px 44px 1fr;
        gap: 10px;
    }

    .rank-cover img {
        width: 82px;
    }

    .rank-body p {
        display: none;
    }

    .filter-bar,
    .wide-search {
        flex-direction: column;
    }

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

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

    .detail-cover {
        width: 190px;
    }

    .watch-section {
        margin-top: -18px;
        padding: 0 14px;
    }

    .player-shell {
        border-width: 4px;
        border-radius: 20px;
    }
}
