:root {
    --sunset-50: #fff7ed;
    --sunset-100: #ffedd5;
    --sunset-400: #fb923c;
    --sunset-500: #f97316;
    --sunset-600: #ea580c;
    --sunset-700: #c2410c;
    --twilight-50: #fff1f2;
    --twilight-100: #ffe4e6;
    --twilight-500: #ef4444;
    --twilight-600: #dc2626;
    --golden-50: #fffbeb;
    --golden-500: #f59e0b;
    --ocean-500: #0ea5e9;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--sunset-50), var(--white) 34%, var(--sunset-50));
    color: var(--gray-800);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
}

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

.brand-icon,
.footer-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    color: var(--white);
    font-size: 16px;
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.32);
}

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

.brand-text strong {
    color: var(--gray-900);
    font-size: 20px;
    line-height: 1.1;
}

.brand-text small {
    color: var(--gray-500);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--sunset-600);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    padding: 9px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
}

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

.mobile-link {
    padding: 11px 13px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: var(--sunset-50);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    color: var(--white);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 22%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.16)),
        linear-gradient(135deg, rgba(249, 115, 22, 0.56), rgba(239, 68, 68, 0.42));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 112px 0 132px;
}

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

.hero-content .eyebrow {
    color: rgba(255, 255, 255, 0.92);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button.primary {
    background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
    color: var(--white);
    box-shadow: 0 14px 26px rgba(239, 68, 68, 0.3);
}

.hero-actions .button.primary {
    background: var(--white);
    color: var(--sunset-600);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.button.ghost,
.button.ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
}

.button.ghost-light {
    color: var(--sunset-600);
    border-color: var(--sunset-100);
}

.button.outline {
    color: var(--sunset-600);
    border-color: var(--sunset-100);
    background: var(--white);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.featured-wrap,
.section-block,
.page-shell,
.ranking-list,
.breadcrumb,
.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.featured-wrap {
    position: relative;
    z-index: 4;
    margin-top: -72px;
    margin-bottom: 72px;
}

.featured-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-strong);
}

.featured-image {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    background: var(--gray-900);
}

.featured-image img,
.poster-link img,
.category-tile img,
.ranking-cover img,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 36px;
}

.featured-content h2,
.section-heading h2,
.category-overview-head h2,
.detail-panel h1,
.detail-panel h2,
.page-hero h1 {
    margin: 0;
    color: var(--gray-900);
}

.featured-content h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.featured-content p,
.section-heading p,
.category-overview-head p,
.page-hero p,
.detail-panel p,
.ranking-content p {
    color: var(--gray-600);
    line-height: 1.85;
}

.detail-meta span {
    padding: 6px 11px;
    background: var(--sunset-50);
    color: var(--sunset-700);
}

.section-block {
    margin-bottom: 72px;
}

.gradient-panel {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--golden-50), var(--sunset-50));
}

.flat-section {
    margin-top: 34px;
}

.section-heading {
    margin-bottom: 28px;
}

.inline-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.text-link {
    color: var(--sunset-600);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: var(--sunset-100);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-700));
}

.poster-link img {
    transition: transform 0.36s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img {
    transform: scale(1.06);
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

.play-mark.large {
    width: 52px;
    height: 52px;
    font-size: 18px;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--golden-500), var(--sunset-500));
    color: var(--white);
    font-weight: 900;
    font-size: 13px;
}

.card-body {
    padding: 16px;
}

.card-meta {
    gap: 7px;
    margin-bottom: 9px;
}

.card-meta span {
    color: var(--gray-500);
    font-size: 12px;
}

.card-body h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
}

.compact .card-body h2 {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-list span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--twilight-50);
    color: var(--twilight-600);
    font-size: 12px;
    font-weight: 700;
}

.tag-list span {
    padding: 5px 9px;
}

.detail-tags span {
    padding: 7px 12px;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--gray-900);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-tile img {
    position: absolute;
    inset: 0;
    transition: transform 0.36s ease;
}

.category-tile span,
.category-tile small {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 52px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
}

.page-shell {
    padding: 42px 0 0;
}

.page-hero {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: center;
    gap: 28px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--sunset-50), var(--white) 42%, var(--twilight-50));
    box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
}

.filter-box input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-900);
    outline: none;
    padding: 0 20px;
    box-shadow: var(--shadow-soft);
}

.filter-box input:focus {
    border-color: var(--sunset-400);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.wide-filter {
    max-width: 520px;
    width: 100%;
}

.category-overview-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    margin-bottom: 22px;
}

.ranking-list {
    display: grid;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 72px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 54px 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--golden-500), var(--sunset-500));
    color: var(--white);
    font-weight: 900;
}

.ranking-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: var(--gray-900);
}

.ranking-content h2 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 22px;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray-600);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 26px 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sunset-600);
    font-weight: 700;
}

.detail-page {
    background: linear-gradient(180deg, var(--gray-50), var(--white));
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 52%);
    transition: opacity 0.2s ease;
}

.player-card.is-playing .player-layer {
    opacity: 0;
}

.player-card:hover .player-layer,
.player-card.is-paused .player-layer {
    opacity: 1;
}

.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    pointer-events: auto;
}

.detail-panel,
.side-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-panel h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.12;
}

.detail-panel h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 24px;
}

.lead-text {
    color: var(--gray-800);
    font-size: 20px;
    font-weight: 700;
}

.detail-tags {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.detail-side {
    position: sticky;
    top: 92px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    background: var(--gray-900);
    box-shadow: var(--shadow-strong);
}

.side-card h2 {
    margin: 0 0 18px;
    color: var(--gray-900);
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.side-card dt {
    color: var(--gray-500);
    font-weight: 700;
}

.side-card dd {
    margin: 0;
    color: var(--gray-800);
}

.side-card a {
    color: var(--sunset-600);
    font-weight: 800;
}

.related-section {
    padding-top: 44px;
}

.site-footer {
    margin-top: 72px;
    background: var(--gray-900);
    color: var(--gray-300);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--white);
}

.footer-brand p {
    max-width: 460px;
    margin: 0;
    color: var(--gray-400);
    line-height: 1.85;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 18px;
}

.footer-links a:hover {
    color: var(--sunset-400);
}

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

@media (max-width: 1080px) {
    .four-grid,
    .six-grid,
    .three-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-side {
        position: static;
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 22px;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero-slider {
        min-height: 560px;
    }

    .hero-content {
        padding: 88px 0 110px;
    }

    .hero-actions,
    .inline-heading,
    .category-overview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .featured-card,
    .page-hero,
    .footer-inner,
    .detail-side,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 420px;
    }

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

    .gradient-panel,
    .page-hero,
    .category-overview-card,
    .detail-panel,
    .side-card {
        padding: 22px;
    }

    .ranking-number {
        width: auto;
    }
}

@media (max-width: 520px) {
    .four-grid,
    .six-grid,
    .three-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .brand-text small {
        display: none;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .featured-image {
        min-height: 320px;
    }
}
