:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-soft: rgba(30, 41, 59, 0.56);
    --line: rgba(148, 163, 184, 0.18);
    --muted: #94a3b8;
    --text: #f8fafc;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --shadow: 0 24px 60px rgba(8, 145, 178, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 30rem),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.16), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

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

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
    color: white;
    font-size: 16px;
    padding-left: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

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

.brand-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
}

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

.nav-link,
.mobile-nav-link {
    color: #cbd5e1;
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.78);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    height: 78vh;
    min-height: 620px;
    margin-top: 72px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.85s ease;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.48), rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.68) 28%, transparent 72%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    padding-top: 26px;
}

.eyebrow,
.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(8, 145, 178, 0.18);
    color: var(--cyan);
    font-weight: 700;
}

.eyebrow {
    padding: 7px 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: #cbd5e1;
}

.meta-pill {
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.64);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.24);
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
}

.btn-secondary,
.section-more {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    color: #e2e8f0;
}

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: white;
    font-size: 28px;
    backdrop-filter: blur(8px);
}

.hero-control:hover {
    background: rgba(8, 145, 178, 0.56);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-hero {
    padding: 132px 0 52px;
    background:
        linear-gradient(135deg, rgba(8, 145, 178, 0.22), rgba(59, 130, 246, 0.08)),
        radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.18), transparent 24rem);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.03em;
}

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

.content-section {
    padding: 60px 0;
}

.content-section.compact {
    padding-top: 38px;
}

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

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 54%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), transparent);
}

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

.movie-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 0 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-row .movie-card {
    flex: 0 0 276px;
    scroll-snap-align: start;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.82);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 56%);
    transition: opacity 0.25s ease;
}

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

.play-pill {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    transform: translate(-50%, 16px);
    opacity: 0;
    white-space: nowrap;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    padding: 10px 15px;
    font-weight: 800;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.card-body h2 a:hover {
    color: var(--cyan);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span {
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.74);
    color: #cbd5e1;
    padding: 5px 8px;
    font-size: 12px;
}

.card-compact .card-body p {
    display: none;
}

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

.category-card {
    min-height: 188px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(59, 130, 246, 0.08)),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: var(--shadow);
}

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

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

.search-panel {
    display: grid;
    gap: 10px;
    margin: 0 0 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.search-label {
    color: #e2e8f0;
    font-weight: 800;
}

.search-panel input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    outline: none;
    background: rgba(2, 6, 23, 0.72);
    color: white;
    padding: 0 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-panel input:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.notice-empty {
    display: none;
    margin-top: 20px;
    color: var(--muted);
}

.notice-empty.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    gap: 28px;
}

.player-card,
.detail-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 56px rgba(2, 6, 23, 0.32);
}

.player-card {
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: black;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24)),
        rgba(2, 6, 23, 0.24);
    color: white;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button-core {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 16px 22px;
    color: white;
    font-weight: 900;
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.32);
}

.player-button-core span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding-left: 3px;
}

.player-info {
    padding: 22px;
}

.player-info h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.player-info p {
    margin: 0;
    color: #cbd5e1;
}

.detail-panel {
    padding: 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.82);
    margin-bottom: 18px;
}

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

.detail-meta {
    display: grid;
    gap: 10px;
    color: #cbd5e1;
}

.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-meta span:first-child {
    color: var(--muted);
}

.article-panel {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 18px;
    color: #cbd5e1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
}

.tag-pill {
    padding: 6px 10px;
    font-size: 13px;
}

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

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

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.98));
    padding: 50px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 26px;
}

.footer-main p {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
}

.site-footer a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #64748b;
    font-size: 14px;
}

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

    .menu-toggle {
        display: flex;
    }

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

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

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

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

    .brand-text em {
        display: none;
    }

    .hero {
        min-height: 560px;
        height: 72vh;
    }

    .hero-copy {
        padding-right: 42px;
    }

    .hero-control {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

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

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

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

    .card-body {
        padding: 13px;
    }

    .card-body h2 {
        font-size: 16px;
    }

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

    .page-hero {
        padding-top: 112px;
    }
}
