:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #2563eb;
    --cyan: #0891b2;
    --teal: #0f766e;
    --purple: #7c3aed;
    --pink: #db2777;
    --dark: #111827;
    --shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 24px 55px rgba(15, 23, 42, 0.20);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #0891b2 52%, #0f766e 100%);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #0f172a;
    background: #facc15;
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.38);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 15px;
    font-weight: 650;
}

.nav-link {
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fde047;
    opacity: 1;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 14px;
    background: rgba(0, 0, 0, 0.12);
    overflow-x: auto;
    white-space: nowrap;
    gap: 18px;
}

.mobile-nav a {
    font-size: 14px;
    color: #ffffff;
}

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

.hero-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #172554 0%, #581c87 48%, #831843 100%);
}

.hero-light {
    position: absolute;
    border-radius: 999px;
    filter: blur(55px);
    opacity: 0.36;
    pointer-events: none;
}

.hero-light-one {
    width: 320px;
    height: 320px;
    left: 8%;
    top: 80px;
    background: #3b82f6;
}

.hero-light-two {
    width: 430px;
    height: 430px;
    right: 7%;
    bottom: 60px;
    background: #ec4899;
}

.hero-shell {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 34px;
    align-items: center;
    padding: 70px 0;
}

.hero-slider {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #facc15;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

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

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

.hero-tags span,
.tag-list a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 650;
    backdrop-filter: blur(10px);
}

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

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

.btn-primary {
    color: #0f172a;
    background: #facc15;
    box-shadow: 0 12px 28px rgba(250, 204, 21, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-strong);
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.45s ease;
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-play,
.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

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

.play-mark-large {
    width: 72px;
    height: 72px;
    font-size: 24px;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 54px;
    background: #facc15;
}

.hero-side {
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

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

.hero-thumbs {
    display: grid;
    gap: 12px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateX(3px);
}

.hero-thumb img {
    width: 74px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.side-link {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
}

.quick-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.quick-card {
    display: block;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.quick-card strong {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
}

.quick-card span {
    color: var(--muted);
}

.quick-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

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

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

.section-title-row h2,
.list-toolbar h2,
.side-card h2,
.content-section h2 {
    margin: 0;
    color: var(--dark);
    font-size: 28px;
    line-height: 1.2;
}

.section-title-row p,
.list-toolbar p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-title-row a {
    color: var(--blue);
    font-weight: 800;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.toolbar-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.toolbar-controls input,
.toolbar-controls select {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.toolbar-controls input {
    width: min(320px, 70vw);
}

.toolbar-controls input:focus,
.toolbar-controls select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap,
.wide-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e5e7eb;
}

.poster-wrap {
    aspect-ratio: 3 / 4;
}

.wide-poster {
    aspect-ratio: 16 / 9;
}

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

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

.poster-wrap::after,
.wide-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.movie-card:hover .poster-wrap::after,
.movie-card:hover .wide-poster::after {
    opacity: 1;
}

.region-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}

.region-badge {
    top: 10px;
    right: 10px;
    background: var(--blue);
}

.gradient-badge {
    background: linear-gradient(90deg, #ec4899, #7c3aed);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: #f59e0b;
}

.movie-info {
    display: block;
    padding: 14px;
}

.movie-info strong {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    color: var(--dark);
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.movie-info em {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 8px 0 12px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.movie-card-large {
    border-radius: 22px;
}

.movie-info-large {
    padding: 20px;
}

.movie-info-large strong {
    font-size: 20px;
    min-height: auto;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 0;
}

.movie-card-horizontal .poster-wrap {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
}

.ranking-list,
.ranking-page-list,
.side-related {
    display: grid;
    gap: 16px;
}

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

.soft-panel {
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

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

.category-card,
.category-overview-block,
.detail-card,
.side-card {
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 22px;
    min-height: 210px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-title {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 850;
}

.category-card p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

.category-mini-links {
    display: grid;
    gap: 8px;
}

.category-mini-links a {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.category-overview-block {
    padding: 24px;
    margin-bottom: 30px;
}

.page-hero {
    padding: 78px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #172554 0%, #164e63 48%, #0f766e 100%);
}

.page-hero-ranking {
    background: linear-gradient(135deg, #312e81 0%, #7c2d12 100%);
}

.page-hero-categories {
    background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
}

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

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

.player-top {
    padding: 30px 0 44px;
    background: #050505;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.video-cover-button {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.56));
    cursor: pointer;
}

.video-cover-button span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
    font-size: 30px;
    padding-left: 5px;
}

.video-cover-button.is-hidden {
    display: none;
}

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

.detail-card,
.side-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 18px;
    color: var(--dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
}

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

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 750;
}

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

.content-section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.content-section p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.review-box p {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
}

.detail-card .tag-list a {
    color: #374151;
    background: #f3f4f6;
}

.detail-card .tag-list a:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 12px;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-shell,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        grid-template-columns: 1fr 300px;
    }

    .hero-side,
    .detail-side {
        position: static;
    }

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

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

@media (max-width: 820px) {
    .hero-section {
        min-height: 780px;
    }

    .hero-shell {
        min-height: 780px;
        padding: 46px 0 34px;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .hero-poster {
        width: min(320px, 80vw);
        margin: 0 auto;
    }

    .hero-dots {
        bottom: 8px;
    }

    .quick-section,
    .ranking-list,
    .large-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .list-toolbar,
    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .toolbar-controls input,
    .toolbar-controls select {
        width: 100%;
    }

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

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

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

    .brand {
        font-size: 19px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

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

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

    .movie-card-horizontal {
        grid-template-columns: 124px minmax(0, 1fr);
    }

    .movie-card-horizontal .poster-wrap {
        min-height: 116px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info strong {
        min-height: 39px;
        font-size: 14px;
    }

    .movie-info em {
        display: none;
    }

    .detail-card,
    .side-card,
    .category-overview-block {
        padding: 20px;
    }

    .video-cover-button span {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
