:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-soft: rgba(30, 41, 59, 0.58);
    --line: rgba(6, 182, 212, 0.22);
    --line-strong: rgba(34, 211, 238, 0.46);
    --text: #ffffff;
    --muted: #cbd5e1;
    --muted-2: #94a3b8;
    --accent: #06b6d4;
    --accent-soft: rgba(6, 182, 212, 0.18);
    --danger: #ef4444;
    --radius: 1.25rem;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

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

.site-header-inner {
    width: min(1280px, calc(100% - 2rem));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.36);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
    color: #22d3ee;
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 1.6rem;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 1rem;
}

.mobile-panel.open {
    display: grid;
    gap: 0.75rem;
}

.mobile-link {
    padding: 0.75rem 0;
    color: #d1d5db;
    font-weight: 600;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.04) 100%);
}

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

.hero-text {
    max-width: 42rem;
}

.hero-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(6, 182, 212, 0.36);
    border-radius: 999px;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero h1 {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.5rem, 7vw, 4.65rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 1.5rem;
    color: #d1d5db;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-meta strong,
.detail-meta strong {
    color: #22d3ee;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0 1.6rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #06b6d4;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.28);
}

.btn:hover {
    transform: translateY(-2px);
    background: #22d3ee;
    box-shadow: 0 20px 48px rgba(34, 211, 238, 0.32);
}

.btn-outline {
    color: #dffbff;
    border: 1px solid rgba(34, 211, 238, 0.36);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: none;
}

.hero-search {
    display: flex;
    align-items: center;
    min-width: min(100%, 24rem);
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
    padding: 0 1.1rem;
}

.hero-search button {
    border: 0;
    color: #ffffff;
    background: #06b6d4;
    padding: 0.9rem 1.2rem;
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    font-size: 1.8rem;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.98);
}

.hero-arrow.prev {
    left: 1rem;
}

.hero-arrow.next {
    right: 1rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 2rem;
    background: #22d3ee;
}

.main-space {
    padding: 4rem 0;
}

.page-header {
    padding: 4rem 0 2rem;
}

.page-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.15;
}

.page-header p {
    max-width: 58rem;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
}

.section-stack {
    display: grid;
    gap: 4rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head h2 span {
    width: 0.3rem;
    height: 2rem;
    border-radius: 99px;
    background: #22d3ee;
}

.section-head a {
    color: #22d3ee;
    font-weight: 700;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--line-strong);
    box-shadow: 0 24px 64px rgba(6, 182, 212, 0.2);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 16rem;
    overflow: hidden;
    background: #0f172a;
}

.card-large .poster-wrap {
    height: 24rem;
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.1);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.22), transparent);
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 0.48;
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.34);
    border-radius: 999px;
    color: #22d3ee;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    font-weight: 800;
}

.year-badge {
    right: 0.75rem;
}

.rank-badge {
    left: 0.75rem;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.88);
    border-color: rgba(239, 68, 68, 0.4);
}

.play-hover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.2rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.movie-card-body {
    padding: 1rem;
}

.movie-card h3 {
    margin: 0 0 0.6rem;
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-large h3 {
    font-size: 1.35rem;
}

.movie-card p {
    margin: 0 0 0.85rem;
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8rem;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #64748b;
    font-size: 0.8rem;
}

.card-meta span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
}

.compact-list {
    display: grid;
    gap: 1rem;
}

.compact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel-soft);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
}

.compact-card img {
    width: 4rem;
    height: 4rem;
    flex: 0 0 auto;
    border-radius: 0.9rem;
    object-fit: cover;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    color: #ffffff;
    line-height: 1.4;
}

.compact-card em {
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.84rem;
    font-style: normal;
}

.compact-rank {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #06b6d4;
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.category-card {
    min-height: 12rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.17), rgba(37, 99, 235, 0.1)),
        rgba(30, 41, 59, 0.56);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
}

.category-card strong {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 1.25rem;
}

.category-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
}

.category-card span {
    margin-top: 1.5rem;
    color: #22d3ee;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 220px 220px;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
}

.filter-panel label {
    display: grid;
    gap: 0.45rem;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 3rem;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
    padding: 0 1rem;
}

.filter-panel select {
    appearance: none;
}

.hidden-by-filter {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

.detail-card,
.side-card,
.content-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.detail-card {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
    cursor: pointer;
}

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

.player-overlay strong {
    font-size: 1.05rem;
}

.play-circle {
    width: 5.5rem;
    height: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.92);
    font-size: 2.4rem;
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.42);
}

.detail-body {
    padding: 1.5rem;
}

.detail-body h1 {
    margin: 1rem 0;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.18;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 0;
}

.detail-tags span {
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(6, 182, 212, 0.09);
    font-size: 0.84rem;
}

.content-card {
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

.content-card p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.9;
}

.side-card {
    padding: 1rem;
}

.breadcrumb {
    margin: 0 0 1.2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #22d3ee;
}

.ranking-list {
    display: grid;
    gap: 1rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.site-footer p {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: #94a3b8;
    line-height: 1.75;
}

.site-footer h3 {
    margin: 0 0 1rem;
}

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

.site-footer a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #22d3ee;
}

.footer-bottom {
    padding: 1.25rem 1rem;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(6, 182, 212, 0.12);
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.dense,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: block;
    }

    .hero {
        height: 560px;
    }

    .hero-slide::after {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.78) 58%, rgba(15, 23, 42, 0.1) 100%);
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 4.8rem;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions,
    .hero-search {
        width: 100%;
    }

    .movie-grid,
    .movie-grid.dense,
    .category-grid,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .card-large .poster-wrap {
        height: 19rem;
    }

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