
:root {
    --black: #05020a;
    --deep: #0b0312;
    --grape-950: #27033f;
    --grape-900: #3b0764;
    --grape-800: #581c87;
    --grape-700: #6d28d9;
    --grape-500: #a855f7;
    --grape-300: #d8b4fe;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --text: #ffffff;
    --muted: #c4b5fd;
    --line: rgba(216, 180, 254, 0.18);
    --card: rgba(39, 3, 63, 0.78);
    --shadow-purple: 0 0 30px rgba(168, 85, 247, 0.32);
    --shadow-gold: 0 0 28px rgba(251, 191, 36, 0.22);
}

* {
    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(168, 85, 247, 0.20), transparent 32rem),
        linear-gradient(180deg, #000000 0%, var(--grape-950) 48%, #000000 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 2, 10, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #240235;
    background: linear-gradient(135deg, var(--gold-400), #fff3b0);
    border-radius: 14px;
    box-shadow: var(--shadow-gold);
    font-size: 14px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.main-nav a {
    padding: 26px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold-400);
    border-bottom-color: var(--gold-400);
}

.search-box,
.mobile-search {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.search-box input,
.mobile-search input,
.filter-input {
    width: 260px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    outline: none;
    border-radius: 14px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(59, 7, 100, 0.72);
}

.search-box input::placeholder,
.mobile-search input::placeholder,
.filter-input::placeholder {
    color: rgba(216, 180, 254, 0.72);
}

.search-box button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.quick-card a {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--grape-700), var(--grape-800));
    font-weight: 800;
    box-shadow: var(--shadow-purple);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: rgba(88, 28, 135, 0.85);
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 20px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a {
    padding: 12px;
    color: var(--muted);
    background: rgba(88, 28, 135, 0.58);
    border-radius: 12px;
}

.hero {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 650ms ease, visibility 650ms ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.25)),
        linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.02) 52%, rgba(59, 7, 100, 0.42) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 78vh;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 24px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 50px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--gold-400);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.hero p,
.page-hero p {
    margin: 0;
    color: var(--grape-300);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--grape-300);
    background: rgba(88, 28, 135, 0.62);
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 999px;
    font-size: 13px;
}

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

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(88, 28, 135, 0.35);
    box-shadow: 0 32px 85px rgba(0, 0, 0, 0.52), var(--shadow-purple);
    transform: rotate(2deg);
}

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

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--gold-400);
    box-shadow: var(--shadow-gold);
}

.section-shell,
.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 62px 24px;
}

.quick-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 34px;
    padding-bottom: 26px;
}

.quick-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(59, 7, 100, 0.90), rgba(20, 5, 31, 0.92));
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.25);
}

.quick-card span,
.quick-card strong,
.quick-card a {
    display: block;
}

.quick-card span {
    color: var(--gold-400);
    font-weight: 800;
}

.quick-card strong {
    margin: 10px 0 18px;
    font-size: 24px;
    line-height: 1.35;
}

.quick-card a {
    width: fit-content;
    padding: 10px 16px;
    font-size: 14px;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.section-head a {
    color: var(--gold-400);
    font-weight: 800;
}

.section-head.plain {
    align-items: center;
}

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

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

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

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

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(59, 7, 100, 0.90), rgba(10, 2, 18, 0.96));
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-link:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 30px 60px rgba(88, 28, 135, 0.38);
}

.poster-wrap {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.30);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 420ms ease;
}

.card-link:hover .poster-wrap img {
    transform: scale(1.08);
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.86);
    box-shadow: var(--shadow-purple);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 220ms ease;
}

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

.score-mark,
.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #351404;
    background: var(--gold-400);
    font-weight: 900;
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    right: auto;
    color: #ffffff;
    background: rgba(109, 40, 217, 0.88);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

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

.card-meta {
    margin-bottom: 12px;
}

.card-meta span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 12px;
}

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

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

.category-tile {
    min-height: 180px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(216, 180, 254, 0.17);
    background:
        radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.18), transparent 12rem),
        linear-gradient(145deg, rgba(88, 28, 135, 0.90), rgba(10, 2, 18, 0.96));
    transition: transform 220ms ease, border-color 220ms ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.45);
}

.category-tile span,
.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile span {
    color: var(--gold-400);
    font-weight: 900;
    font-size: 22px;
}

.category-tile strong {
    margin: 12px 0;
    font-size: 28px;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 24px;
    background:
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 30rem),
        linear-gradient(135deg, rgba(88, 28, 135, 0.96), rgba(5, 2, 10, 0.98));
    border-bottom: 1px solid var(--line);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero.slim h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.filter-panel {
    padding-top: 30px;
    padding-bottom: 20px;
}

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

.filter-row .filter-input {
    flex: 1 1 280px;
    width: auto;
}

.filter-pill {
    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--muted);
    background: rgba(88, 28, 135, 0.50);
    cursor: pointer;
    font-weight: 800;
}

.filter-pill.active,
.filter-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--grape-700), var(--grape-800));
}

.result-count {
    color: var(--muted);
    margin: 14px 0 0;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: auto 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(59, 7, 100, 0.74);
    border: 1px solid rgba(216, 180, 254, 0.14);
    border-radius: 16px;
}

.compact-card img {
    width: 70px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

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

.compact-card strong {
    margin-bottom: 6px;
}

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

.list-rank {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #2a0a02;
    background: var(--gold-400);
    font-weight: 900;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: rgba(39, 3, 63, 0.78);
    border: 1px solid rgba(216, 180, 254, 0.14);
    border-radius: 20px;
}

.rank-num {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--gold-400), #fff3b0);
    color: #2d1300;
    font-weight: 900;
}

.rank-cover img {
    width: 150px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info a {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

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

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

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

.player-card,
.detail-card,
.side-box {
    border: 1px solid rgba(216, 180, 254, 0.16);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(39, 3, 63, 0.88), rgba(5, 2, 10, 0.98));
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
}

.player-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.92);
    box-shadow: var(--shadow-purple);
    font-size: 32px;
    padding-left: 5px;
}

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

.detail-card {
    margin-top: 22px;
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 48px);
}

.lead-text,
.detail-card p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 17px;
}

.detail-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-meta,
.detail-tags {
    margin-bottom: 18px;
}

.detail-side {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.side-poster {
    display: block;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38);
}

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

.side-box {
    padding: 20px;
}

.side-box h2 {
    margin: 0 0 16px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: rgba(5, 2, 10, 0.82);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p,
.footer-links a {
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

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

.footer-brand {
    margin-bottom: 14px;
}

.is-hidden-by-filter {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 680px;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .detail-side {
        position: static;
    }

    .side-poster {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .mobile-panel {
        padding: 0 16px 16px;
    }

    .mobile-search {
        flex-direction: column;
    }

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

    .hero,
    .hero-content {
        min-height: 620px;
        height: 72vh;
    }

    .hero-content {
        padding: 46px 18px 76px;
    }

    .quick-panel,
    .two-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .section-shell,
    .detail-layout {
        padding: 40px 16px;
    }

    .page-hero {
        padding: 72px 16px;
    }

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

    .rank-row {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-cover img {
        width: 96px;
    }

    .rank-info p {
        display: none;
    }

    .detail-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .movie-grid.three,
    .movie-grid.four {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        text-align: center;
    }
}
