:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111c31;
    --panel-strong: #1e293b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --border: #1e293b;
    --cyan: #06b6d4;
    --cyan-soft: rgba(6, 182, 212, 0.18);
    --blue: #2563eb;
    --yellow: #eab308;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
}

* {
    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.12), transparent 34rem), var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-2deg);
}

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

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

.brand-text small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

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

.primary-nav a,
.mobile-panel a {
    color: var(--muted-strong);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav a {
    padding: 10px 14px;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.mobile-panel a:hover {
    color: white;
    background: rgba(51, 65, 85, 0.88);
}

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

.search-box {
    position: relative;
}

.search-box input {
    width: 260px;
    height: 42px;
    padding: 0 44px 0 42px;
    color: white;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 13px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
    background: rgba(15, 23, 42, 0.98);
}

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

.search-submit {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 30px;
    min-width: 30px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: rgba(51, 65, 85, 0.78);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 0 18px;
}

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

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

.mobile-panel a {
    padding: 12px 14px;
}

.mobile-panel .search-box {
    margin-top: 12px;
}

.mobile-panel .search-box input {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 520px;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(0deg, var(--bg), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(680px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    padding: 60px 0 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero p {
    color: var(--muted-strong);
    font-size: 18px;
    max-width: 640px;
    margin: 0 0 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
    color: white;
    background: rgba(30, 41, 59, 0.74);
    border-color: rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    left: max(16px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

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

.section {
    padding: 46px 0;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.section-kicker::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.more-link {
    color: #67e8f9;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
}

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

.movie-card a {
    display: block;
    height: 100%;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
    transform: translateY(-6px) scale(1.018);
    border-color: rgba(6, 182, 212, 0.78);
    box-shadow: 0 24px 55px rgba(6, 182, 212, 0.14);
}

.poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0f172a;
}

.movie-card.is-wide .poster,
.movie-grid.is-large .poster {
    aspect-ratio: 16 / 9;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18), transparent);
}

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: #111827;
    background: var(--yellow);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--cyan);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 164px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -36px;
    bottom: -46px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.26), transparent 70%);
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.72);
    box-shadow: 0 24px 50px rgba(6, 182, 212, 0.11);
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.category-tile strong {
    position: relative;
    z-index: 1;
    color: #67e8f9;
    margin-top: 18px;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rank-link {
    display: grid;
    grid-template-columns: auto 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.rank-link:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.6);
}

.rank-no {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #0f172a;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-radius: 12px;
    font-weight: 900;
}

.rank-link img {
    width: 92px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-link h3,
.rank-link h2 {
    margin: 0 0 5px;
    font-size: 16px;
}

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

.page-hero {
    padding: 58px 0 28px;
    background: radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.18), transparent 32rem);
}

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

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

.filter-panel {
    position: sticky;
    top: 76px;
    z-index: 30;
    padding: 16px 0;
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    backdrop-filter: blur(16px);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px auto;
    gap: 12px;
}

.filter-form input,
.filter-form select {
    height: 44px;
    color: white;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 13px;
    padding: 0 14px;
    outline: none;
}

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

.empty-note {
    display: none;
    padding: 24px;
    color: var(--muted-strong);
    text-align: center;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
}

.empty-note.is-active {
    display: block;
}

.detail-hero {
    padding: 42px 0;
    background: radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.16), transparent 28rem);
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

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

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-lead {
    color: var(--muted-strong);
    font-size: 18px;
    margin: 0 0 22px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
}

.tag {
    padding: 7px 11px;
    color: #bae6fd;
    background: rgba(6, 182, 212, 0.13);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    font-size: 13px;
}

.player-section {
    padding: 28px 0 42px;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.28));
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.36);
    font-size: 32px;
}

.player-cover strong {
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 20px;
}

.text-panel {
    padding: 24px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
}

.text-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.text-panel p {
    margin: 0;
    color: var(--muted-strong);
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.8fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 14px;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--muted);
    font-size: 13px;
}

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

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

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

@media (max-width: 860px) {
    .header-search {
        display: none;
    }

    .hero {
        height: 68vh;
    }

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

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

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

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

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

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero {
        min-height: 560px;
        height: auto;
    }

    .hero-content {
        padding-top: 92px;
        padding-bottom: 96px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 12px;
    }

    .movie-grid,
    .movie-grid.is-large,
    .category-grid,
    .rank-panel {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 14px;
    }

    .rank-link {
        grid-template-columns: auto 1fr;
    }

    .rank-link img {
        display: none;
    }

    .filter-panel {
        position: static;
    }

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

    .detail-lead {
        font-size: 16px;
    }

    .play-circle {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }
}
