* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0f1419;
    color: #e5e7eb;
    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%;
}

button,
input,
select {
    font: inherit;
}

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

.text-gradient,
.brand-text {
    background: linear-gradient(135deg, #f8fafc, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(15, 20, 25, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    border: 1px solid rgba(226, 232, 240, 0.28);
    color: #f8fafc;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.25);
}

.brand-text {
    font-size: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #cbd5e1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #e2e8f0;
    background: transparent;
    padding: 9px 12px;
}

.header-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #f8fafc;
    font-size: 26px;
    cursor: pointer;
}

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

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

.hero-carousel {
    position: relative;
    height: 74vh;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 2.8s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 32%, rgba(226, 232, 240, 0.20), transparent 34%),
        linear-gradient(90deg, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.72) 38%, rgba(15, 20, 25, 0.20) 100%),
        linear-gradient(0deg, #0f1419 0%, rgba(15, 20, 25, 0.15) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 82px;
    max-width: 820px;
    margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.eyebrow {
    margin: 0 0 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 1.02;
    color: #ffffff;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    max-width: 660px;
    margin: 24px 0 0;
    color: #dbe3ee;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-tags a,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(15, 23, 42, 0.60);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.hero-tags span,
.detail-tags a {
    padding: 7px 12px;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.primary-btn {
    color: #0f172a;
    background: #f8fafc;
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(226, 232, 240, 0.16);
}

.ghost-btn,
.section-more {
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.rank-row:hover,
.category-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.24);
}

.primary-btn.full {
    width: 100%;
}

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

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

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

.quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: -38px;
    position: relative;
    z-index: 4;
}

.quick-strip a,
.category-tile,
.category-overview-card,
.detail-card,
.side-card,
.rank-panel,
.category-panel,
.player-card,
.search-panel,
.filter-bar {
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(30, 41, 59, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
}

.quick-strip a {
    border-radius: 18px;
    padding: 22px;
    color: #f8fafc;
    text-align: center;
    font-weight: 800;
}

.content-section,
.split-section {
    padding: 78px 0 0;
}

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

.section-title-row h2,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    color: #ffffff;
}

.section-title-row h2 {
    font-size: clamp(28px, 3.6vw, 42px);
}

.section-title-row.slim h2 {
    font-size: 28px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.movie-card img,
.category-overview-card img,
.compact-card img,
.rank-row img,
.cover-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card img {
    transition: transform 0.6s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 62%);
}

.meta-pill {
    position: absolute;
    padding: 5px 9px;
    font-size: 12px;
}

.top-left {
    top: 12px;
    left: 12px;
}

.bottom-right {
    right: 12px;
    bottom: 12px;
}

.movie-body {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.movie-body strong {
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body span {
    color: #94a3b8;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-body small,
.rank-info small,
.compact-card small {
    color: #64748b;
}

.horizontal-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.horizontal-rail .movie-card {
    width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.split-section {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 28px;
}

.rank-panel,
.category-panel {
    border-radius: 26px;
    padding: 26px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(148, 163, 184, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.rank-number {
    color: #f8fafc;
    font-weight: 900;
    font-size: 20px;
    text-align: center;
}

.rank-row img {
    width: 76px;
    height: 52px;
    border-radius: 12px;
}

.rank-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: #f8fafc;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-views {
    color: #94a3b8;
    font-size: 13px;
}

.full-rank-list .rank-row {
    grid-template-columns: 64px 96px minmax(0, 1fr) auto;
}

.full-rank-list .rank-row img {
    width: 96px;
    height: 64px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    gap: 16px;
}

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

.category-tile {
    min-height: 132px;
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.15), transparent 35%),
        linear-gradient(135deg, rgba(51,65,85,0.8), rgba(15,23,42,0.92));
}

.category-tile span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small {
    color: #94a3b8;
    line-height: 1.5;
}

.page-main {
    padding-top: 96px;
}

.page-hero {
    min-height: 300px;
    border-radius: 30px;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 16%, rgba(226,232,240,0.18), transparent 30%),
        linear-gradient(135deg, rgba(30,41,59,0.72), rgba(15,23,42,0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.small-hero {
    min-height: 240px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

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

.category-overview-card {
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    min-height: 246px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 130px;
    overflow: hidden;
}

.category-copy {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.category-copy strong {
    color: #ffffff;
    font-size: 24px;
}

.category-copy small {
    color: #94a3b8;
    line-height: 1.6;
}

.filter-bar,
.search-panel {
    border-radius: 22px;
    padding: 18px;
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.filter-bar {
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
}

.search-panel {
    grid-template-columns: minmax(240px, 1fr) 140px;
}

.filter-bar input,
.filter-bar select,
.search-panel input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 999px;
    outline: 0;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.65);
    padding: 13px 16px;
}

.empty-state {
    display: none;
    margin: 18px 0;
    padding: 22px;
    text-align: center;
    color: #94a3b8;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.36);
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.player-card,
.detail-card,
.side-card {
    border-radius: 26px;
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-start {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0,0,0,0.22), rgba(0,0,0,0.58));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-start span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #0f172a;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.video-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.detail-card h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
}

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

.detail-meta span,
.detail-field span {
    color: #cbd5e1;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(15, 23, 42, 0.60);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.detail-one-line {
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.75;
}

.detail-field {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-field strong,
.article-copy h2,
.side-card h2 {
    color: #ffffff;
}

.article-copy {
    margin-top: 28px;
}

.article-copy h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.article-copy p {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    position: relative;
}

.detail-side .side-card {
    position: sticky;
    top: 96px;
}

.cover-side img {
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.46);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.compact-card img {
    height: 70px;
    border-radius: 12px;
}

.compact-card span {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.compact-card strong {
    overflow: hidden;
    color: #f8fafc;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-footer {
    margin-top: 90px;
    padding: 56px 0 30px;
    background: #0b1016;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 42px;
}

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

.site-footer p,
.site-footer a,
.site-footer span {
    color: #94a3b8;
    line-height: 1.7;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 16px;
}

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

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .detail-side .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .section-container {
        width: min(100% - 22px, 1280px);
    }

    .header-inner {
        height: 66px;
    }

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

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

    .hero-content {
        padding-top: 68px;
    }

    .quick-strip,
    .featured-grid,
    .catalog-grid,
    .more-grid,
    .category-grid,
    .category-overview-grid,
    .filter-bar,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .quick-strip {
        margin-top: 18px;
    }

    .page-main {
        padding-top: 82px;
    }

    .page-hero {
        padding: 30px;
        border-radius: 22px;
    }

    .section-title-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row,
    .full-rank-list .rank-row {
        grid-template-columns: 46px 78px minmax(0, 1fr);
    }

    .rank-views {
        display: none;
    }

    .detail-card,
    .side-card {
        padding: 20px;
    }
}
