:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --orange: #f97316;
    --green: #22c55e;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 12px;
}

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

.nav-link {
    color: #e2e8f0;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #67e8f9;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(148, 163, 184, 0.15);
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.mobile-nav .nav-link,
.mobile-nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.26), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.28), transparent 28%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #164e63 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -12% -28% -12%;
    height: 280px;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.95));
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 48px;
    padding: 64px 0;
}

.hero-copy h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.sub-hero p,
.detail-copy .lead {
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow.dark {
    color: var(--cyan-dark);
}

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

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

.primary-button,
.hero-search button {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 30px rgba(6, 182, 212, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 560px;
    margin-top: 24px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 16px;
}

.hero-search input::placeholder {
    color: #cbd5e1;
}

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

.hero-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: translateY(0);
    isolation: isolate;
}

.hero-card:nth-child(2) {
    transform: translateY(28px);
}

.hero-card:nth-child(3) {
    transform: translateY(-18px);
}

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

.hero-card:hover img {
    transform: scale(1.1);
}

.hero-overlay,
.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.88));
}

.hero-pill {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.9);
    font-size: 13px;
    font-weight: 800;
}

.hero-text {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 8px;
}

.hero-text strong {
    font-size: 24px;
    line-height: 1.18;
}

.hero-text em {
    color: #dbeafe;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-text small {
    color: #bae6fd;
}

.hero-play,
.play-dot {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.95);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.34);
}

.hero-play {
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.section-link {
    color: var(--cyan-dark);
    font-weight: 800;
}

.light-link,
.section-head.light .section-link {
    color: #67e8f9;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    outline: 0;
    color: var(--ink);
    background: #f8fafc;
    padding: 0 14px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0e7490);
}

.poster-card .movie-cover,
.detail-poster {
    aspect-ratio: 2 / 3;
}

.movie-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.play-dot {
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: #facc15;
    font-size: 13px;
    font-weight: 900;
}

.movie-info {
    padding: 18px;
}

.movie-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-info h2 a:hover {
    color: var(--cyan-dark);
}

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

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

.movie-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.large span {
    font-size: 13px;
}

.soft-section {
    background: linear-gradient(90deg, #f1f5f9, #ecfeff);
}

.dark-section {
    color: #ffffff;
    background: #0f172a;
}

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

.category-tile,
.category-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile {
    min-height: 150px;
    display: grid;
    align-content: end;
    gap: 10px;
    padding: 22px;
    overflow: hidden;
    position: relative;
}

.category-tile::before,
.category-panel-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% 8%, rgba(6, 182, 212, 0.22), transparent 34%);
    pointer-events: none;
}

.category-tile span,
.category-panel-head span {
    color: var(--cyan-dark);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong,
.category-panel-head strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

.side-rank {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.section-head.slim {
    margin-bottom: 18px;
}

.rank-list,
.rank-board {
    display: grid;
    gap: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.list-rank {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 86px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-copy strong,
.rank-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-copy small {
    color: #0891b2;
}

.sub-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 20%, rgba(34, 211, 238, 0.22), transparent 26%),
        linear-gradient(135deg, #0f172a, #164e63);
}

.sub-hero .container {
    padding: 72px 0;
}

.category-panel {
    overflow: hidden;
}

.category-panel-head {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 160px;
    align-content: end;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.category-samples {
    display: grid;
    gap: 10px;
    padding: 18px 24px 24px;
}

.category-samples a {
    color: #334155;
    font-weight: 700;
}

.category-samples a:hover {
    color: var(--cyan-dark);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.detail-copy .lead {
    color: #e2e8f0;
}

.detail-meta {
    margin-top: 22px;
}

.watch-section {
    margin-top: -42px;
    position: relative;
    z-index: 3;
}

.player-card {
    padding: 14px;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

.play-layer span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.95);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.36);
    font-size: 30px;
}

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

.play-layer.is-hidden {
    display: none;
}

.article-content {
    max-width: 920px;
}

.article-content h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-content p {
    margin: 0 0 28px;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 42px;
    padding: 54px 0;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    max-width: 520px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    padding: 18px 0 28px;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

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

@media (max-width: 1080px) {
    .hero-layout,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .side-rank {
        position: static;
    }

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

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .brand-text small {
        display: none;
    }

    .hero-layout {
        min-height: auto;
        padding: 42px 0 58px;
        gap: 30px;
    }

    .hero-grid,
    .movie-grid,
    .compact-grid,
    .latest-grid,
    .category-grid,
    .category-panel-grid,
    .category-movie-grid,
    .rank-board,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .hero-card:nth-child(2),
    .hero-card:nth-child(3) {
        min-height: 320px;
        transform: none;
    }

    .hero-search,
    .filter-bar {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

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

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

    .rank-row img {
        width: 72px;
        height: 54px;
    }

    .watch-section {
        margin-top: -24px;
    }

    .play-layer span {
        width: 64px;
        height: 64px;
    }
}
