:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #0f172a;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(2, 8, 23, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 34rem),
        radial-gradient(circle at 92% 18%, rgba(59, 130, 246, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.28);
    transform: translateZ(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.04);
    box-shadow: 0 0 42px rgba(34, 211, 238, 0.44);
}

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

.brand-text strong,
.footer-brand {
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 500;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--soft);
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.74);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 19px;
    height: 2px;
    background: var(--soft);
    border-radius: 999px;
}

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

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

.main-shell {
    padding: 104px 0 76px;
}

.page-shell {
    padding: 112px 0 76px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 410px;
    align-items: end;
    gap: 34px;
    padding: 76px 64px 64px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(15, 23, 42, 0.34) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 48%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow,
.section-eyebrow,
.detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(8, 47, 73, 0.26);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 24px 0 18px;
    font-size: clamp(2.65rem, 6vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff, #7dd3fc 50%, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 690px;
    color: #dbeafe;
    font-size: 1.12rem;
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
    padding: 12px 18px;
    color: var(--soft);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.56);
}

.btn-ghost:hover {
    color: var(--cyan);
    background: rgba(15, 23, 42, 0.86);
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    z-index: 2;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
}

.hero-panel h2 {
    margin: 18px 0 8px;
    font-size: 1.45rem;
}

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

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.22);
    border: 1px solid rgba(34, 211, 238, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    left: 64px;
    right: 64px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-dots {
    display: flex;
    gap: 9px;
    pointer-events: auto;
}

.hero-dot {
    width: 32px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.36);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-arrows {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
}

.search-band {
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.search-band input,
.local-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.78);
}

.search-band input:focus,
.local-search input:focus {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.section {
    margin-top: 76px;
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
    margin: 12px 0 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.section-title p,
.page-title p,
.detail-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

.movie-poster img,
.rank-poster img,
.small-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.9);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-info {
    padding: 18px;
}

.movie-info h3,
.rank-content h3 {
    margin: 12px 0 8px;
    font-size: 1.18rem;
    line-height: 1.32;
}

.movie-info h3 a:hover,
.rank-content h3 a:hover,
.text-link:hover {
    color: var(--cyan);
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 0.75rem;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.62)),
        var(--cat-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

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

.category-card h2 {
    margin: 0 0 12px;
    font-size: 1.65rem;
}

.category-card p {
    margin: 0 0 24px;
    color: var(--soft);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 124px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(15, 23, 42, 0.86);
}

.rank-poster {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.75);
}

.rank-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(125, 211, 252, 0.86);
}

.text-link {
    padding: 10px 14px;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.26);
    background: rgba(8, 47, 73, 0.24);
}

.page-title {
    margin-bottom: 34px;
}

.local-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.64);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.74);
    cursor: pointer;
}

.filter-row button.is-active,
.filter-row button:hover {
    color: white;
    border-color: rgba(34, 211, 238, 0.42);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.42), rgba(59, 130, 246, 0.34));
}

.empty-state {
    display: none;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.55);
}

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

.detail-shell {
    padding: 96px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.76)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.detail-title h1 {
    margin-top: 16px;
}

.detail-title p {
    font-size: 1.08rem;
}

.player-section,
.content-section,
.related-section {
    margin-top: 46px;
}

.block-title {
    margin: 0 0 18px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.12));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 22px 60px rgba(34, 211, 238, 0.36);
}

.article-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.article-card p {
    margin: 0 0 22px;
    color: var(--soft);
}

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

.small-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    overflow: hidden;
}

.small-card img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

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

.small-card strong {
    line-height: 1.3;
}

.small-card em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.94));
}

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

.footer-inner p {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
    color: var(--soft);
}

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .hero-panel {
        display: none;
    }

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

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

    .mobile-toggle {
        display: flex;
    }

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

    .main-shell,
    .page-shell,
    .detail-shell {
        width: min(100% - 24px, 1240px);
    }

    .hero-carousel {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 74px 24px 78px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
    }

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

    .section-header,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .movie-grid,
    .movie-grid.three,
    .category-grid,
    .small-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .rank-card .text-link {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1240px);
    }

    .brand-text em {
        display: none;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .movie-grid,
    .movie-grid.three,
    .category-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-number {
        position: absolute;
        top: 12px;
        left: 12px;
        font-size: 1.45rem;
    }

    .small-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .detail-hero {
        padding: 22px;
        border-radius: 26px;
    }

    .play-overlay span {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
}
