:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(59, 130, 246, 0.24);
    --line-strong: rgba(56, 189, 248, 0.5);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --brand: #38bdf8;
    --brand-deep: #2563eb;
    --accent: #22d3ee;
    --gold: #facc15;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% -10%, rgba(37, 99, 235, 0.35), transparent 32rem),
        radial-gradient(circle at 90% 4%, rgba(14, 165, 233, 0.22), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(34, 211, 238, 0.25);
}

.logo-text {
    background: linear-gradient(90deg, #bfdbfe, #67e8f9, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    padding: 10px 13px;
    border-radius: 12px;
    color: #dbeafe;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: min(280px, 25vw);
}

.header-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    padding: 10px 14px 10px 38px;
}

.header-search::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.header-search input::placeholder,
.search-panel input::placeholder {
    color: #94a3b8;
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
    background: rgba(15, 23, 42, 0.94);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: relative;
}

.menu-toggle span::before {
    top: -7px;
}

.menu-toggle span::after {
    top: 5px;
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #dbeafe;
}

.mobile-panel a:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
}

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

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.75) 40%, rgba(2, 6, 23, 0.35) 70%, rgba(2, 6, 23, 0.82) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 42px;
    align-items: center;
    padding: 72px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    font-size: 14px;
}

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

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #ffffff, #93c5fd, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 690px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.48);
    border: 1px solid rgba(96, 165, 250, 0.3);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    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 {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 20px 54px rgba(6, 182, 212, 0.36);
}

.btn-ghost {
    border-color: rgba(147, 197, 253, 0.3);
    background: rgba(15, 23, 42, 0.54);
}

.btn-ghost:hover {
    border-color: rgba(103, 232, 249, 0.62);
    background: rgba(30, 64, 175, 0.48);
}

.hero-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hero-card-body {
    padding: 22px;
}

.hero-card-body strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.hero-card-body p {
    margin: 0;
    color: var(--muted-2);
}

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

.hero-dot {
    width: 38px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #67e8f9;
}

.section {
    padding: 56px 0;
}

.section-sm {
    padding: 36px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted-2);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.2);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 22px 46px rgba(14, 165, 233, 0.18);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(30, 64, 175, 0.75), rgba(2, 6, 23, 0.9));
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(2, 6, 23, 0.88) 100%);
}

.play-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 13px;
}

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

.movie-title {
    margin: 0 0 7px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-title {
    color: #7dd3fc;
}

.movie-desc {
    min-height: 48px;
    margin: 0 0 12px;
    color: #b6c4d8;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #93a4bd;
    font-size: 13px;
}

.meta-pill {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    padding: 2px 8px;
}

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.22), transparent 54%),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.68);
    background:
        radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.28), transparent 54%),
        rgba(30, 64, 175, 0.45);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: #bfdbfe;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.58);
}

.search-panel input,
.search-panel select {
    padding: 12px 14px;
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: 64px 88px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    transition: transform 0.2s ease, border 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.56);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #020617;
    background: linear-gradient(135deg, #facc15, #38bdf8);
    font-weight: 900;
}

.rank-poster {
    width: 72px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.3);
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: var(--muted-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-hero {
    padding: 42px 0 26px;
}

.detail-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

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

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

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

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-lead {
    max-width: 860px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.88)),
        rgba(2, 6, 23, 0.32);
    cursor: pointer;
}

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

.player-button {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #22d3ee);
    box-shadow: 0 22px 58px rgba(34, 211, 238, 0.35);
    font-size: 34px;
}

.content-panel {
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.58);
}

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

.content-panel p {
    margin: 0 0 18px;
    color: #dbeafe;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

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

.site-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(2, 6, 23, 0.62);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 26px;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-weight: 800;
}

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

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

.footer-links a:hover {
    color: var(--accent);
}

.empty-state {
    display: none;
    padding: 28px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    color: var(--muted-2);
    background: rgba(15, 23, 42, 0.58);
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: auto;
    }
}

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

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

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

    .hero,
    .hero-content {
        min-height: 690px;
    }

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

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

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

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

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

    .rank-row {
        grid-template-columns: 44px 72px 1fr;
    }

    .rank-row .btn {
        grid-column: 2 / 4;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .container,
    .mobile-panel,
    .footer-inner,
    .hero-content {
        width: min(100% - 22px, 1240px);
    }

    .logo {
        font-size: 20px;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding: 42px 0 78px;
    }

    .hero-card img {
        height: 190px;
    }

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

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

    .rank-row {
        grid-template-columns: 40px 62px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 13px;
    }

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