:root {
    color-scheme: light;
    --bg: #f4f8ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5edf7;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eaf2ff;
    --cyan: #06b6d4;
    --rose: #f43f5e;
    --gold: #f59e0b;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34rem),
        linear-gradient(180deg, #eef6ff 0%, #ffffff 44%, #f7fbff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.navbar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.header-search {
    width: min(290px, 24vw);
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 12px 10px 16px;
    color: var(--text);
}

.header-search button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    color: var(--text);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 20px 18px;
    background: white;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel .nav-link {
    display: block;
    margin-bottom: 8px;
}

.mobile-panel .header-search {
    width: 100%;
    margin-top: 10px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: white;
    background: #0f172a;
}

.hero-backgrounds,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.7s ease, transform 3s ease;
    background: linear-gradient(135deg, #1e3a8a, #0f172a);
}

.hero-bg.active {
    opacity: 0.42;
    transform: scale(1);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.76) 46%, rgba(15, 23, 42, 0.38) 100%),
        radial-gradient(circle at 76% 24%, rgba(6, 182, 212, 0.28), transparent 28rem);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    padding: 96px 20px 82px;
    display: grid;
    grid-template-columns: 1.02fr 0.78fr;
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #dff8ff;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(125, 211, 252, 0.32);
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 760px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy p {
    max-width: 680px;
    color: #dbeafe;
    font-size: 18px;
    margin: 0 0 28px;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.btn-light {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn-soft {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: rgba(37, 99, 235, 0.12);
}

.hero-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
    margin-top: 36px;
}

.hero-stat {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
    display: block;
    font-size: 24px;
}

.hero-stat span {
    color: #bfdbfe;
    font-size: 13px;
}

.hero-panel {
    position: relative;
    padding: 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(18px);
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
    animation: fadeUp 0.5s ease both;
}

.hero-poster {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #1e3a8a, #111827);
}

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

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

.hero-slide h2 {
    margin: 18px 4px 8px;
    font-size: 28px;
    line-height: 1.18;
}

.hero-slide p {
    margin: 0 4px 16px;
    color: #dbeafe;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
}

.tag-row span {
    color: var(--primary);
    background: var(--primary-soft);
}

.hero-dots {
    display: flex;
    gap: 9px;
    margin: 20px 4px 4px;
}

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

.hero-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

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

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

.section-title h2,
.section-title h1 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f5f9ff);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.28);
}

.category-card strong {
    display: block;
    font-size: 21px;
    margin-bottom: 8px;
}

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

.category-card .corner {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 68%);
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.card-search {
    flex: 1 1 260px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 10px 16px;
    background: white;
}

.filter-button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: #334155;
    font-weight: 750;
    padding: 8px 13px;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.24);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.07);
    filter: saturate(1.06);
}

.card-badge,
.rank-badge,
.type-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.74);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.type-badge {
    left: auto;
    right: 12px;
    background: rgba(37, 99, 235, 0.84);
}

.play-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    border-radius: 999px;
    color: var(--primary);
    background: white;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 15px 15px 17px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.card-body h3 a:hover {
    color: var(--primary);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    overflow: hidden;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

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

.rank-content h3 {
    margin: 2px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    color: white;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.86)),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.36), transparent 32rem);
}

.page-hero h1 {
    max-width: 820px;
    margin: 14px 0 12px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: white;
}

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

.preview-card {
    padding: 22px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.preview-card h2 {
    margin: 0 0 10px;
}

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

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

.preview-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: #334155;
    font-weight: 700;
}

.preview-links a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.detail-main {
    padding: 46px 0 0;
}

.detail-shell {
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 70%, #0891b2);
    color: white;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.detail-inner {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.72fr;
    gap: 24px;
    align-items: stretch;
}

.player-card {
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.player-cover span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.36);
    font-size: 34px;
    padding-left: 5px;
}

.detail-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #1e3a8a);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.detail-info h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.8vw, 42px);
    line-height: 1.1;
}

.detail-info p {
    margin: 0 0 14px;
    color: #dbeafe;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.meta-list div {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.meta-list dt {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
}

.meta-list dd {
    margin: 2px 0 0;
    font-weight: 800;
}

.article-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 18px;
    color: #334155;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 72px;
    color: white;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-inner p {
    color: #cbd5e1;
    margin: 12px 0 0;
}

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

.footer-links strong {
    margin-bottom: 6px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 20px;
    color: #94a3b8;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .header-search {
        display: none;
    }
}

@media (max-width: 860px) {
    .navbar {
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 72px 20px 54px;
    }

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

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

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

    .category-preview,
    .detail-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container,
    .navbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

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

    .hero-panel {
        border-radius: 22px;
    }

    .hero-poster {
        border-radius: 18px;
    }

    .movie-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

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

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

    .rank-card {
        grid-template-columns: 96px 1fr;
    }

    .detail-inner {
        padding: 14px;
    }

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

    .detail-poster {
        max-width: 220px;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }
}
