:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-400: #38bdf8;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --accent-50: #fffbeb;
    --accent-100: #fef3c7;
    --accent-400: #f59e0b;
    --accent-600: #d97706;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    --white: #ffffff;
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
    --radius-lg: 16px;
    --radius-xl: 22px;
}

* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--secondary-900);
    background: var(--secondary-50);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--secondary-50);
    color: var(--secondary-900);
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-shell {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--secondary-900);
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-50);
    color: var(--primary-600);
}

.brand-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    color: var(--secondary-700);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--primary-50);
    color: var(--primary-600);
}

.header-search,
.mobile-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--secondary-300);
    border-radius: 12px;
    background: var(--white);
    color: var(--secondary-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 235px;
    padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--primary-600);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--secondary-100);
    color: var(--secondary-800);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

.mobile-panel {
    border-top: 1px solid var(--secondary-200);
    background: var(--white);
}

.mobile-panel-inner {
    padding: 16px 0;
}

.mobile-search input {
    width: 100%;
    padding: 11px 14px;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
}

.hero {
    position: relative;
    min-height: 70vh;
    height: 72vh;
    overflow: hidden;
    background: var(--secondary-900);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.32), transparent 26%),
        linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

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

.hero-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-400);
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    font-size: clamp(17px, 2vw, 22px);
    color: var(--secondary-200);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag,
.detail-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 14px;
    backdrop-filter: blur(8px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    padding: 0 26px;
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.28);
}

.primary-btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px) scale(1.01);
}

.ghost-btn {
    padding: 0 24px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}

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

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

.hero-dot.is-active {
    width: 60px;
    background: var(--primary-400);
}

.page-section {
    padding: 64px 0;
}

.gradient-section {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--secondary-900);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--secondary-600);
}

.section-more {
    min-height: 38px;
    color: var(--primary-700);
    white-space: nowrap;
}

.section-more:hover {
    color: var(--primary-600);
    transform: translateX(2px);
}

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

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

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

.movie-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--secondary-200);
}

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

.movie-link:hover .poster-wrap img,
.category-tile:hover img,
.rank-link:hover img {
    transform: scale(1.08);
}

.duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.movie-info {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 800;
}

.view-badge {
    color: var(--secondary-500);
    font-size: 12px;
}

.movie-info h2,
.rank-link h2 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    color: var(--secondary-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-link:hover h2,
.rank-link:hover h2 {
    color: var(--primary-600);
}

.movie-info p,
.rank-link p,
.category-tile p {
    margin: 0;
    color: var(--secondary-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    margin-top: 12px;
}

.mini-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--secondary-100);
    color: var(--secondary-500);
    font-size: 12px;
}

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

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

.category-tile {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.45s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

.category-tile div {
    position: absolute;
    inset: auto 0 0;
    padding: 22px;
}

.category-tile span {
    color: var(--accent-400);
    font-weight: 850;
    font-size: 13px;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.focus-panel {
    position: sticky;
    top: 88px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.focus-panel h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.focus-panel p {
    margin: 0 0 22px;
    color: var(--secondary-300);
    line-height: 1.8;
}

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

.rank-list.compact {
    gap: 12px;
}

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

.rank-link {
    display: grid;
    grid-template-columns: auto 128px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.rank-link img {
    width: 128px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 900;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: var(--secondary-500);
    font-size: 13px;
}

.sub-hero {
    padding: 58px 0 52px;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border-bottom: 1px solid var(--secondary-200);
}

.category-hero {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--secondary-600);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--secondary-600);
    font-size: 14px;
}

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

.breadcrumb strong {
    color: var(--secondary-900);
    font-weight: 800;
}

.filter-bar {
    margin-bottom: 28px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-bar input {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
}

.filter-bar select {
    min-width: 160px;
    padding: 12px 14px;
}

.empty-state {
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--secondary-600);
    box-shadow: var(--shadow-md);
}

.related-categories {
    padding-top: 0;
}

.related-categories h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.related-categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-categories a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--white);
    color: var(--secondary-700);
    box-shadow: var(--shadow-md);
}

.related-categories a:hover {
    color: var(--primary-600);
}

.detail-top {
    padding-top: 32px;
}

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

.detail-main {
    min-width: 0;
}

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

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

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.16));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--primary-600);
    box-shadow: 0 20px 50px rgba(2, 132, 199, 0.42);
    font-size: 28px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-overlay:hover .play-circle {
    background: var(--primary-700);
    transform: scale(1.06);
}

.play-title {
    max-width: 80%;
    font-size: 18px;
    font-weight: 850;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.detail-copy {
    padding: 28px 0 0;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--secondary-600);
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--secondary-100);
}

.genre-line {
    margin: 0 0 16px;
    color: var(--secondary-600);
}

.detail-tags {
    margin-bottom: 22px;
}

.detail-tag {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

.detail-copy blockquote {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 4px solid var(--primary-600);
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary-50), var(--accent-50));
    color: var(--secondary-900);
    font-size: 18px;
    font-weight: 750;
}

.text-panel {
    margin-bottom: 22px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--secondary-100);
}

.white-panel {
    background: var(--white);
    border: 1px solid var(--secondary-200);
}

.text-panel h2,
.sticky-card h2 {
    margin: 0 0 12px;
    color: var(--secondary-900);
    font-size: 21px;
    font-weight: 900;
}

.text-panel p {
    margin: 0;
    color: var(--secondary-700);
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 88px;
}

.side-list .rank-link {
    grid-template-columns: 92px minmax(0, 1fr);
}

.side-list .rank-link img {
    width: 92px;
    height: 70px;
}

.side-list .rank-num {
    display: none;
}

.side-list .rank-meta {
    display: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 42px;
    padding: 52px 0 36px;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-about p {
    max-width: 560px;
    margin: 0;
    color: var(--secondary-400);
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    padding: 20px 0 30px;
    border-top: 1px solid var(--secondary-800);
    color: var(--secondary-500);
    text-align: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

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

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

    .focus-panel,
    .sticky-card {
        position: static;
    }
}

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

    .hero {
        height: 76vh;
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 82px;
    }

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

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

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        min-width: 0;
    }

    .rank-link {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .rank-num {
        display: none;
    }

    .rank-link img {
        width: 92px;
        height: 70px;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

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

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

    .hero-copy p {
        font-size: 16px;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .hero-dot {
        width: 26px;
    }

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

    .page-section {
        padding: 46px 0;
    }

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

    .category-tile {
        min-height: 220px;
    }

    .detail-copy blockquote {
        font-size: 16px;
    }

    .text-panel {
        padding: 20px;
    }
}
