:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --dark: #0f172a;
    --accent: #475569;
    --accent-strong: #1f2937;
    --warm: #f59e0b;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.nav-container {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #334155, #0f172a);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    margin-top: 4px;
    font-size: 12px;
}

.nav-search {
    flex: 1;
    max-width: 430px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.86);
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.nav-search input {
    padding: 0 8px 0 14px;
}

.nav-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 15px;
    background: var(--accent-strong);
}

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

.nav-link,
.mobile-link {
    color: #475569;
    border-radius: 999px;
    padding: 9px 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #0f172a;
    background: #f1f5f9;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 4px;
    background: #334155;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.mobile-search input {
    padding-left: 10px;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hero {
    position: relative;
    height: 540px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 82% 24%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.36));
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 48px;
}

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

.hero-pill,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-pill {
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-pill strong {
    color: #fde68a;
}

.hero h1,
.hero h2 {
    margin: 18px 0 8px;
    max-width: 760px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h3 {
    margin: 0 0 16px;
    color: #e2e8f0;
    font-size: clamp(20px, 2.2vw, 28px);
}

.hero p {
    margin: 0;
    max-width: 640px;
    color: #e5e7eb;
    font-size: 17px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
}

.hero-tags span {
    color: #ffffff;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.ghost-light-btn,
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    padding: 0 22px;
    background: linear-gradient(135deg, #475569, #111827);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.25);
}

.ghost-btn,
.ghost-light-btn {
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

.ghost-light-btn {
    border-color: rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light-btn:hover,
.section-action:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    color: #111827;
    font-weight: 800;
    padding: 9px 14px;
    background: #ffffff;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 58px 0;
}

.no-pad-top {
    padding-top: 0;
}

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

.kicker {
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.player-side h2 {
    margin: 0;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

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

.section-head p,
.page-hero p,
.story-card p,
.player-side p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-action {
    color: #111827;
    padding: 0 18px;
    background: #f1f5f9;
}

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

.category-card,
.category-overview-card,
.story-card,
.player-side,
.filter-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.category-card {
    min-height: 180px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-card span,
.category-overview-main span {
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.category-card h3,
.category-overview-main h2 {
    margin: 12px 0 8px;
    font-size: 22px;
}

.category-card p,
.category-overview-main p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    margin-bottom: 26px;
}

.filter-search {
    display: grid;
    gap: 8px;
}

.filter-search label {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.filter-search input {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #f8fafc;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    color: #475569;
    padding: 9px 13px;
    cursor: pointer;
    background: #f1f5f9;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: #1f2937;
}

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

.movie-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.movie-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #e2e8f0;
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
    filter: brightness(0.86);
}

.year-badge,
.rank-badge,
.watch-mask {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 10px;
    right: 10px;
    color: #ffffff;
    padding: 5px 8px;
    background: rgba(15, 23, 42, 0.74);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #111827;
    background: #fde68a;
}

.watch-mask {
    left: 50%;
    bottom: 16px;
    opacity: 0;
    transform: translate(-50%, 10px);
    color: #111827;
    padding: 8px 12px;
    background: #ffffff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .watch-mask {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-strip {
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32%),
        linear-gradient(135deg, #0f172a, #1f2937);
}

.rank-strip .section-head p,
.rank-strip .kicker {
    color: #cbd5e1;
}

.rank-strip .section-action {
    color: #111827;
    background: #ffffff;
}

.page-main {
    padding: 42px 0 70px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: clamp(34px, 5vw, 60px);
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.22), transparent 28%),
        linear-gradient(135deg, #0f172a, #334155);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    max-width: 780px;
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 720px;
    color: #e2e8f0;
    font-size: 17px;
}

.page-hero .kicker {
    color: #fde68a;
}

.inline-actions {
    margin-top: 24px;
}

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

.category-overview-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-overview-main {
    display: block;
    padding: 26px;
}

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

.category-samples a {
    padding: 13px 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
}

.category-samples a:hover {
    color: #0f172a;
    background: #ffffff;
}

.large-search {
    display: flex;
    gap: 12px;
    max-width: 680px;
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.large-search input {
    color: #ffffff;
    padding: 0 18px;
}

.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: #ffffff;
    background: #0f172a;
}

.detail-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76) 54%, rgba(15, 23, 42, 0.46));
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    min-height: 560px;
    padding: 48px 0;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: #1f2937;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

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

.detail-poster span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    height: 44px;
    border-radius: 999px;
    color: #111827;
    font-weight: 800;
    background: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    margin-bottom: 18px;
    font-size: 14px;
}

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

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 62px);
}

.detail-one-line {
    max-width: 780px;
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: 18px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.12);
}

.player-section {
    padding-top: 52px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: stretch;
}

.video-shell {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-soft);
}

.video-player {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.78));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.play-icon::before {
    content: "";
    margin-left: 5px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid #111827;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    color: #cbd5e1;
    font-style: normal;
}

.player-side {
    padding: 26px;
}

.player-side h2 {
    font-size: 28px;
}

.side-stats {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.side-stats span {
    border-radius: 14px;
    padding: 12px 14px;
    color: #334155;
    background: #f1f5f9;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    font-size: 30px;
}

.story-card p {
    color: #334155;
    font-size: 16px;
}

.site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 900;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #475569;
    border-radius: 999px;
    padding: 9px 13px;
    background: #f8fafc;
}

[data-card].is-hidden {
    display: none;
}

.empty-state {
    grid-column: 1 / -1;
    border-radius: 18px;
    padding: 26px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

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

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

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

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .brand {
        min-width: 0;
    }

    .hero {
        height: auto;
        min-height: 700px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 54px 0 78px;
    }

    .hero-poster {
        width: min(280px, 82vw);
    }

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

    .filter-panel,
    .detail-inner,
    .detail-content,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        gap: 28px;
    }

    .detail-poster {
        width: min(280px, 72vw);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .brand-copy small {
        display: none;
    }

    .hero h1,
    .hero h2,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-actions,
    .large-search {
        align-items: stretch;
        flex-direction: column;
    }

    .large-search {
        border-radius: 22px;
    }

    .large-search input {
        min-height: 44px;
    }

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

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

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

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

    .movie-card p {
        min-height: 38px;
        font-size: 12px;
    }

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

    .page-hero,
    .story-card,
    .player-side {
        padding: 24px;
        border-radius: 22px;
    }

    .video-shell,
    .video-player {
        min-height: 260px;
    }

    .detail-hero,
    .detail-inner {
        min-height: auto;
    }
}
