:root {
    --primary: #06b6d4;
    --secondary: #2563eb;
    --accent: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.22), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.16), transparent 28%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 46%, #ecfeff 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

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

.navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 25px rgba(37, 99, 235, 0.25);
    transform: rotate(-6deg);
}

.logo-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 700;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input,
.filter-input,
.filter-select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #1f2937;
    background: #ffffff;
    outline: none;
    padding: 0 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input {
    padding-left: 42px;
}

.search-box input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.13);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    max-height: 420px;
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px;
}

.search-panel.is-open {
    display: block;
}

.search-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: #f8fafc;
}

.search-item img {
    width: 70px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: #dbeafe;
}

.search-title {
    font-weight: 800;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-meta {
    color: #64748b;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-empty {
    padding: 18px 12px;
    color: #64748b;
    text-align: center;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-links {
    display: grid;
    gap: 12px;
    padding-top: 6px;
}

.mobile-links a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    font-weight: 700;
    color: #334155;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.65) 45%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.08) 48%, rgba(2, 6, 23, 0.52) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 48px;
    padding: 96px 0 72px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.25);
    backdrop-filter: blur(14px);
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero p {
    margin: 22px 0 0;
    max-width: 680px;
    color: #e2e8f0;
    font-size: 20px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #155e75;
    background: #cffafe;
}

.hero .tag {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    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(--primary), var(--secondary));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

.btn-light {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card-meta {
    display: grid;
    gap: 6px;
    padding: 16px 4px 2px;
}

.hero-card-title {
    font-size: 22px;
    font-weight: 950;
}

.hero-card-sub {
    color: #cbd5e1;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

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

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

.hero-nav {
    position: absolute;
    right: max(24px, calc((100% - 1200px) / 2));
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-nav button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.main-content {
    position: relative;
    z-index: 2;
    padding: 72px 0 84px;
}

.section {
    margin-top: 72px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-kicker {
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-desc {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 24px;
}

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

.movie-card {
    display: block;
    height: 100%;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.13);
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), transparent 70%);
    transition: opacity 0.2s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.corner-label {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-label {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.70);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: var(--primary);
}

.card-desc {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #64748b;
    font-size: 13px;
}

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

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

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.category-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    top: -60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    margin: 0;
    font-size: 25px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
}

.category-card span {
    position: relative;
    align-self: end;
    display: inline-flex;
    margin-top: 20px;
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 150px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 20px;
    font-weight: 950;
}

.rank-cover img {
    width: 150px;
    height: 88px;
    object-fit: cover;
    border-radius: 16px;
    background: #dbeafe;
}

.rank-title {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.rank-desc {
    margin: 6px 0 0;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    text-align: right;
    color: #f59e0b;
    font-weight: 950;
}

.page-hero {
    padding: 74px 0 34px;
}

.page-panel {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 800;
}

.page-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-desc {
    max-width: 820px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.empty-filter {
    display: none;
    padding: 30px;
    text-align: center;
    color: #64748b;
    border-radius: 22px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.watch-panel {
    padding: 16px;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.24);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.play-trigger {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(6, 182, 212, 0.22), rgba(2, 6, 23, 0.48)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.24));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-trigger span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.44);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-card {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow);
}

.poster-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    align-items: start;
}

.poster-row img {
    width: 170px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: #dbeafe;
}

.meta-table {
    display: grid;
    gap: 10px;
    color: #475569;
}

.meta-table strong {
    color: #0f172a;
}

.article-block {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.article-block p {
    margin: 0;
    color: #475569;
}

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

.footer {
    margin-top: 80px;
    padding: 50px 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), #ffffff);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer h3,
.footer h4 {
    margin: 0 0 14px;
    font-weight: 950;
}

.footer p,
.footer a {
    color: #64748b;
}

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

.copyline {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1040px) {
    .nav-links,
    .header-actions .search-box {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .mobile-panel .search-box {
        width: 100%;
        margin-top: 12px;
    }

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

    .hero-card {
        max-width: 460px;
    }

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

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

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

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

    .navbar {
        min-height: 66px;
    }

    .logo {
        font-size: 20px;
    }

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

    .hero-content {
        padding: 70px 0 90px;
    }

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

    .hero-card {
        display: none;
    }

    .hero-nav {
        right: 16px;
        bottom: 24px;
    }

    .section-head {
        display: grid;
    }

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

    .rank-item {
        grid-template-columns: 44px 96px 1fr;
        gap: 12px;
    }

    .rank-cover img {
        width: 96px;
        height: 64px;
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

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

    .poster-row img {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .page-panel {
        padding: 24px;
    }

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