:root {
    --primary-900: #0c4a6e;
    --primary-800: #075985;
    --primary-700: #0369a1;
    --primary-600: #0284c7;
    --primary-500: #0ea5e9;
    --primary-100: #e0f2fe;
    --primary-50: #f0f9ff;
    --accent-600: #d97706;
    --accent-500: #f59e0b;
    --accent-400: #fbbf24;
    --neutral-950: #0c0a09;
    --neutral-900: #1c1917;
    --neutral-800: #292524;
    --neutral-700: #44403c;
    --neutral-600: #57534e;
    --neutral-500: #78716c;
    --neutral-300: #d6d3d1;
    --neutral-200: #e7e5e4;
    --neutral-100: #f5f5f4;
    --neutral-50: #fafaf9;
    --white: #ffffff;
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--neutral-900);
    background: var(--neutral-50);
    line-height: 1.6;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
    box-shadow: var(--shadow-md);
}

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

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--primary-900);
    background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

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

.nav-link {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.90);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent-400);
}

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

.nav-search input {
    width: 190px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.70);
}

.nav-search button,
.hero-search button,
.filter-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
    height: 36px;
    padding: 0 14px;
    color: var(--white);
    background: var(--accent-500);
}

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    background: var(--accent-600);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent-400);
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--neutral-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
    background-position: center;
    background-size: cover;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55) 42%, rgba(12, 74, 110, 0.38));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 36px;
    padding: 80px 0 72px;
}

.hero-copy {
    max-width: 740px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--accent-400);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero p {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--neutral-200);
    font-size: 18px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
}

.primary-button {
    color: var(--white);
    background: var(--accent-500);
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.24);
}

.secondary-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
}

.secondary-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
}

.hero-search {
    width: min(580px, 100%);
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(16px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 12px;
    color: var(--white);
    background: transparent;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    min-width: 92px;
    min-height: 42px;
    color: var(--white);
    background: var(--accent-500);
}

.hero-side {
    align-self: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(12, 74, 110, 0.48);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-xl);
}

.hero-side h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 20px;
}

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

.hero-chips a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
}

.hero-chips a:hover {
    color: var(--neutral-950);
    background: var(--accent-400);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--accent-500);
}

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

.section {
    margin-top: 60px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
}

.section-desc {
    margin: 8px 0 0;
    color: var(--neutral-600);
}

.more-link {
    color: var(--primary-700);
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card.is-wide {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-900), var(--neutral-900));
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card.is-wide .poster-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
    transition: opacity 0.28s ease;
}

.poster-year {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: 8px;
    color: var(--white);
    background: var(--accent-500);
    font-size: 12px;
    font-weight: 850;
}

.movie-card:hover .poster-frame {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.movie-card:hover .poster-frame img {
    transform: scale(1.055);
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.card-body {
    margin-top: 10px;
}

.movie-card.is-wide .card-body {
    margin-top: 0;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

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

.card-meta {
    margin: 6px 0 0;
    color: var(--neutral-600);
    font-size: 13px;
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 7px 0 0;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.tag-row span,
.meta-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 7px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-size: 12px;
    font-weight: 750;
}

.feature-band,
.rank-band,
.category-band {
    border-radius: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--primary-50), #fff7ed);
}

.scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

.scroller .movie-card {
    flex: 0 0 190px;
    scroll-snap-align: start;
}

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

.category-card {
    min-height: 150px;
    padding: 20px;
    border-radius: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
    box-shadow: var(--shadow-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--neutral-900), var(--primary-700));
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, var(--accent-600), var(--primary-800));
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 44px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.rank-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

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

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 900;
}

.rank-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}

.rank-card h3 a:hover {
    color: var(--primary-600);
}

.rank-card p,
.rank-card span {
    display: block;
    margin: 4px 0 0;
    color: var(--neutral-600);
    font-size: 13px;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.30), transparent 26%), linear-gradient(135deg, var(--primary-900), var(--neutral-900));
}

.page-hero .main {
    padding: 54px 0;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--neutral-200);
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

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

.filter-search input {
    min-width: 0;
    flex: 1;
    height: 44px;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 0 14px;
    outline: none;
}

.filter-search input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.filter-search button {
    padding: 0 18px;
    color: var(--white);
    background: var(--primary-600);
}

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

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    cursor: pointer;
    font-weight: 750;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: var(--white);
    background: var(--primary-600);
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    text-align: center;
    color: var(--neutral-600);
    background: var(--white);
}

.detail-shell {
    background: var(--neutral-950);
}

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 36px;
    color: var(--white);
}

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

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: var(--shadow-xl);
}

.video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--accent-500);
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    font-size: 32px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.play-button:hover {
    transform: scale(1.05);
    background: var(--accent-600);
}

.detail-title {
    margin-top: 24px;
}

.detail-title h1 {
    font-size: clamp(30px, 4.4vw, 50px);
}

.detail-title p {
    max-width: 820px;
    color: var(--neutral-200);
    font-size: 18px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    background: var(--neutral-900);
    box-shadow: var(--shadow-xl);
}

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

.detail-meta-box {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta-box dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
    color: var(--neutral-200);
    font-size: 14px;
}

.detail-meta-box dt {
    color: var(--accent-400);
    font-weight: 800;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.article-card {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.2;
}

.article-card p {
    margin: 0 0 18px;
    color: var(--neutral-700);
}

.side-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.mini-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-item img {
    width: 70px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.mini-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.mini-item p {
    margin: 4px 0 0;
    color: var(--neutral-600);
    font-size: 12px;
}

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

.site-footer {
    margin-top: 72px;
    padding: 48px 0 28px;
    color: var(--neutral-300);
    background: var(--neutral-900);
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: var(--neutral-300);
    font-size: 14px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--accent-400);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--neutral-800);
    color: var(--neutral-500);
    font-size: 14px;
}

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

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

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

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

    .hero-side {
        max-width: 640px;
        align-self: auto;
    }

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

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

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

@media (max-width: 760px) {
    .nav-wrap {
        width: min(100% - 24px, 1180px);
    }

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

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 58px 0 76px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p,
    .page-hero p,
    .detail-title p {
        font-size: 16px;
    }

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

    .hero-search button,
    .filter-search button {
        min-height: 42px;
    }

    .main {
        padding: 40px 0 52px;
    }

    .section {
        margin-top: 46px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.medium,
    .rank-grid,
    .search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .category-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-card {
        grid-template-columns: 72px 34px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .article-card {
        padding: 22px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.medium,
    .rank-grid,
    .search-results {
        grid-template-columns: 1fr;
    }

    .scroller .movie-card {
        flex-basis: 165px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
    }
}
