:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-900: #0f172a;
    --accent-400: #f59e0b;
    --accent-600: #d97706;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.12), 0 8px 10px -6px rgb(15 23 42 / 0.12);
    --shadow-2xl: 0 25px 50px -12px rgb(15 23 42 / 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

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

.nav-wrap {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-400));
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    background: var(--secondary-100);
    border-radius: 12px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--secondary-900);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg,
.hero-bg img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 20% 70%, rgba(2, 132, 199, 0.35), transparent 34%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 0 92px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-400);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-kicker.light {
    color: #fbbf24;
}

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

.hero-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: var(--secondary-700);
    background: var(--secondary-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.tag-row.big span {
    min-height: 32px;
    padding: 5px 12px;
}

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

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

.primary-button {
    color: var(--white);
    background: var(--primary-600);
    box-shadow: var(--shadow-lg, var(--shadow-md));
}

.primary-button:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

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

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

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

.section {
    padding: 72px 0;
}

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

.section-head h2,
.dark-section h2,
.side-column h2,
.content-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.text-link:hover {
    color: var(--primary-600);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--secondary-200);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #bae6fd;
    box-shadow: var(--shadow-xl);
}

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

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

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-400), var(--primary-600));
    border-radius: 999px;
    font-weight: 900;
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 18px;
}

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

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

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

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

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.horizontal .poster-link {
    aspect-ratio: auto;
    min-height: 150px;
}

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

.soft-panel {
    background: linear-gradient(135deg, var(--primary-50), #fef3c7);
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

.category-tile,
.category-card-large {
    display: block;
    padding: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    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 span,
.category-card-large h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small,
.category-card-large p {
    color: var(--secondary-600);
}

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

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-cover-stack img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.dark-section {
    color: var(--white);
    background: var(--secondary-900);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 38px;
    align-items: start;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.soft-panel .rank-row,
.rank-list.wide .rank-row {
    background: var(--white);
    border-color: var(--secondary-200);
}

.rank-number {
    color: var(--accent-400);
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 56px;
    height: 46px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--secondary-500);
    font-size: 13px;
    white-space: nowrap;
}

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

.movie-list.compact .movie-card.horizontal {
    grid-template-columns: 120px minmax(0, 1fr);
}

.movie-list.compact .poster-link {
    min-height: 120px;
}

.mt {
    margin-top: 24px;
}

.page-hero {
    position: relative;
    color: var(--white);
    background: radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.68), transparent 26%), linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero.compact {
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--secondary-200);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--secondary-900);
    background: var(--secondary-50);
    border: 1px solid var(--secondary-300);
    border-radius: 12px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #000;
}

.detail-bg,
.detail-bg img,
.detail-bg div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg img {
    object-fit: cover;
    filter: blur(8px);
    transform: scale(1.08);
}

.detail-bg div {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68)), linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    min-height: 560px;
    padding: 72px 0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 20px;
    color: #e2e8f0;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

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

.main-column,
.side-column {
    min-width: 0;
}

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22));
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-600);
    border-radius: 999px;
    box-shadow: var(--shadow-xl);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--white);
}

.content-card,
.side-column {
    margin-top: 24px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--secondary-200);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.content-card p {
    margin: 16px 0 0;
    color: var(--secondary-700);
    font-size: 17px;
    line-height: 1.9;
}

.side-column {
    position: sticky;
    top: 94px;
    margin-top: 0;
}

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

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

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

    .side-column {
        position: static;
    }

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

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

    .menu-button {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        right: 12px;
        left: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--secondary-200);
        border-radius: 18px;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.open {
        display: flex;
    }

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

    .hero-carousel {
        min-height: 76vh;
    }

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

    .section {
        padding: 48px 0;
    }

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

    .movie-grid.four-cols,
    .category-grid,
    .category-overview-grid,
    .rank-list.wide {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .movie-card.horizontal .poster-link {
        min-height: 132px;
    }

    .rank-row {
        grid-template-columns: 34px 50px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

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

    .detail-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 48px 0;
    }

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

    .detail-one-line {
        font-size: 17px;
    }
}

.site-footer {
    padding: 42px 0;
    color: var(--secondary-300);
    background: var(--secondary-900);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 680px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

@media (max-width: 760px) {
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}
