@charset "UTF-8";

:root {
    --stellar-dark: #0a0e27;
    --stellar-deep: #141b3d;
    --stellar-mid: #1e2847;
    --stellar-light: #2a3857;
    --stellar-glow: #4a90e2;
    --stellar-cyan: #38bdf8;
    --stellar-text: #ffffff;
    --stellar-muted: #d1d5db;
    --stellar-soft: #9ca3af;
    --shadow-glow: 0 0 20px rgba(74, 144, 226, 0.3);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(74, 144, 226, 0.18), transparent 36rem),
        linear-gradient(180deg, var(--stellar-dark), #080b1f 48%, var(--stellar-dark));
    color: var(--stellar-text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--stellar-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--stellar-glow);
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 39, 0.94);
    border-bottom: 1px solid rgba(42, 56, 87, 0.55);
    backdrop-filter: blur(14px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--stellar-glow), var(--stellar-cyan));
    box-shadow: var(--shadow-glow);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--stellar-muted);
    font-size: 14px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--stellar-cyan);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(74, 144, 226, 0.45);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(30, 40, 71, 0.8);
}

.mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 0 0 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    color: var(--stellar-muted);
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(30, 40, 71, 0.8);
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--stellar-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay,
.category-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 14, 39, 0.96), rgba(10, 14, 39, 0.62), rgba(10, 14, 39, 0.16)),
        linear-gradient(0deg, var(--stellar-dark), rgba(10, 14, 39, 0.08) 55%, rgba(10, 14, 39, 0.22));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - var(--max-width)) / 2));
    right: 24px;
    bottom: 74px;
    max-width: 760px;
}

.hero-meta,
.detail-meta,
.movie-badges,
.tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.movie-badges span,
.tag-pill,
.intro-label,
.category-hero-content span,
.sub-hero span,
.category-overview-head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.22);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 600;
}

.hero-content h1 {
    margin: 18px 0 16px;
    max-width: 780px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--stellar-muted);
    font-size: 18px;
}

.hero-actions,
.category-hero-content,
.section-title-row,
.filter-main,
.filter-meta,
.category-overview-head,
.site-footer-inner,
.detail-layout {
    display: flex;
    gap: 16px;
}

.primary-button,
.secondary-button,
.section-more,
.filter-meta button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--stellar-glow), var(--stellar-cyan));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.secondary-button,
.section-more,
.filter-meta button {
    background: rgba(30, 40, 71, 0.74);
    border-color: rgba(74, 144, 226, 0.34);
    color: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.filter-meta button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--stellar-glow);
}

.section-wrap {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 72px 0;
}

.section-deep {
    position: relative;
}

.section-title-row {
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title-row h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.section-title-row p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--stellar-soft);
}

.section-kicker {
    color: var(--stellar-cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 22px;
    padding-top: 44px;
    padding-bottom: 44px;
}

.intro-card,
.hot-entry-card,
.filter-panel,
.detail-card,
.side-card,
.category-overview-block {
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(30, 40, 71, 0.94), rgba(20, 27, 61, 0.86));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.intro-card,
.hot-entry-card {
    padding: 28px;
}

.intro-card h2 {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
}

.intro-card p,
.hot-entry-card strong,
.hot-entry-card em,
.detail-one-line,
.prose-card p,
.side-card dd,
.category-overview-head p {
    color: var(--stellar-muted);
}

.hot-entry-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.hot-entry-card span {
    color: var(--stellar-cyan);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hot-entry-card strong {
    font-size: 22px;
    line-height: 1.35;
}

.hot-entry-card em {
    font-style: normal;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--stellar-mid);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.movie-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stellar-mid), var(--stellar-light));
}

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

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

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

.movie-poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.28) 54%, rgba(0, 0, 0, 0.04));
}

.movie-play-icon {
    position: absolute;
    inset: 0;
    width: 62px;
    height: 62px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.9);
    opacity: 0;
    transform: scale(0.84);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play-icon {
    opacity: 1;
    transform: scale(1);
}

.movie-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
}

.movie-badges span {
    min-height: 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12px;
}

.movie-badges span:first-child {
    background: rgba(74, 144, 226, 0.92);
}

.movie-card-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
}

.movie-card-text h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 8px;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-text p {
    margin: 0;
    overflow: hidden;
    color: var(--stellar-muted);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(30, 40, 71, 0.86);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.category-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: var(--stellar-deep);
}

