@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap");

:root {
    --primary-50: #fef8f2;
    --primary-100: #fdeee0;
    --primary-400: #f29d5b;
    --primary-500: #ee7f38;
    --primary-600: #e0642d;
    --primary-700: #ba4d27;
    --secondary-50: #f5f5f4;
    --secondary-100: #e7e6e3;
    --secondary-500: #736d5f;
    --secondary-700: #4d4944;
    --secondary-800: #433f3c;
    --warm-50: #fdf8f6;
    --warm-100: #f2e8e5;
    --warm-200: #eaddd7;
    --warm-300: #e0cec7;
    --warm-800: #846358;
    --white: #ffffff;
    --black: #111111;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-card: 0 24px 60px rgba(67, 63, 60, 0.14);
    --shadow-soft: 0 14px 38px rgba(67, 63, 60, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--warm-50) 0%, var(--secondary-50) 100%);
    color: var(--secondary-800);
    font-family: Inter, "Noto Sans SC", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(234, 221, 215, 0.92);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    box-shadow: 0 12px 24px rgba(238, 127, 56, 0.28);
}

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

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--secondary-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: var(--primary-600);
    background: var(--warm-100);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--warm-100);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--secondary-800);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid var(--warm-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    background: var(--secondary-800);
    overflow: hidden;
}

.hero-track {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 18%, rgba(238, 127, 56, 0.44), transparent 30%),
        linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.68) 45%, rgba(17, 17, 17, 0.18) 100%),
        linear-gradient(0deg, rgba(67, 63, 60, 0.86), transparent 44%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding: 72px 0 98px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

.hero-desc {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--warm-100);
    font-size: 20px;
    line-height: 1.7;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--warm-100);
    font-size: 13px;
    font-weight: 800;
}

.tag-row span,
.detail-meta span {
    background: var(--primary-50);
    color: var(--primary-700);
}

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

.hero-actions.inline {
    flex-wrap: wrap;
}

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

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    box-shadow: 0 18px 36px rgba(238, 127, 56, 0.28);
}

.btn.ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

.btn.ghost.light {
    color: var(--secondary-800);
    border-color: var(--warm-200);
    background: var(--white);
}

.hero-control {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: min(1240px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.hero-control button {
    pointer-events: auto;
}

.hero-control > button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    font-size: 32px;
    line-height: 1;
}

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

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

.hero-dot.active {
    width: 48px;
    background: var(--primary-500);
}

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

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
}

.intro-section h2,
.section-heading h2,
.page-hero h1,
.article-section h2 {
    margin: 0;
    color: var(--secondary-800);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.intro-section p:not(.eyebrow),
.page-hero p,
.article-section p,
.category-tile p {
    max-width: 760px;
    color: var(--secondary-600);
    font-size: 17px;
    line-height: 1.8;
}

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

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading a {
    color: var(--primary-700);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(234, 221, 215, 0.82);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(17, 17, 17, 0.72), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: rgba(238, 127, 56, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 36px;
    height: 36px;
    background: rgba(17, 17, 17, 0.72);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--warm-800);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3,
.compact-card h3 {
    margin: 10px 0 8px;
    color: var(--secondary-800);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover,
.compact-card h3 a:hover {
    color: var(--primary-700);
}

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

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

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

.category-tile {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--warm-200);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 10%, rgba(238, 127, 56, 0.16), transparent 28%),
        var(--white);
    box-shadow: var(--shadow-soft);
}

.category-title {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--secondary-800);
    font-size: 24px;
    font-weight: 900;
}

.category-title:hover {
    color: var(--primary-700);
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    color: var(--primary-700);
    font-size: 14px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
}

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

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--warm-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.compact-poster {
    width: 92px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary-700), var(--primary-600));
}

.compact-rank {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 900;
}

.search-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--warm-200);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-box input,
.filter-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--warm-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--secondary-800);
    outline: none;
}

.search-box input {
    padding: 0 18px;
}

.search-box button {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 900;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.filter-row select {
    padding: 0 16px;
}

.no-result {
    margin: 14px 0 0;
    color: var(--primary-700);
    font-weight: 900;
}

.page-hero.small {
    width: min(1240px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 58px;
    border-radius: 34px;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(238, 127, 56, 0.38), transparent 30%),
        linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
    box-shadow: var(--shadow-card);
}

.page-hero.small h1,
.page-hero.small p {
    color: var(--white);
}

.page-hero.small p:not(.eyebrow) {
    color: var(--warm-200);
}

.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 36px auto 0;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 32px;
    border-radius: 34px;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 8%, rgba(238, 127, 56, 0.36), transparent 30%),
        linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
    box-shadow: var(--shadow-card);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--secondary-700), var(--primary-600));
    box-shadow: 0 30px 70px rgba(17, 17, 17, 0.25);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--warm-200);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: var(--primary-400);
}

.detail-info h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.detail-line {
    max-width: 780px;
    margin: 22px 0;
    color: var(--warm-100);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta,
.detail-tags {
    margin-top: 14px;
}

.player-section {
    padding-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #050505;
    box-shadow: var(--shadow-card);
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #050505;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(17, 17, 17, 0.72), rgba(17, 17, 17, 0.22));
    font-weight: 900;
    font-size: 20px;
}

.player-start.is-hidden {
    display: none;
}

.player-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    box-shadow: 0 18px 40px rgba(238, 127, 56, 0.36);
    font-size: 38px;
    text-indent: 4px;
}

.article-section {
    max-width: 980px;
}

.article-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 30px;
}

.article-section p {
    margin: 0 0 30px;
    max-width: none;
    color: var(--secondary-700);
    font-size: 18px;
    line-height: 2;
}

.site-footer {
    margin-top: 56px;
    color: var(--warm-100);
    background: var(--secondary-800);
}

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

.footer-brand {
    color: var(--white);
    font-size: 24px;
}

.footer-main p {
    max-width: 620px;
    color: var(--warm-200);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--warm-200);
    background: rgba(255, 255, 255, 0.06);
}

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

.footer-copy {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(234, 221, 215, 0.16);
    color: var(--warm-300);
    text-align: center;
}

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

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero-slider,
    .hero-track,
    .hero-slide img {
        min-height: 580px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 12vw, 58px);
    }

    .hero-desc {
        font-size: 17px;
    }

    .intro-section,
    .split-layout,
    .footer-inner,
    .detail-hero,
    .rank-page-list {
        grid-template-columns: 1fr;
    }

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

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

    .filter-row {
        grid-template-columns: 1fr;
    }

    .page-hero.small,
    .detail-hero {
        padding: 28px;
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 64px;
    }

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

    .hero-slider,
    .hero-track,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-actions,
    .search-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .search-box button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .movie-grid,
    .movie-grid.wide,
    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .compact-poster {
        width: 74px;
    }

    .card-body p {
        min-height: auto;
    }
}
