
:root {
    --site-bg: #f8f9fa;
    --panel-bg: #ffffff;
    --ink: #212529;
    --ink-soft: #495057;
    --muted: #868e96;
    --line: #dee2e6;
    --mineral: #0284c7;
    --mineral-dark: #0369a1;
    --mineral-soft: #e0f2fe;
    --mist-900: #212529;
    --mist-800: #343a40;
    --mist-700: #495057;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
}

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

.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-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.98), rgba(52, 58, 64, 0.96));
    color: #f8f9fa;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mineral);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 10px;
    color: #f1f3f5;
    font-size: 14px;
    font-weight: 600;
    transition: 0.22s ease;
}

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

.nav-search,
.mobile-search,
.hero-search-form,
.search-panel,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search-form input,
.search-panel input,
.filter-panel input,
.search-panel select,
.filter-panel select {
    border: 1px solid rgba(222, 226, 230, 0.9);
    border-radius: 12px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    outline: none;
    min-width: 0;
}

.nav-search input {
    width: 220px;
}

.nav-search button,
.mobile-search button,
.hero-search-form button,
.search-panel button,
.filter-panel button,
.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.22s ease;
}

.nav-search button,
.hero-search-form button,
.search-panel button,
.filter-panel button,
.primary-btn {
    background: var(--mineral);
    color: #fff;
}

.nav-search button:hover,
.hero-search-form button:hover,
.search-panel button:hover,
.filter-panel button:hover,
.primary-btn:hover {
    background: var(--mineral-dark);
    transform: translateY(-1px);
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.primary-btn.full {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-nav .nav-link {
    display: block;
    margin-top: 8px;
}

.mobile-search {
    margin-top: 12px;
}

.mobile-search input {
    flex: 1;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #000;
}

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    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: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-copy {
    max-width: 680px;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(2, 132, 199, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-main h1 {
    margin: 18px 0 16px;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-copy p {
    max-width: 620px;
    color: #f1f3f5;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
}

.tag-list span {
    background: var(--mineral-soft);
    color: var(--mineral-dark);
}

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

.hero-arrow,
.scroll-btn {
    position: absolute;
    z-index: 4;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 34px;
    transform: translateY(-50%);
}

.hero-arrow:hover,
.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.72);
}

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

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

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

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

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

.quick-search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 10;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.quick-search-inner h2,
.section-heading h2,
.category-overview-card h3,
.detail-copy h2,
.detail-highlight h2,
.side-card h2 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-weight: 800;
    color: var(--ink);
}

.quick-search-inner p,
.section-heading p,
.category-overview-card p,
.movie-card-body p,
.detail-copy p,
.detail-highlight p,
.side-card p,
.page-hero p,
.footer-grid p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.hero-search-form input {
    flex: 1;
}

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

.muted-section {
    background: #f1f3f5;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
}

.section-more {
    color: var(--mineral-dark);
    background: var(--mineral-soft);
}

.section-more:hover {
    color: #fff;
    background: var(--mineral);
}

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--panel-bg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(135deg, #343a40, #212529);
}

.movie-card.is-compact .movie-poster {
    height: 178px;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-shade {
    opacity: 1;
}

.play-circle {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.9);
    color: #fff;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45);
}

.poster-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 3;
    border-radius: 8px;
    padding: 5px 8px;
    background: rgba(2, 132, 199, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.poster-badge.left {
    left: 10px;
}

.poster-badge.right {
    right: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    top: auto;
    background: rgba(0, 0, 0, 0.72);
}

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

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-link:hover h3 {
    color: var(--mineral);
}

.movie-card-body p {
    min-height: 46px;
    margin: 0 0 12px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta-line span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scroll-wrap {
    position: relative;
}

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 255px);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
}

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

.scroll-btn {
    top: 40%;
    width: 42px;
    height: 42px;
    font-size: 28px;
}

.scroll-btn.left {
    left: -18px;
}

.scroll-btn.right {
    right: -18px;
}

.feature-section {
    background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
}

.feature-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.feature-main,
.feature-side-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feature-main {
    display: block;
    height: 430px;
}

.feature-main img,
.feature-side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-main-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 32px;
    color: #fff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

.feature-main-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(2, 132, 199, 0.86);
    font-size: 12px;
    font-weight: 700;
}

.feature-main-copy h3 {
    margin: 0 0 10px;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 34px;
}

.feature-main-copy p {
    margin: 0;
    color: #f1f3f5;
    line-height: 1.7;
}

.feature-side {
    display: grid;
    gap: 18px;
}

.feature-side-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 130px;
}