.category-preview-grid img {
    width: 100%;
    aspect-ratio: 1 / 0.78;
    object-fit: cover;
}

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

.category-card-body h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.category-card-body p {
    margin: 0;
    color: var(--stellar-soft);
    font-size: 14px;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 16px;
    background: rgba(30, 40, 71, 0.72);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: rgba(42, 56, 87, 0.9);
}

.ranking-number {
    color: var(--stellar-cyan);
    font-size: 22px;
    font-weight: 900;
}

.ranking-row img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-info {
    color: var(--stellar-soft);
    font-size: 13px;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.filter-main {
    align-items: end;
    flex-wrap: wrap;
}

.filter-main label {
    display: grid;
    gap: 8px;
    min-width: 180px;
    color: var(--stellar-muted);
    font-size: 14px;
    font-weight: 700;
}

.filter-main .search-field {
    flex: 1 1 320px;
}

.filter-main input,
.filter-main select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(74, 144, 226, 0.24);
    border-radius: 12px;
    outline: none;
    background: rgba(10, 14, 39, 0.76);
    color: #ffffff;
}

.filter-main input:focus,
.filter-main select:focus {
    border-color: var(--stellar-cyan);
    box-shadow: var(--shadow-glow);
}

.filter-meta {
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    color: var(--stellar-soft);
    font-size: 14px;
}

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

.sub-hero,
.category-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: end;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stellar-deep), var(--stellar-dark));
}

.sub-hero > div,
.category-hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 92px 0 58px;
}

.sub-hero h1,
.category-hero-content h1 {
    margin: 12px 0;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
}

.sub-hero p,
.category-hero-content p {
    max-width: 760px;
    margin: 0;
    color: var(--stellar-muted);
    font-size: 18px;
}

.category-hero {
    min-height: 500px;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-content {
    flex-direction: column;
    align-items: flex-start;
}

.categories-overview {
    display: grid;
    gap: 34px;
}

.category-overview-block {
    padding: 24px;
}

.category-overview-head {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 10px 0 8px;
    font-size: 32px;
}

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

.breadcrumb a {
    color: #dbeafe;
}

.detail-layout {
    align-items: flex-start;
}

.detail-main {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-side {
    position: sticky;
    top: 90px;
    flex: 0 0 320px;
    display: grid;
    gap: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow-glow);
}

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

.player-overlay-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay-button span {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: rgba(74, 144, 226, 0.92);
    box-shadow: var(--shadow-glow);
    font-size: 30px;
}

.player-overlay-button.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.detail-card,
.side-card {
    margin-top: 22px;
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.12;
}

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

.detail-one-line {
    margin: 0 0 18px;
    font-size: 18px;
}

.tag-list {
    align-items: flex-start;
}

.prose-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.prose-card p {
    margin: 0;
    font-size: 17px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--stellar-mid), var(--stellar-light));
    box-shadow: var(--shadow-glow);
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--stellar-cyan);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

.side-card a {
    color: #dbeafe;
}

.site-footer {
    border-top: 1px solid rgba(42, 56, 87, 0.55);
    background: rgba(7, 10, 28, 0.92);
}

.site-footer-inner {
    width: min(100% - 32px, var(--max-width));
    margin: 0 auto;
    padding: 34px 0;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    margin-bottom: 10px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: var(--stellar-soft);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--stellar-muted);
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 13px;
    }

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

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

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

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-content {
        left: 24px;
        bottom: 72px;
    }

    .home-intro,
    .compact-ranking,
    .detail-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .detail-side {
        position: static;
        grid-row: auto;
        flex-basis: auto;
    }

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

    .ranking-row {
        grid-template-columns: 42px 52px minmax(0, 1fr);
    }

    .ranking-info {
        grid-column: 3 / -1;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        height: 62px;
    }

    .site-logo {
        font-size: 17px;
    }

    .hero-carousel {
        height: 76vh;
        min-height: 540px;
    }

    .hero-content h1,
    .sub-hero h1,
    .category-hero-content h1 {
        font-size: 38px;
    }

    .hero-actions,
    .filter-main,
    .filter-meta,
    .section-title-row,
    .category-overview-head,
    .site-footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .section-wrap {
        padding: 48px 0;
    }

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

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

    .movie-card-text {
        padding: 12px;
    }

    .movie-card-text h3 {
        font-size: 15px;
    }

    .hero-arrow {
        display: none;
    }

    .side-card dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
