* {
    box-sizing: border-box;
}

:root {
    --primary-900: #333d4f;
    --primary-800: #3d4b61;
    --primary-700: #42536f;
    --primary-600: #506688;
    --primary-100: #ebeef3;
    --accent-600: #ca8a04;
    --accent-500: #eab308;
    --accent-400: #facc15;
    --neutral-950: #0f172a;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #737373;
    --neutral-400: #a3a3a3;
    --neutral-300: #d4d4d4;
    --neutral-200: #e5e5e5;
    --neutral-100: #f5f5f5;
    --neutral-50: #fafafa;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.2);
}

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

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--neutral-200);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(100% - 32px, 1280px);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--primary-900);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-900));
    box-shadow: 0 10px 25px rgba(80, 102, 136, 0.25);
}

.logo-text {
    font-size: 22px;
    letter-spacing: -0.02em;
}

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

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

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

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

.header-search input,
.mobile-search input,
.filter-search {
    width: 260px;
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--neutral-800);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(80, 102, 136, 0.12);
}

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

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

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 700;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

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

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--neutral-700);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--neutral-200);
    padding: 16px;
    background: var(--white);
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 14px;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav {
    display: grid;
    gap: 10px;
}

.mobile-nav-link {
    color: var(--neutral-700);
    font-weight: 700;
    padding: 8px 0;
}

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

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

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

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

.hero-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 14px;
    color: var(--white);
    background: var(--accent-500);
    font-size: 14px;
    font-weight: 800;
}

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

.hero-copy p {
    max-width: 640px;
    margin: 0 0 24px;
    color: var(--neutral-200);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span {
    color: var(--neutral-200);
    border-radius: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

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

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

.section-head h2 {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -0.03em;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--neutral-900);
}

.movie-card.small .card-cover {
    aspect-ratio: 4 / 3;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.card-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 8px;
    padding: 4px 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.card-hover {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    opacity: 0;
    color: var(--white);
    font-weight: 800;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-hover {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.card-meta span,
.rank-meta span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-size: 12px;
    font-weight: 700;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button {
    border: 0;
    border-radius: 12px;
    padding: 9px 14px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.index-filter .chip-row {
    margin-bottom: 24px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 36px;
    align-items: start;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

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

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: var(--neutral-900);
}

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

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 900;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--neutral-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    color: var(--white);
    background: var(--primary-900);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img,
.category-card-large img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.3s ease;
}

.category-tile:hover img,
.category-card-large:hover img {
    transform: scale(1.08);
}

.category-tile span,
.category-tile p,
.category-card-large div {
    position: relative;
    z-index: 2;
}

.category-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

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

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

.category-tile p {
    margin: 8px 0 0;
    color: var(--neutral-200);
}

.category-card-large {
    min-height: 220px;
    display: flex;
    align-items: end;
    padding: 24px;
}

.category-card-large div {
    position: relative;
    z-index: 3;
}

.category-card-large h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-card-large p,
.category-card-large span {
    color: var(--neutral-200);
}

.category-card-large span {
    display: block;
    margin-top: 12px;
    font-size: 14px;
}

.page-hero {
    padding: 76px 0;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.25), transparent 26%), linear-gradient(135deg, var(--primary-900), var(--primary-600));
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 6vw, 62px);
    letter-spacing: -0.04em;
}

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

.filter-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-search {
    width: 100%;
}

.filter-groups {
    display: grid;
    gap: 12px;
}

.detail-shell {
    padding: 34px 0 0;
}

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

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

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

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

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

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: var(--white);
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

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

.play-orb {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(80, 102, 136, 0.88);
    font-size: 38px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-poster:hover .play-orb {
    transform: scale(1.08);
    background: var(--accent-500);
}

.player-message {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    text-align: center;
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--neutral-900);
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 18px;
    color: var(--neutral-700);
    font-size: 16px;
    line-height: 1.8;
}

.detail-one-line {
    color: var(--neutral-600) !important;
    font-weight: 700;
}

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

.poster-side {
    display: grid;
    gap: 16px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.poster-side h2 {
    margin-bottom: 8px;
}

.poster-side p {
    margin: 0;
    color: var(--neutral-600);
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    font-weight: 700;
}

.side-links a:last-child {
    border-bottom: 0;
}

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

.side-links em {
    flex: 0 0 auto;
    color: var(--neutral-400);
    font-style: normal;
    font-size: 13px;
}

.site-footer {
    margin-top: 64px;
    color: var(--white);
    background: var(--primary-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 560px;
    color: var(--neutral-300);
}

.footer-logo {
    color: var(--white);
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: var(--neutral-300);
    transition: color 0.2s ease;
}

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

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

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

@media (max-width: 1100px) {
    .movie-grid,
    .catalog-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-carousel {
        height: 540px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .hero-layer {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.32));
    }

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

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

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

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

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

    .hero-carousel {
        height: 520px;
    }

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

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

    .hero-control {
        display: none;
    }

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

    .movie-grid,
    .catalog-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-info p,
    .rank-meta {
        display: none;
    }

    .detail-card,
    .side-card {
        padding: 18px;
    }

    .play-orb {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}
