:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --yellow: #facc15;
    --green: #22c55e;
    --red: #dc2626;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --dark: #111827;
    --radius: 18px;
    --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(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}

.nav-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    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: 999px;
    color: var(--cyan);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.24);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-weight: 650;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--yellow);
    opacity: 1;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 24px;
}

.mobile-menu {
    display: none;
    padding: 8px 24px 18px;
    background: rgba(29, 78, 216, 0.98);
}

.mobile-menu.is-open {
    display: grid;
    gap: 4px;
}

.mobile-link {
    color: #ffffff;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 32%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68) 45%, rgba(15, 23, 42, 0.28)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 52%);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 82px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 64px;
}

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

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.lead-text {
    max-width: 720px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: clamp(17px, 2.2vw, 24px);
}

.hero-tags,
.tag-cloud,
.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.hero-tags span,
.tag-cloud span,
.meta-pills span,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

.pill.blue {
    color: var(--blue);
    background: #dbeafe;
    backdrop-filter: none;
}

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

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.24);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
    font-size: 30px;
}

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

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

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

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

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

.hero-dot.is-active {
    width: 28px;
    background: var(--yellow);
}

.intro-band,
.page-hero,
.detail-hero {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 45%, #06b6d4 100%);
    color: #ffffff;
}

.intro-inner,
.page-hero-inner,
.detail-inner,
.section-inner,
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.intro-inner {
    padding-top: 56px;
    padding-bottom: 62px;
}

.intro-inner h2,
.section-head h2,
.category-panel h2,
.player-section h2,
.story-block h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.intro-inner p {
    max-width: 850px;
    color: #dbeafe;
    font-size: 18px;
}

.filter-panel {
    margin-top: 26px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
}

.search-field {
    display: grid;
    gap: 6px;
    color: #ffffff;
    font-weight: 800;
}

.search-field input,
.filter-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
}

.filter-row {
    display: flex;
    align-items: end;
    gap: 10px;
}

.filter-control {
    min-width: 140px;
}

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

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

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

.section-head.compact {
    margin-bottom: 20px;
}

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

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

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

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

.movie-card,
.rank-card,
.category-card,
.category-panel {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.rank-card:hover,
.category-card:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-link,
.rank-card a,
.category-card {
    display: grid;
    height: 100%;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.corner-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-body,
.rank-card-body,
.category-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.card-body strong,
.rank-card-body strong,
.category-card-body strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
}

.card-desc,
.rank-card-body span,
.category-card-body em {
    color: var(--muted);
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-style: normal;
    font-size: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

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

.wide-poster {
    height: 100%;
    aspect-ratio: auto;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 34px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-num,
.rank-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 82px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info em,
.rank-card-body em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-go {
    color: var(--blue);
    font-weight: 800;
}

.category-panel {
    padding: 28px;
}

.category-mini-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.category-mini-grid a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.category-mini-grid strong {
    color: var(--blue-dark);
}

.category-mini-grid span {
    color: var(--muted);
    font-size: 13px;
}

.page-hero-inner {
    padding-top: 72px;
    padding-bottom: 72px;
}

.small-hero h1 {
    font-size: clamp(40px, 6vw, 62px);
}

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

.category-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.rank-card a {
    position: relative;
    grid-template-columns: 138px minmax(0, 1fr);
}

.rank-card img {
    height: 100%;
    min-height: 188px;
}

.rank-ribbon {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
}

.detail-inner {
    padding-top: 38px;
    padding-bottom: 68px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #dbeafe;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--yellow);
}

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

.detail-cover {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    background: rgba(255, 255, 255, 0.16);
}

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

.detail-copy h1 {
    color: #ffffff;
}

.detail-copy .btn {
    margin-top: 4px;
}

.player-section {
    padding: 72px 0;
    background: #0f172a;
    color: #ffffff;
}

.player-section h2 {
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.play-overlay strong {
    font-size: 20px;
}

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

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

.story-block {
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.story-block h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.story-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.accent-block {
    border-left: 6px solid var(--blue);
}

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

.footer-inner {
    padding-top: 48px;
    padding-bottom: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 180px minmax(0, 1fr);
    gap: 34px;
}

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

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

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

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

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

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

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

@media (max-width: 1120px) {
    .nav-menu {
        gap: 14px;
        font-size: 14px;
    }

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

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content,
    .detail-layout,
    .two-col,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .filter-row {
        flex-wrap: wrap;
    }

    .filter-control {
        flex: 1 1 150px;
    }

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

    .detail-cover {
        width: min(300px, 100%);
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 18px;
    }

    .nav-inner,
    .intro-inner,
    .page-hero-inner,
    .detail-inner,
    .section-inner,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-content {
        padding-top: 58px;
        padding-bottom: 82px;
    }

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

    .movie-grid,
    .all-grid,
    .category-grid,
    .rank-grid,
    .category-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-go {
        display: none;
    }

    .rank-card a,
    .movie-card-horizontal .card-link {
        grid-template-columns: 1fr;
    }

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