.feature-side-card div {
    padding: 16px;
}

.feature-side-card span {
    color: var(--mineral);
    font-size: 12px;
    font-weight: 700;
}

.feature-side-card h3 {
    margin: 6px 0;
    color: var(--ink);
    font-size: 17px;
}

.feature-side-card p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

.ranking-preview {
    background: linear-gradient(180deg, #343a40, #212529);
}

.ranking-preview .section-heading h2,
.ranking-preview .section-heading p {
    color: #fff;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 48px 66px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: 0.22s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.ranking-number {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    color: #7dd3fc;
    font-size: 22px;
    font-weight: 800;
}

.ranking-item img {
    width: 66px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

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

.ranking-meta {
    color: #ced4da;
    font-size: 12px;
}

.category-section {
    background: #fff;
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-list.standalone {
    grid-template-columns: 1fr;
}

.category-overview-card {
    padding: 24px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

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

.category-overview-head h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.category-overview-head a {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--mineral-soft);
    color: var(--mineral-dark);
    font-weight: 800;
}

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

.page-hero {
    background: linear-gradient(135deg, #212529, #343a40 52%, #0369a1);
    color: #fff;
}

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

.page-hero p {
    max-width: 820px;
    color: #e9ecef;
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: #e9ecef;
    font-size: 14px;
}

.breadcrumb a {
    color: #7dd3fc;
}

.filter-panel,
.search-panel {
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.filter-panel input,
.search-panel input {
    flex: 1 1 280px;
}

.filter-count,
.search-count {
    color: var(--ink-soft);
    font-weight: 700;
}

.search-count {
    margin: 0 0 22px;
}

.ranking-page-layout {
    display: grid;
    gap: 36px;
}

.player-section {
    padding: 28px 0 0;
    background: #000;
}

.detail-breadcrumb {
    margin: 0 0 18px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #000;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
    color: #fff;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mineral);
    box-shadow: 0 14px 36px rgba(2, 132, 199, 0.45);
}

.player-frame.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 14px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
}

.detail-section {
    background: #f8f9fa;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 360px);
    gap: 28px;
}

.detail-main,
.side-card {
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.detail-main {
    padding: 30px;
}

.detail-main h1 {
    color: var(--ink);
    font-size: clamp(28px, 4vw, 44px);
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: #f1f3f5;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
}

.detail-highlight,
.detail-copy {
    margin-top: 26px;
}

.detail-highlight {
    padding: 18px;
    border-radius: 16px;
    background: #f0f9ff;
}

.detail-copy h2,
.detail-highlight h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-copy p,
.detail-highlight p {
    margin: 0;
    font-size: 16px;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
    background: #212529;
}

.side-card h2 {
    margin: 16px 0 8px;
    font-size: 22px;
}

.side-card p {
    margin-bottom: 16px;
}

.article-page h1 {
    margin: 0 0 18px;
}

.article-page p {
    margin: 0 0 16px;
}

.site-footer {
    background: linear-gradient(180deg, #343a40, #212529);
    color: #f1f3f5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0 28px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-grid p {
    margin-top: 14px;
    color: #ced4da;
}

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

.footer-links a {
    color: #ced4da;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #adb5bd;
    font-size: 13px;
    text-align: center;
}

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

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

    .nav-search {
        display: none;
    }
}

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

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .hero-carousel {
        height: 560px;
    }

    .quick-search-inner,
    .feature-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .mini-grid,
    .ranking-list,
    .ranking-list.large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-main {
        height: 360px;
    }

    .ranking-item {
        grid-template-columns: 42px 58px 1fr;
    }

    .ranking-meta {
        display: none;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

    .nav-shell {
        height: 64px;
    }

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

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero-carousel {
        height: 540px;
    }

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

    .hero-arrow {
        display: none;
    }

    .hero-tags span:nth-child(n+4) {
        display: none;
    }

    .quick-search-panel {
        margin-top: 0;
    }

    .quick-search-inner {
        border-radius: 0;
    }

    .hero-search-form,
    .search-panel,
    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card.is-compact .movie-poster {
        height: 220px;
    }

    .feature-side-card {
        grid-template-columns: 110px 1fr;
    }

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

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

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