:root {
    --site-blue: #2563eb;
    --site-blue-dark: #1d4ed8;
    --site-orange: #f97316;
    --site-orange-dark: #ea580c;
    --site-bg: #f8fafc;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    color: #374151;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--site-blue);
    background: #eff6ff;
}

.top-search {
    display: flex;
    align-items: center;
    width: 290px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: #ffffff;
}

.top-search input {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    outline: none;
    color: #111827;
    background: transparent;
}

.top-search button {
    height: 100%;
    padding: 0 18px;
    color: #ffffff;
    background: var(--site-orange);
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    color: #111827;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.56), transparent 30%), linear-gradient(135deg, #2563eb, #1d4ed8 48%, #111827);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 46px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 90px 24px 110px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #ffedd5;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 680px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: var(--site-orange);
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
    background: var(--site-orange-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--site-blue-dark);
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-soft {
    color: var(--site-blue-dark);
    background: #eff6ff;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-slide-image {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(37, 99, 235, 0.25));
}

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

.hero-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.hero-slide-body {
    position: relative;
    z-index: 2;
    padding: 26px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.86));
}

.hero-slide-body h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 900;
}

.hero-slide-body p {
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.7;
}

.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.hero-slide-meta span,
.movie-meta-line span,
.detail-meta span,
.tag-row span,
.filter-chip,
.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-slide-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-dots {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

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

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;
    color: var(--site-bg);
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-block {
    margin-bottom: 76px;
}

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

.section-heading h2 {
    color: #111827;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.75;
}

.section-kicker {
    margin-bottom: 8px;
    color: var(--site-orange);
}

.section-more {
    flex: 0 0 auto;
    color: var(--site-blue);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #1d4ed8, #f97316);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.movie-poster.is-empty::before,
.hero-slide-image.is-empty::before,
.detail-cover.is-empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, #1d4ed8, #111827 58%, #f97316);
}

.poster-name {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.play-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-meta-line,
.detail-meta,
.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta-line span {
    color: #2563eb;
    background: #eff6ff;
}

.movie-card h3 {
    margin-top: 12px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    color: #9a3412;
    background: #ffedd5;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1f2937);
    box-shadow: var(--site-shadow);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #f97316, #111827);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 900;
}

.category-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.category-card a {
    display: inline-flex;
    align-items: center;
    margin-top: 24px;
    color: #ffffff;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    outline: none;
    background: #f9fafb;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 120px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--site-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-blue));
    font-weight: 900;
}

.rank-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #f97316);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-info h3 a:hover {
    color: var(--site-blue);
}

.rank-info p {
    color: var(--site-muted);
    line-height: 1.65;
}

.rank-action {
    color: var(--site-orange);
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #111827 60%, #f97316);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin-top: 18px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 76px;
}

.detail-top {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    margin-bottom: 42px;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    background: linear-gradient(135deg, #1d4ed8, #f97316);
    box-shadow: var(--site-shadow);
}

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

.detail-info h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-meta {
    margin-bottom: 22px;
}

.detail-meta span,
.info-pill {
    color: #1d4ed8;
    background: #dbeafe;
}

.detail-summary {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.detail-tags a,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    color: #9a3412;
    border-radius: 999px;
    background: #ffedd5;
    font-weight: 800;
}

.player-card {
    overflow: hidden;
    margin-bottom: 42px;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #030712;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), transparent 38%), #030712;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.player-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 28px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--site-orange);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 20px 48px rgba(249, 115, 22, 0.36);
}

.player-message {
    min-height: 22px;
    padding: 14px 20px 18px;
    color: #d1d5db;
    background: #111827;
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 28px;
    margin-bottom: 68px;
}

.article-box,
.side-box {
    padding: 28px;
    border: 1px solid var(--site-border);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.article-box h2,
.side-box h2 {
    margin-bottom: 18px;
    font-size: 26px;
    font-weight: 900;
}

.article-box p,
.side-box p {
    color: #374151;
    line-height: 1.9;
}

.article-box p + h2 {
    margin-top: 30px;
}

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

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--site-muted);
}

.info-list strong {
    color: #111827;
}

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

.empty-state {
    padding: 42px;
    text-align: center;
    border: 1px dashed var(--site-border);
    border-radius: 24px;
    color: var(--site-muted);
    background: #ffffff;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #ffffff;
}

.site-footer p {
    max-width: 620px;
    color: #9ca3af;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: flex-start;
}

.footer-links a {
    color: #d1d5db;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--site-orange);
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 34px;
    color: #6b7280;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--site-orange);
    box-shadow: var(--site-shadow);
}

.back-top.visible {
    display: inline-flex;
}

@media (max-width: 1180px) {
    .movie-grid,
    .movie-grid.large-grid,
    .search-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .site-header-inner {
        flex-wrap: wrap;
        gap: 14px;
    }

    .site-nav {
        display: none;
        order: 4;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--site-border);
    }

    .site-nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link {
        justify-content: center;
    }

    .top-search {
        flex: 1;
        min-width: 220px;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-inner,
    .page-hero-inner,
    .main-container,
    .detail-shell {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-panel {
        min-height: 430px;
    }

    .movie-grid,
    .movie-grid.large-grid,
    .search-results,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .detail-top,
    .content-panel {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 360px;
    }

    .rank-item {
        grid-template-columns: 44px 96px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 3;
    }

    .site-footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-logo {
        font-size: 19px;
    }

    .top-search {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .hero-inner {
        padding-top: 64px;
        padding-bottom: 88px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-panel {
        min-height: 390px;
        border-radius: 24px;
    }

    .movie-grid,
    .movie-grid.large-grid,
    .search-results,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 14px;
    }

    .rank-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-thumb {
        display: none;
    }

    .rank-action {
        grid-column: 2;
    }
}
