* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --line: rgba(34, 211, 238, 0.18);
    --line-strong: rgba(34, 211, 238, 0.35);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #22d3ee;
    --accent-strong: #06b6d4;
    --accent-blue: #3b82f6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 84% 12%, rgba(59, 130, 246, 0.14), transparent 32rem),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #001018;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    border-radius: 15px;
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.35);
}

.brand-copy {
    display: grid;
}

.brand-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--accent), #60a5fa, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: -4px;
    font-size: 12px;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: var(--soft);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link {
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
    border-color: var(--line);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--accent);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0;
}

.mobile-link {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.64);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.86)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.4) 42%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
    align-items: end;
    gap: 52px;
    min-height: 640px;
    padding: 92px 0 96px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

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

.hero p,
.page-hero p,
.detail-intro {
    max-width: 760px;
    margin: 0;
    color: var(--soft);
    font-size: 17px;
}

.hero-tags,
.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    padding: 7px 12px;
    color: #dffbff;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
}

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

.primary-button,
.ghost-button,
.inline-button,
.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.24);
}

.ghost-button,
.inline-button {
    color: var(--accent);
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.66);
}

.primary-button:hover,
.ghost-button:hover,
.inline-button:hover,
.rank-action:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.65);
    box-shadow: var(--shadow);
}

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

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 30px;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    color: var(--accent);
    border-radius: 50%;
    font-size: 28px;
}

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

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

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

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

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.text-link {
    color: var(--accent);
    font-weight: 900;
}

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

.category-tile,
.category-card-large,
.ranking-panel,
.article-panel,
.side-panel,
.filter-bar,
.rank-row,
.movie-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.54));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 210px;
    padding: 18px;
    overflow: hidden;
    border-radius: var(--radius);
}

.category-name {
    font-size: 20px;
    font-weight: 900;
}

.category-desc {
    color: var(--muted);
    font-size: 14px;
}

.poster-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    align-self: end;
}

.poster-strip img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 80px rgba(34, 211, 238, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.78);
}

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

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

.card-badge,
.card-year {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.card-badge {
    left: 10px;
    color: #03151a;
    background: var(--accent);
}

.card-year {
    right: 10px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.card-title {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--soft);
    font-size: 12px;
}

.card-meta span {
    padding: 4px 7px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.35);
}

.compact-card .card-desc {
    min-height: 38px;
}

.ranking-panel,
.article-panel,
.side-panel {
    padding: 22px;
    border-radius: var(--radius);
}

.panel-title,
.side-panel h2,
.article-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
}

.ranking-mini-list .rank-row,
.side-ranking .rank-row {
    grid-template-columns: 42px minmax(0, 1fr);
}

.ranking-mini-list .rank-poster,
.ranking-mini-list .rank-action,
.side-ranking .rank-poster,
.side-ranking .rank-action {
    display: none;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--accent);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.08);
    font-weight: 900;
}

.rank-poster img {
    width: 76px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.rank-title {
    display: block;
    overflow: hidden;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--soft);
    font-size: 12px;
}

.rank-action {
    color: #001018;
    background: var(--accent);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: 22px;
}

.filter-search {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--accent);
    transform: translateY(-50%);
}

.filter-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: rgba(2, 6, 23, 0.52);
}

.filter-search input:focus {
    border-color: var(--accent);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-chip {
    height: 38px;
    padding: 0 14px;
    color: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #001018;
    border-color: var(--accent);
    background: var(--accent);
}

.page-main {
    padding: 56px 0 24px;
}

.page-hero {
    padding: 72px 0 42px;
}

.page-hero h1 {
    max-width: 880px;
}

.category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 68px;
}

.category-card-large {
    overflow: hidden;
    border-radius: var(--radius);
}

.category-image-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 10px;
}

.category-image-wall img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-card-body {
    padding: 18px;
}

.category-card-body h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card-body p {
    min-height: 50px;
    margin: 0 0 16px;
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-bottom: 1px solid var(--line);
}

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

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.04);
    transform: scale(1.04);
}

.detail-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.92)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.34));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 44px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.detail-cover {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.player-section {
    padding: 48px 0 18px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--text);
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: #001018;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.4);
    font-size: 30px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    padding: 34px 0;
}

.article-panel p {
    margin: 0 0 24px;
    color: var(--soft);
    font-size: 16px;
}

.side-panel .rank-row {
    padding: 10px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: grid;
    gap: 12px;
    padding: 34px 0;
    color: var(--muted);
}

.footer-brand {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-inner p {
    max-width: 760px;
    margin: 0;
}

[data-card].is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-poster {
        display: none;
    }

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

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

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

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

    .header-inner {
        min-height: 66px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

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

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

    .hero-content {
        padding: 74px 0 92px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.03em;
    }

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

    .hero-controls {
        justify-content: center;
    }

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

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

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

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

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

    .rank-action {
        display: none;
    }

    .rank-poster img {
        width: 64px;
    }

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

    .detail-cover {
        width: 210px;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .dense-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-poster {
        display: none;
    }
}
