:root {
    --mist-900: #212529;
    --mist-800: #343a40;
    --mist-700: #495057;
    --mist-600: #868e96;
    --mist-300: #dee2e6;
    --mist-100: #f1f3f5;
    --mist-50: #f8f9fa;
    --mineral-700: #0369a1;
    --mineral-600: #0284c7;
    --mineral-500: #0ea5e9;
    --mineral-300: #7dd3fc;
    --moss-600: #16a34a;
    --earth-600: #8a6f4d;
    --site-radius: 18px;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--mist-50);
    color: var(--mist-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 80;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.18);
    color: var(--mineral-300);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
}

.logo-text {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.dropdown-button {
    border: 0;
    border-radius: 10px;
    padding: 9px 13px;
    color: var(--mist-100);
    background: transparent;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.dropdown-button:hover,
.nav-link.is-active {
    background: var(--mineral-600);
    color: #fff;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 230px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--mist-800);
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f0f9ff;
    color: var(--mineral-700);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 16px 16px;
    background: var(--mist-700);
}

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

.mobile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mist-100);
    font-size: 14px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--mist-900);
}

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

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

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

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

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.06));
}

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

.hero-content {
    max-width: 720px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.82);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 0 0 18px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(34px, 7vw, 62px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-text {
    max-width: 660px;
    margin: 0 0 26px;
    color: var(--mist-100);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
}

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

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background: var(--mineral-600);
    color: #fff;
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.28);
}

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

.button-secondary {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.button-light {
    background: #fff;
    color: var(--mist-900);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.button-light:hover {
    color: var(--mineral-700);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.76);
}

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

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

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

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

.hero-dot.is-active {
    width: 30px;
    background: #fff;
}

.section {
    padding: 54px 0;
}

.section.compact {
    padding: 34px 0;
}

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

.section-eyebrow {
    margin: 0 0 8px;
    color: var(--mineral-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--mist-900);
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
}

.section-desc {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--mist-700);
    line-height: 1.8;
}

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

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1220px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

.movie-card[hidden] {
    display: none;
}

.card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--site-radius);
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--site-shadow);
}

.card-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mist-900);
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.88);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    background: rgba(0, 0, 0, 0.72);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--mist-600);
    font-size: 12px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--mist-100);
}

.card-title {
    margin: 0;
    color: var(--mist-900);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.card-summary {
    margin: 0;
    color: var(--mist-700);
    font-size: 14px;
    line-height: 1.65;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f0f9ff;
    color: var(--mineral-700);
    font-size: 12px;
    font-weight: 750;
}

.horizontal-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 320px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.horizontal-row .movie-card {
    scroll-snap-align: start;
}

.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe6ef;
    border-radius: 14px;
    padding: 0 16px;
    background: #fff;
    color: var(--mist-900);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: var(--mineral-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.result-count {
    color: var(--mist-700);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--mist-100);
    color: var(--mist-800);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--mineral-600);
    color: #fff;
}

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

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1140px) {
    .category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.category-card {
    display: block;
    min-height: 178px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #f0fdf4);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 850;
    color: var(--mist-900);
}

.category-card p {
    margin: 0;
    color: var(--mist-700);
    font-size: 14px;
    line-height: 1.75;
}

.page-hero {
    padding: 64px 0 38px;
    background: linear-gradient(135deg, var(--mist-900), var(--mist-700));
    color: #fff;
}

.page-hero h1 {
    margin: 0;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 850;
}

.page-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--mist-100);
    line-height: 1.85;
}

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

.breadcrumb a {
    color: var(--mineral-700);
    font-weight: 800;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    background: var(--mist-900);
    box-shadow: var(--site-shadow);
}

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

.detail-panel {
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-title {
    margin: 0 0 14px;
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 850;
    color: var(--mist-900);
    line-height: 1.15;
}

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

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--mist-100);
    color: var(--mist-700);
    font-size: 13px;
    font-weight: 800;
}

.detail-lead {
    margin: 0 0 18px;
    color: var(--mist-800);
    font-size: 17px;
    line-height: 1.9;
    font-weight: 650;
}

.prose-block {
    margin-top: 22px;
}

.prose-block h2 {
    margin: 0 0 10px;
    color: var(--mist-900);
    font-size: 21px;
    font-weight: 850;
}

.prose-block p {
    margin: 0;
    color: var(--mist-700);
    line-height: 1.95;
}

.player-section {
    background: #000;
}

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

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

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

.play-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.play-button {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--mineral-600);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.36);
}

.player-state {
    min-height: 22px;
    color: var(--mist-100);
    font-size: 14px;
}

.text-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 0;
}

.text-card {
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.text-card h2 {
    margin: 26px 0 12px;
    color: var(--mist-900);
    font-size: 23px;
    font-weight: 850;
}

.text-card h2:first-child {
    margin-top: 0;
}

.text-card p {
    margin: 0 0 14px;
    color: var(--mist-700);
    line-height: 1.9;
}

.site-footer {
    margin-top: auto;
    padding: 42px 0 28px;
    color: var(--mist-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-title {
    margin: 0 0 14px;
    font-weight: 850;
}

.footer-text,
.footer-links a,
.footer-bottom {
    color: var(--mist-300);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(222, 226, 230, 0.18);
    text-align: center;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--mineral-600);
    color: #fff;
    box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
    cursor: pointer;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

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

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

    .hero-arrow {
        display: none;
    }

    .section-header,
    .search-line,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        display: block;
    }

    .detail-cover {
        max-width: 360px;
        margin: 0 auto 24px;
    }
}

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

    .hero-slider {
        height: 520px;
    }

    .hero-content {
        padding-right: 8px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-primary,
    .button-secondary,
    .button-light {
        width: 100%;
    }

    .page-hero {
        padding: 44px 0 30px;
    }

    .detail-panel,
    .text-card {
        padding: 22px;
    }
}
