:root {
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --pink: #db2777;
    --purple: #7c3aed;
    --blue: #2563eb;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.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.9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    color: #111827;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.logo-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
    background: #fee2e2;
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button,
.quick-search button,
.search-page-form button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 800;
}

.header-search button:hover,
.quick-search button:hover,
.search-page-form button:hover {
    background: var(--brand-dark);
}

.nav-toggle {
    display: none;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--brand);
    padding: 8px 11px;
    cursor: pointer;
}

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    margin-bottom: 48px;
    border-radius: 20px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    display: none;
    position: relative;
    min-height: 500px;
}

.hero-slide.is-active {
    display: block;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 760px;
    min-height: 500px;
    padding: 54px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.92);
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-tags,
.detail-topline,
.movie-meta,
.tag-cloud,
.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-topline span,
.tag-cloud span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.category-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 14px 24px rgba(220, 38, 38, 0.32);
}

.primary-button:hover,
.category-enter:hover {
    transform: translateY(-2px);
    background: var(--brand-dark);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

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

.quick-panel,
.content-section,
.detail-card,
.side-card,
.search-panel,
.category-tile,
.white-panel,
.filter-bar,
.next-links {
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.quick-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 480px);
    gap: 24px;
    align-items: center;
    margin-bottom: 48px;
    padding: 30px;
}

.quick-panel h2,
.section-heading h2,
.category-tile h2,
.side-card h2,
.story-block h2 {
    margin: 0;
    font-weight: 950;
    letter-spacing: -0.02em;
}

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

.quick-search,
.search-page-form {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.quick-search input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    background: transparent;
}

.quick-categories {
    grid-column: 1 / -1;
}

.quick-categories a {
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--brand);
    background: #fee2e2;
    font-weight: 800;
}

.content-section,
.gradient-section,
.split-section,
.category-layout,
.ranking-page-grid {
    margin-bottom: 48px;
}

.content-section {
    padding: 28px;
}

.gradient-section {
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.blue-purple {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.red-pink {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--pink));
}

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

.section-heading h2 {
    font-size: 28px;
}

.section-heading a {
    color: var(--brand);
    font-weight: 900;
}

.light-heading a,
.light-heading .section-label {
    color: #ffffff;
}

.section-label {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gradient-section .movie-card,
.editor-panel .movie-card {
    background: rgba(255, 255, 255, 0.16);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

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

.poster-badge,
.poster-time {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    top: 10px;
    left: 10px;
    background: var(--brand);
}

.poster-time {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.76);
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.36);
    font-size: 42px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.45;
}

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

.gradient-section .movie-card-body p,
.editor-panel .movie-card-body p,
.gradient-section .movie-meta,
.editor-panel .movie-meta {
    color: rgba(255, 255, 255, 0.78);
}

.movie-meta {
    color: var(--muted);
    font-size: 12px;
}

.movie-card-small .movie-card-body h3 {
    min-height: 42px;
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 28px;
}

.ranking-panel,
.editor-panel {
    border-radius: 20px;
    padding: 28px;
}

.ranking-panel {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.editor-panel {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--brand));
    box-shadow: var(--shadow);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 74px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 10px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.ranking-index {
    color: var(--brand);
    font-size: 22px;
    font-weight: 950;
}

.ranking-row img {
    width: 74px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-info strong,
.ranking-info em {
    display: block;
}

.ranking-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.ranking-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.24);
}

.compact-card img {
    width: 76px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
}

.compact-card span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 800;
}

.page-hero {
    margin-bottom: 32px;
    border-radius: 20px;
    padding: 42px;
    box-shadow: var(--shadow);
}

.page-hero span {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.category-tile {
    padding: 24px;
}

.category-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

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

.category-enter {
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--brand);
}

.category-preview .compact-card {
    color: var(--ink);
    background: #f9fafb;
}

.filter-bar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-bar input {
    width: min(520px, 100%);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 12px 16px;
}

.filter-bar a {
    color: var(--brand);
    font-weight: 900;
}

.search-panel {
    margin-bottom: 32px;
    padding: 24px;
}

.search-page-form {
    max-width: 760px;
}

.search-results {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: #ffffff;
}

.search-result-item img {
    width: 92px;
    height: 128px;
    border-radius: 12px;
    object-fit: cover;
}

.search-result-item h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.search-result-item p {
    margin: 0 0 10px;
    color: var(--muted);
}

.search-result-item em {
    color: var(--brand);
    font-style: normal;
    font-weight: 800;
}

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

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
    border-radius: 20px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2), rgba(0, 0, 0, 0.55));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

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

.detail-card,
.side-card,
.next-links {
    padding: 24px;
}

.detail-topline span,
.tag-cloud span {
    color: var(--brand);
    background: #fee2e2;
}

.detail-card h1 {
    margin: 18px 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 950;
}

.lead-text {
    margin: 0 0 18px;
    color: #374151;
    font-size: 18px;
}

.tag-cloud {
    margin-bottom: 20px;
}

.story-block {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 20px;
}

.story-block h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.story-block p,
.detail-facts p {
    margin: 0 0 12px;
    color: #374151;
}

.detail-facts {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.detail-right {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-card {
    position: sticky;
    top: 92px;
}

.side-card h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: #f9fafb;
}

.related-item img {
    width: 112px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.related-item strong,
.related-item em {
    display: block;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.related-item em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.poster-side img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.full-button {
    width: 100%;
    margin-top: 16px;
}

.next-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.next-links a {
    color: var(--brand);
    font-weight: 900;
}

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

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

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-brand h3 {
    color: #f87171;
    font-size: 24px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #9ca3af;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a {
    color: #9ca3af;
}

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

.is-filter-hidden {
    display: none;
}

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

    .four-grid,
    .category-layout,
    .split-section,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-right .side-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-search {
        order: 3;
        flex: 1 1 100%;
    }

    .header-search input {
        width: 100%;
    }

    .nav-category {
        display: none;
    }

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

    .hero-content {
        padding: 32px 24px 58px;
    }

    .quick-panel {
        grid-template-columns: 1fr;
        padding: 22px;
    }

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

@media (max-width: 620px) {
    .site-main,
    .header-inner,
    .footer-inner {
        width: min(100% - 20px, 1280px);
    }

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

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

    .hero-summary,
    .page-hero p,
    .lead-text {
        font-size: 16px;
    }

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

    .content-section,
    .gradient-section,
    .page-hero,
    .detail-card,
    .side-card,
    .search-panel,
    .category-tile {
        padding: 18px;
    }

    .section-heading,
    .category-title-row,
    .filter-bar,
    .next-links {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search,
    .search-page-form {
        border-radius: 18px;
        flex-direction: column;
    }

    .search-result-item,
    .related-item,
    .ranking-row,
    .compact-card {
        grid-template-columns: 72px 1fr;
    }

    .search-result-item img,
    .related-item img,
    .ranking-row img,
    .compact-card img {
        width: 72px;
        height: 92px;
    }

    .ranking-index {
        font-size: 18px;
    }
}
