:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #60a5fa;
    --red: #fb7185;
    --amber: #fbbf24;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 4%, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.15), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #020617 40%, #000 100%);
    min-height: 100vh;
}

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

img {
    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;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #001018;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.34);
}

.logo-text {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--soft);
    font-weight: 650;
}

.primary-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover {
    color: var(--cyan);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: var(--soft);
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.hero {
    position: relative;
    height: min(82vh, 780px);
    min-height: 570px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 0.75s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.68) 36%, rgba(2, 6, 23, 0.12) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.06) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 82px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--soft);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.meta-row,
.tag-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.tag-pill {
    color: var(--cyan);
    background: rgba(8, 145, 178, 0.18);
    border-color: rgba(34, 211, 238, 0.28);
}

.action-row {
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--cyan-deep), #2563eb);
    box-shadow: 0 18px 45px rgba(8, 145, 178, 0.32);
}

.btn-secondary {
    color: var(--soft);
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.24);
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 76px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(15, 23, 42, 0.56);
    color: white;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
}

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

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: var(--cyan);
    border-color: var(--cyan);
}

.section {
    padding: 70px 0;
}

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

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading p,
.lead {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.filter-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.45));
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.movie-card {
    overflow: hidden;
    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.45);
    box-shadow: var(--shadow);
}

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

.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);
}

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #001018;
    background: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    min-height: 44px;
    margin: 0 0 9px;
    color: white;
    font-size: 16px;
    line-height: 1.35;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    padding: 22px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:before {
    content: "";
    position: absolute;
    inset: -30% auto auto 35%;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 64%);
}

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

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    position: relative;
    color: var(--muted);
    line-height: 1.72;
    margin: 0 0 18px;
}

.category-card span {
    position: relative;
    color: var(--cyan);
    font-weight: 800;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
    gap: 26px;
    align-items: start;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 52px 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.40);
}

.rank-num {
    color: var(--amber);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-card img {
    width: 74px;
    height: 98px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.rank-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    color: var(--text);
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 13px 15px;
    outline: none;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    padding: 28px 0 12px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: white;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.20), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-shell.is-ready .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 42px rgba(34, 211, 238, 0.45);
    font-size: 28px;
    padding-left: 4px;
}

.info-panel {
    padding: 24px;
    margin-top: 24px;
}

.info-panel:first-child {
    margin-top: 0;
}

.info-panel h1,
.info-panel h2,
.info-panel h3 {
    margin: 0 0 14px;
}

.info-panel p {
    color: var(--soft);
    line-height: 1.9;
    margin: 0 0 15px;
}

.detail-cover {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.8);
}

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

.side-link {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.34);
}

.side-link img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.side-link strong {
    display: block;
    margin-bottom: 5px;
}

.side-link span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(0, 0, 0, 0.74));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: var(--cyan);
}

.footer-inner p,
.footer-inner a {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px 0 28px;
    color: #64748b;
    font-size: 14px;
}

.empty-state {
    display: none;
    color: var(--muted);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .primary-nav {
        display: none;
    }

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

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

    .logo {
        font-size: 20px;
    }

    .hero {
        min-height: 620px;
        height: 88vh;
    }

    .hero-content {
        padding-bottom: 112px;
    }

    .hero-controls {
        left: 16px;
        right: auto;
        bottom: 36px;
    }

    .section {
        padding: 46px 0;
    }

    .section-heading {
        display: block;
    }

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

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

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

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

    .rank-card img {
        width: 64px;
        height: 88px;
    }

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