:root {
    --rose: #f43f5e;
    --pink: #db2777;
    --purple: #7c3aed;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff1f2;
    --paper: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #fff1f2 0%, #ffffff 34%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    object-fit: cover;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
    font-size: 15px;
}

.brand-text {
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #374151;
    font-weight: 700;
    white-space: nowrap;
}

.desktop-nav a,
.footer-links a,
.mobile-panel a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.mobile-panel a:hover {
    color: var(--rose);
}

.header-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.14);
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-panel button,
.primary-button,
.white-button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 34px rgba(244, 63, 94, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.primary-button,
.white-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.primary-button:hover,
.white-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.filter-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(244, 63, 94, 0.32);
}

.ghost-button {
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
    transform: translateY(-2px);
    color: var(--rose);
    background: #ffffff;
}

.ghost-button.light {
    color: var(--rose);
    border-color: rgba(244, 63, 94, 0.4);
}

.ghost-button.light:hover {
    color: #ffffff;
    background: var(--rose);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--rose);
    background: #fff1f2;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    font-weight: 700;
}

.mobile-search input {
    flex: 1;
    padding: 11px 15px;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #0f1020;
}

.hero-track,
.hero-slide,
.hero-visual {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-visual {
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.blue-band span,
.detail-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: #fff1f2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    max-width: 720px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.7;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

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

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

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

.search-hero {
    position: relative;
    z-index: 5;
    margin-top: -74px;
}

.search-card {
    padding: clamp(24px, 4vw, 42px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-card h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.search-card p {
    max-width: 760px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.big-search input {
    flex: 1;
    min-height: 54px;
    padding: 0 22px;
    font-size: 16px;
}

.big-search button {
    min-height: 54px;
    padding: 0 28px;
}

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

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

.section-heading span {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--rose);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.28);
    box-shadow: 0 26px 68px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #312e81);
}

.poster-link img {
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

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

.score-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    min-width: 42px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.34);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h2 a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 66px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    color: #be123c;
    background: #fff1f2;
}

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

.category-chip,
.category-overview-card,
.article-card,
.player-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.category-chip {
    display: block;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.category-chip strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 950;
}

.category-chip span,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.blue-band {
    margin: 34px 0;
    padding: 64px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.band-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: start;
}

.blue-band h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.blue-band p {
    max-width: 520px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.white-button {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-row img {
    width: 64px;
    height: 84px;
    border-radius: 12px;
}

.rank-row-main {
    display: grid;
    gap: 6px;
}

.rank-row-main strong {
    font-weight: 950;
    line-height: 1.35;
}

.rank-row-main em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    color: var(--rose);
    font-size: 20px;
    font-weight: 950;
}

.page-main {
    padding-bottom: 30px;
}

.page-hero {
    padding: 72px 0 34px;
}

.page-hero span {
    color: var(--rose);
    background: #fff1f2;
    border-color: #fecdd3;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(38px, 7vw, 70px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel input {
    flex: 1 1 260px;
    min-height: 44px;
    padding: 0 18px;
}

.filter-panel button {
    min-height: 44px;
    padding: 0 16px;
    color: var(--rose);
    background: #fff1f2;
    box-shadow: none;
}

.filter-panel button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.category-overview-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-title-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.category-title-link span {
    font-size: 22px;
    font-weight: 950;
}

.category-title-link strong {
    color: var(--rose);
    font-size: 14px;
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.mini-poster-row a {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.mini-poster-row img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
}

.ranking-top {
    padding: 12px 0 28px;
}

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

.detail-main {
    background: #ffffff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #10111f;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 40px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-info-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    width: 260px;
    aspect-ratio: 3 / 4;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
    max-width: 920px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-line {
    max-width: 860px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 22px;
}

.player-section {
    margin-top: -28px;
}

.player-card {
    position: relative;
    z-index: 4;
    overflow: hidden;
    padding: 16px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 18px;
}

.video-frame video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-frame video {
    object-fit: contain;
    background: #000000;
}

.player-cover {
    display: grid;
    place-items: center;
    border: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover span {
    display: grid;
    width: clamp(72px, 10vw, 108px);
    height: clamp(72px, 10vw, 108px);
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(244, 63, 94, 0.42);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px 4px;
}

.player-title-row h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 950;
}

.player-title-row span {
    color: var(--rose);
    font-size: 28px;
    font-weight: 950;
}

.detail-content {
    padding: 42px 0 14px;
}

.article-card {
    padding: clamp(24px, 4vw, 42px);
}

.article-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 950;
}

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

.article-card p {
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.info-table div {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.info-table strong {
    color: var(--muted);
    font-size: 13px;
}

.info-table span {
    font-weight: 900;
}

.related-grid .movie-card-compact p {
    min-height: 44px;
}

.site-footer {
    margin-top: 58px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 24px;
}

.site-footer p {
    max-width: 560px;
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

    .header-search input {
        width: 180px;
    }

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

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

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .movie-grid,
    .category-chip-grid,
    .category-overview-grid,
    .band-layout,
    .rank-list-large,
    .footer-grid,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }

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

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 22px, 1280px);
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

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

    .hero-actions,
    .detail-actions,
    .page-hero-actions,
    .big-search {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card p {
        display: none;
    }

    .mini-poster-row,
    .info-table {
        grid-template-columns: 1fr 1fr;
    }

    .rank-row {
        grid-template-columns: 54px 1fr auto;
    }

    .rank-row img {
        width: 54px;
        height: 74px;
    }
}
