:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --red: #ef4444;
    --orange: #f97316;
    --green: #10b981;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-bar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

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

.brand-name {
    font-size: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--blue);
    background: #eff6ff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--blue);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
    color: #ffffff;
}

.hero-track {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 56px;
    padding: 88px max(32px, calc((100vw - 1180px) / 2)) 104px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.76), rgba(20, 184, 166, 0.58)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

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

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 700;
}

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

.center-actions {
    justify-content: center;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 16px 32px rgba(239, 68, 68, 0.32);
}

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

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

.hero-poster,
.detail-cover {
    position: relative;
    display: block;
    width: min(360px, 100%);
    justify-self: center;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-poster img,
.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span,
.detail-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.84);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: 0.2s ease;
}

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

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

.white-section {
    background: #ffffff;
}

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.soft-green {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.soft-purple {
    background: linear-gradient(135deg, #faf5ff, #fdf2f8);
}

.search-section {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

.section-action {
    color: var(--blue);
    font-weight: 800;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dbeafe;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.35s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: 0.2s ease;
}

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

.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.84);
    opacity: 0;
    transition: 0.2s ease;
}

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

.poster-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    min-width: 34px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    right: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.category-card a:hover {
    color: var(--blue);
}

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

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--blue);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 700;
}

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

.compact-card h3 {
    font-size: 15px;
}

.compact-card .movie-line,
.compact-card .tag-row {
    display: none;
}

.search-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.search-panel input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: 0;
    color: var(--ink);
    background: #ffffff;
}

.search-panel input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.category-chips,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chips a,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--blue);
    background: #eff6ff;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active,
.category-chips a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

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

.page-hero {
    padding: 96px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.simple-hero {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #06b6d4);
}

.category-hero {
    background: linear-gradient(135deg, #065f46, #2563eb, #8b5cf6);
}

.rank-hero {
    background: linear-gradient(135deg, #7f1d1d, #dc2626, #f97316);
}

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

.category-card {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.category-card span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 800;
}

.category-card h2 {
    margin: 18px 0 10px;
    font-size: 26px;
}

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

.category-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 74px;
    height: 98px;
    object-fit: cover;
}

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

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

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

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

.detail-hero {
    position: relative;
    padding: 78px 0;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.72), rgba(20, 184, 166, 0.54)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
    align-items: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

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

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

.detail-content {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.62));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.38);
    font-size: 30px;
}

.player-overlay.is-hidden {
    display: none;
}

.info-card,
.detail-sidebar {
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.info-card h2,
.detail-sidebar h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.info-card h2:not(:first-child) {
    margin-top: 26px;
}

.info-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.info-list span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: #eff6ff;
    font-weight: 800;
}

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

.sidebar-list .movie-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    box-shadow: none;
    border: 1px solid var(--line);
}

.sidebar-list .poster-link img {
    height: 116px;
}

.sidebar-list .movie-card-body {
    padding: 10px 10px 10px 0;
}

.cta-section {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.cta-card {
    text-align: center;
}

.cta-card h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
}

.cta-card p {
    margin: 0 auto;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

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

.footer-brand {
    color: #ffffff;
}

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

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

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

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

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

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

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: none;
    }
}

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

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

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding: 58px 18px 94px;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-poster {
        width: 210px;
        justify-self: start;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

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

    .rank-number {
        position: absolute;
        margin-left: 46px;
        margin-top: -62px;
    }

    .plain-link {
        grid-column: 1 / -1;
    }

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

    .detail-cover {
        width: 220px;
        justify-self: start;
    }

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

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

    .brand-name {
        font-size: 18px;
    }

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

    .six-grid,
    .eight-grid,
    .four-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        border-radius: 18px;
    }

    .poster-link img {
        aspect-ratio: 16 / 10;
    }

    .compact-card .poster-link img {
        aspect-ratio: 16 / 10;
    }

    .page-hero,
    .detail-hero {
        padding: 64px 0;
    }

    .hero h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 38px;
    }

    .hero p,
    .page-hero p,
    .detail-hero p {
        font-size: 17px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
    }
}
