:root {
    --primary-50: #e6f2f8;
    --primary-100: #cce5f1;
    --primary-400: #3397c7;
    --primary-600: #006494;
    --primary-700: #004b6f;
    --primary-800: #00324a;
    --secondary-600: #147494;
    --accent-50: #fef9e7;
    --accent-500: #f5c30f;
    --accent-600: #c49c0c;
    --neutral-50: #f8f9fa;
    --neutral-100: #f1f3f5;
    --neutral-200: #e9ecef;
    --neutral-300: #dee2e6;
    --neutral-500: #adb5bd;
    --neutral-600: #6c757d;
    --neutral-700: #495057;
    --neutral-900: #212529;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.16);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--neutral-900);
    background: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 38%, #ffffff 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-copy em {
    margin-top: 3px;
    color: var(--neutral-600);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    color: var(--neutral-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.header-search input,
.mobile-search input,
.wide-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--neutral-900);
    background: transparent;
}

.header-search input {
    width: 230px;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.wide-search button {
    border: 0;
    color: #ffffff;
    background: var(--primary-600);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
    padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover {
    background: var(--primary-700);
}

.menu-button {
    display: none;
    border: 0;
    padding: 8px 12px;
    color: var(--neutral-900);
    background: var(--neutral-100);
    border-radius: 10px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--neutral-200);
    background: #ffffff;
}

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

.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    color: var(--neutral-700);
    border-radius: 10px;
    font-weight: 600;
}

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

.mobile-search {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    overflow: hidden;
}

.mobile-search input {
    padding: 11px 12px;
}

.mobile-search button {
    padding: 11px 16px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-600) 50%, var(--secondary-600));
}

.hero-track {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 54px;
    padding: 70px 24px 86px;
    opacity: 0;
    transform: translateX(36px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 8% 8% auto auto;
    width: 280px;
    height: 280px;
    background: rgba(245, 195, 15, 0.18);
    filter: blur(80px);
    border-radius: 999px;
}

.hero-image {
    position: relative;
    order: 2;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.1);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.42));
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-500);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 22px 0 0;
    max-width: 620px;
    color: var(--primary-50);
    font-size: 20px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-button {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: var(--shadow-soft);
}

.ghost-button {
    color: #ffffff;
    background: rgba(0, 50, 74, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.text-button {
    color: var(--primary-600);
    background: var(--primary-50);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.38);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

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

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 28px;
    align-items: center;
    margin-top: -38px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 28px;
    box-shadow: var(--shadow-strong);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.detail-copy h1,
.detail-content h2 {
    margin: 0;
    color: var(--neutral-900);
    letter-spacing: -0.04em;
}

.search-panel h2,
.section-heading h2,
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.search-panel p,
.page-hero p,
.category-card p,
.category-overview-head p,
.detail-one-line,
.detail-content p {
    color: var(--neutral-600);
}

.wide-search {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--neutral-300);
    border-radius: 16px;
    overflow: hidden;
    background: var(--neutral-50);
}

.wide-search input {
    padding: 15px 16px;
    background: #ffffff;
}

.wide-search button {
    padding: 0 24px;
}

.filter-bar {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-bar button {
    border: 1px solid var(--neutral-300);
    padding: 8px 13px;
    color: var(--neutral-700);
    background: #ffffff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.filter-bar button:hover,
.filter-bar button.is-active {
    color: #ffffff;
    background: var(--primary-600);
    border-color: var(--primary-600);
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-100);
}

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

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

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

.poster-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--neutral-600);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-line span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-line span + span::before,
.detail-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--neutral-500);
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.category-title:hover,
.category-links a:hover {
    color: var(--primary-600);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--neutral-600);
    font-size: 14px;
}

.tag-row {
    margin-top: auto;
}

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

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

.category-card,
.category-overview-block {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.category-title {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--neutral-900);
    font-size: 22px;
    font-weight: 900;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-links a {
    padding: 6px 10px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
}

.rank-cover {
    position: relative;
    height: 144px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--primary-50);
}

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 32px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: var(--accent-600);
    border-radius: 999px;
    font-weight: 900;
}

.rank-info {
    min-width: 0;
    align-self: center;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--neutral-600);
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 28px;
}

.compact-hero {
    position: relative;
}

.compact-hero::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 34px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 100, 148, 0.15), transparent 70%);
    pointer-events: none;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 18px;
}

.category-overview {
    display: grid;
    gap: 28px;
    padding-top: 20px;
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    font-size: 28px;
}

.category-overview-head p {
    margin: 8px 0 0;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--neutral-600);
    font-size: 14px;
}

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

.detail-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 54px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: var(--primary-50);
    box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 18px 0;
    font-size: 20px;
}

.detail-tags {
    margin: 18px 0 24px;
}

.player-section {
    padding-top: 0;
}

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

.player-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    align-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

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

.player-icon {
    width: 72px;
    height: 72px;
    display: inline-grid;
    place-items: center;
    padding-left: 4px;
    color: #ffffff;
    background: var(--primary-600);
    border-radius: 999px;
    box-shadow: var(--shadow-strong);
    font-size: 30px;
}

.player-overlay strong {
    font-size: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 0;
}

.detail-content article {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-content h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.detail-content p {
    margin: 0;
    font-size: 17px;
}

.empty-state {
    margin: 24px 0 0;
    padding: 22px;
    color: var(--neutral-600);
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    text-align: center;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    max-width: 620px;
    margin: 8px 0 0;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

.footer-inner a:hover {
    color: #ffffff;
}

.is-filter-hidden {
    display: none !important;
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image {
        order: 0;
        max-height: 330px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

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

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

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

    .brand {
        min-width: 0;
    }

    .brand-copy strong {
        font-size: 19px;
    }

    .brand-copy em {
        display: none;
    }

    .hero-slider,
    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        padding: 40px 18px 76px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .section-wrap,
    .page-hero,
    .detail-hero,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading,
    .category-overview-head,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .ranking-list,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 360px;
        width: 100%;
    }

    .wide-search {
        grid-template-columns: 1fr;
    }

    .wide-search button {
        min-height: 46px;
    }

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

    .rank-cover {
        height: 126px;
    }
}

@media (max-width: 520px) {
    .hero-slider,
    .hero-track {
        min-height: 660px;
    }

    .hero-image {
        aspect-ratio: 4 / 3;
    }

    .search-panel {
        margin-top: -20px;
        border-radius: 22px;
    }

    .section-wrap {
        padding-top: 42px;
        padding-bottom: 42px;
    }

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