:root {
    color-scheme: light;
    --bg: #f9fafb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f3f4f6;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #0891b2;
    --emerald: #059669;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font, inherit);
    line-height: 1.6;
}

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

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

button,
input {
    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);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

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

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

.nav-link,
.mobile-link {
    color: #374151;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.18), transparent 36%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-content h1 {
    max-width: 720px;
    margin: 14px 0 18px;
    font-size: clamp(34px, 7vw, 62px);
    line-height: 1.05;
    color: #ffffff;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 13px;
    font-weight: 760;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

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

.hero-tags {
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 650;
}

.detail-tags span,
.card-tags span {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1d4ed8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

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

.primary-button {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.outline-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.primary-button:hover {
    background: var(--blue-dark);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

.outline-button {
    border: 1px solid var(--line);
    color: #1f2937;
    background: #ffffff;
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: #ffffff;
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(8, 145, 178, 0.35), transparent 30%),
        linear-gradient(135deg, #1d4ed8, #0f172a);
}

.small-hero {
    padding: 58px 0;
}

.ranking-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 30%),
        linear-gradient(135deg, #111827, #1d4ed8 52%, #0891b2);
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.breadcrumb.light {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.light a:hover {
    color: #ffffff;
}

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

.section-white {
    background: #ffffff;
}

.section-soft {
    background: #f8fafc;
}

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

.section-head h2,
.panel-title h2 {
    margin: 0;
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more,
.panel-title a {
    color: var(--blue);
    font-weight: 750;
    white-space: nowrap;
}

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

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

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    flex: 0 0 288px;
    scroll-snap-align: start;
}

.movie-card {
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    min-width: 0;
}

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

.card-cover {
    position: relative;
    height: 218px;
    margin: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.movie-card-large .card-cover {
    height: 300px;
}

.movie-card-small .card-cover {
    height: 170px;
}

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

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

.card-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 58%);
    transition: opacity 0.24s ease;
}

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

.card-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.7);
    border-radius: 999px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 16px;
}

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

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

.card-body p {
    min-height: 44px;
    margin: 9px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    gap: 6px;
    margin-bottom: 12px;
}

.card-tags span {
    padding: 3px 8px;
    font-size: 11px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 118px;
}

.movie-card-wide .card-cover {
    height: 100%;
    min-height: 118px;
}

.movie-card-wide .card-body p {
    min-height: 0;
}

.two-column-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.ranking-panel,
.side-card,
.detail-card,
.category-block,
.podium-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.ranking-panel {
    position: sticky;
    top: 88px;
    padding: 22px;
}

.panel-title,
.category-block-head,
.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.panel-title {
    align-items: center;
    margin-bottom: 16px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 40px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: #eff6ff;
    transform: translateX(3px);
}

.rank-number {
    color: var(--blue);
    font-weight: 850;
}

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

.rank-title {
    min-width: 0;
    font-weight: 760;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-meta {
    grid-column: 3;
    margin-top: -6px;
    color: var(--muted);
    font-size: 12px;
}

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

.category-block {
    padding: 24px;
}

.category-block-head {
    margin-bottom: 20px;
}

.category-block h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.category-block p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: grid;
    gap: 8px;
    max-width: 560px;
    margin-bottom: 26px;
}

.wide-filter {
    max-width: 760px;
}

.filter-bar label {
    color: #1f2937;
    font-weight: 780;
}

.filter-bar input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar input:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    display: none;
    margin: 34px 0 0;
    padding: 26px;
    text-align: center;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--line);
}

.empty-state.is-visible {
    display: block;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 34px;
}

.podium-card {
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.podium-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.podium-card div {
    padding: 18px;
}

.podium-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.podium-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podium-rank {
    position: absolute;
    margin: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;
    font-size: 12px;
    font-weight: 780;
}

.player-section {
    background: #020617;
    padding: 20px 0 34px;
}

.player-container {
    display: grid;
    gap: 14px;
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.14));
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    pointer-events: none;
}

.big-play {
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.94);
    font-size: 38px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.player-overlay:hover .big-play {
    transform: scale(1.07);
}

.detail-section {
    padding-top: 38px;
}

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

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.detail-one-line {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 14px;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
}

.prose-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.prose-block h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.prose-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-line;
}

.detail-side {
    position: sticky;
    top: 88px;
}

.side-card {
    padding: 18px;
}

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

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

.side-card p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.76);
    padding: 42px 0;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

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

.footer-inner p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.62);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: flex-end;
}

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

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

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

    .two-column-showcase,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        height: 540px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-head,
    .category-block-head,
    .detail-title-row {
        display: grid;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

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

    .hero {
        height: 520px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

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

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

    .movie-card-wide {
        grid-template-columns: 132px 1fr;
    }

    .movie-card-wide .card-cover {
        min-height: 148px;
    }

    .card-cover {
        height: 240px;
    }

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

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

    .player-shell {
        border-radius: 14px;
    }
}
