* {
    box-sizing: border-box;
}

:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --ink: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --paper: #ffffff;
    --soft: #f0f9ff;
    --warm: #fef3c7;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 45%, #f0fdfa 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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: 1000;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.24);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

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

.main-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fef08a;
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    background: transparent;
}

.nav-search button,
.large-search button,
.filter-search-row button {
    border: 0;
    cursor: pointer;
    color: #075985;
    background: #fde047;
    font-weight: 800;
    padding: 11px 18px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 8px 12px;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #082f49;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.52), transparent 28%),
        linear-gradient(90deg, rgba(8, 47, 73, 0.98), rgba(8, 47, 73, 0.72) 46%, rgba(8, 47, 73, 0.18)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 150px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0891b2;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.hero-content h1 {
    max-width: 820px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

.hero-tags,
.detail-meta,
.tag-cloud,
.meta-row,
.category-actions,
.hero-actions,
.token-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-cloud span,
.meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    margin-top: 32px;
}

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

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

.btn.primary {
    color: #075985;
    background: linear-gradient(90deg, #fde047, #facc15);
    box-shadow: 0 16px 36px rgba(250, 204, 21, 0.28);
}

.btn.glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
}

.btn.stretch {
    width: 100%;
}

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

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

.hero-dot.active {
    background: #fef08a;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: -46px;
    position: relative;
    z-index: 5;
}

.stat-strip a {
    display: grid;
    place-items: center;
    min-height: 112px;
    border-radius: var(--radius);
    color: #075985;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-strip strong {
    display: block;
    font-size: 30px;
    font-weight: 950;
}

.stat-strip span {
    color: var(--muted);
    font-weight: 800;
}

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

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

.section-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.section-more {
    color: #0e7490;
    font-weight: 900;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.17);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

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

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

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #075985;
    background: #fef08a;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde047, #fb923c);
    font-weight: 950;
}

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

.meta-row span {
    color: #0369a1;
    background: #e0f2fe;
}

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

.movie-card p {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tag-line {
    margin-top: 12px;
    color: #0891b2;
    font-size: 13px;
    font-weight: 800;
}

.hot-band {
    background: linear-gradient(90deg, #ffedd5, #fee2e2);
}

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

.category-preview,
.category-tile,
.content-card,
.filter-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    padding: 24px;
}

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

.category-tile-head span {
    color: #0891b2;
    font-weight: 950;
}

.category-tile h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-tile p {
    color: var(--muted);
}

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

.mini-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.page-hero,
.detail-hero {
    color: #fff;
    background:
        radial-gradient(circle at 22% 20%, rgba(250, 204, 21, 0.35), transparent 26%),
        linear-gradient(120deg, #1d4ed8, #06b6d4 55%, #0f766e);
    padding: 82px 0;
}

.page-hero h1,
.detail-info h1 {
    margin: 14px 0;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.08;
}

.page-hero p,
.detail-info .lead {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.large-search {
    display: flex;
    width: min(680px, 100%);
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
}

.large-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 16px 20px;
}

.filter-panel {
    margin-top: -34px;
    position: relative;
    z-index: 5;
}

.filter-search-row {
    display: flex;
    gap: 12px;
}

.filter-search-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 13px 18px;
}

.filter-search-row button {
    border-radius: 999px;
}

.token-row {
    margin-top: 16px;
}

.token-row button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font-weight: 800;
    padding: 8px 14px;
}

.token-row button.active,
.token-row button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.empty-tip {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    padding: 14px;
}

.rank-item span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #075985;
    background: #cffafe;
    font-weight: 950;
}

.rank-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: #fef08a;
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.32);
}

.detail-meta span,
.tag-cloud span {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
}

.tag-cloud {
    margin: 20px 0 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 25px 70px rgba(2, 6, 23, 0.32);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #075985;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), rgba(2, 6, 23, 0.68));
    cursor: pointer;
}

.player-cover span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fef08a;
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 18px;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.content-card p {
    margin: 0;
    color: #334155;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.82);
    background: #0f172a;
    padding: 46px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-grid strong {
    display: block;
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}

.footer-grid p {
    margin: 0;
    max-width: 560px;
}

.footer-grid div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: flex-start;
}

.footer-grid a {
    color: #67e8f9;
    font-weight: 800;
}

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

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

    .category-preview-grid,
    .category-tile-grid,
    .detail-content,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 0;
        padding-bottom: 12px;
    }

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

    .main-nav a {
        padding: 10px 0;
    }

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

    .hero-content {
        padding-top: 110px;
    }

    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

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

    .rank-item em {
        grid-column: 2;
    }
}

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

    .hero-tags,
    .hero-actions,
    .category-actions,
    .filter-search-row,
    .large-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

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

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