:root {
    --color-dark: #0a0e1a;
    --color-dark-soft: #111827;
    --color-panel: rgba(15, 23, 42, 0.72);
    --color-panel-strong: rgba(15, 23, 42, 0.92);
    --color-primary: #0ea5e9;
    --color-primary-strong: #0284c7;
    --color-primary-light: #38bdf8;
    --color-text: #ffffff;
    --color-muted: #cbd5e1;
    --color-soft: #94a3b8;
    --color-line: rgba(12, 74, 110, 0.44);
    --shadow-glow: 0 0 22px rgba(56, 189, 248, 0.32);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 32rem),
        linear-gradient(180deg, #0a0e1a 0%, #0b1020 45%, #0a0e1a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.92);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.36);
    color: var(--color-primary-light);
    box-shadow: var(--shadow-glow);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: var(--color-soft);
    font-size: 0.75rem;
}

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

.nav-link {
    color: var(--color-muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current {
    color: var(--color-primary-light);
}

.header-search,
.mobile-search,
.page-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.page-search-form input {
    width: 230px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    outline: none;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.page-search-form input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.header-search button,
.mobile-search button,
.page-search-form button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary-strong);
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.page-search-form button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
    padding: 9px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--color-line);
    background: rgba(10, 14, 26, 0.98);
}

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

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

.mobile-panel nav a {
    border: 1px solid var(--color-line);
    border-radius: 12px;
    color: var(--color-muted);
    background: rgba(15, 23, 42, 0.52);
    padding: 11px 12px;
}

.home-main,
.page-main,
.detail-main {
    min-height: 100vh;
}

.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 560px;
    overflow: hidden;
    background: #050914;
}

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

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

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--color-dark) 0%, rgba(10, 14, 26, 0.78) 46%, rgba(10, 14, 26, 0.32) 100%),
        linear-gradient(90deg, rgba(10, 14, 26, 0.92) 0%, rgba(10, 14, 26, 0.46) 52%, rgba(10, 14, 26, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 96px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    color: var(--color-primary-light);
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(2.25rem, 6vw, 5.25rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: var(--color-muted);
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-badges span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    padding: 8px 12px;
    font-size: 0.92rem;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--color-primary-strong);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.3);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(15, 23, 42, 0.58);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(10, 14, 26, 0.56);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 2rem;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 38px;
    left: 0;
    z-index: 6;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.72);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--color-primary-light);
}

.section-block {
    padding: 58px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-soft);
    line-height: 1.7;
}

.section-heading a {
    color: var(--color-primary-light);
    font-weight: 800;
}

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

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

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

.movie-card,
.featured-card,
.category-card,
.ranking-row,
.detail-panel {
    border: 1px solid var(--color-line);
    background: var(--color-panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(56, 189, 248, 0.54);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .poster-wrap img,
.featured-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.poster-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.9);
    padding: 9px 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 2.8em;
    overflow: hidden;
    color: #ffffff;
    font-size: 1.02rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body em,
.featured-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-soft);
    font-style: normal;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    color: #7dd3fc;
    font-size: 0.85rem;
}

.featured-list {
    display: grid;
    gap: 22px;
}

.featured-card {
    display: grid;
    grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
    border-color: rgba(56, 189, 248, 0.54);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.featured-poster {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.featured-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.86);
    box-shadow: var(--shadow-glow);
    transform: translate(-50%, -50%);
}

.featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 34px;
}

.featured-copy strong {
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.2;
}

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

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

.category-card {
    display: grid;
    gap: 14px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    border-color: rgba(56, 189, 248, 0.54);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-preview img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card strong {
    font-size: 1.25rem;
}

.category-card em {
    color: var(--color-soft);
    font-style: normal;
    line-height: 1.7;
}

.category-card span:last-child {
    color: var(--color-primary-light);
    font-weight: 800;
}

.page-hero {
    position: relative;
    padding: 150px 0 74px;
    background:
        radial-gradient(circle at 18% 15%, rgba(14, 165, 233, 0.25), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(10, 14, 26, 0.96));
    border-bottom: 1px solid var(--color-line);
}

.page-hero-small {
    padding-bottom: 58px;
}

.page-hero h1 {
    max-width: 980px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--color-soft);
}

.breadcrumb a {
    color: var(--color-primary-light);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 60px 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-radius: var(--radius-md);
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    border-color: rgba(56, 189, 248, 0.54);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-weight: 900;
}

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

.rank-copy {
    display: grid;
    gap: 6px;
}

.rank-copy strong {
    font-size: 1.1rem;
}

.rank-copy em,
.rank-copy span {
    color: var(--color-soft);
    font-style: normal;
    line-height: 1.6;
}

.detail-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding-top: 120px;
    background: #050914;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.player-section {
    padding: 56px 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(10, 14, 26, 0.18), rgba(10, 14, 26, 0.5));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: clamp(72px, 10vw, 110px);
    height: clamp(72px, 10vw, 110px);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.88);
    box-shadow: var(--shadow-glow);
    font-size: clamp(2rem, 5vw, 3.6rem);
    padding-left: 0.15em;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 26px;
    padding-bottom: 20px;
}

.detail-panel {
    border-radius: var(--radius-xl);
    padding: 28px;
}

.detail-panel h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.detail-panel h2:not(:first-child) {
    margin-top: 28px;
}

.detail-panel p {
    color: var(--color-muted);
    line-height: 1.95;
}

.detail-meta-panel dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.detail-meta-panel dt {
    color: var(--color-soft);
}

.detail-meta-panel dd {
    margin: 0;
    color: #ffffff;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.search-status {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.page-search-form {
    margin-top: 26px;
    max-width: 720px;
}

.page-search-form input {
    flex: 1;
    width: auto;
    min-height: 52px;
    padding: 0 18px;
}

.page-search-form button {
    min-height: 52px;
    padding: 0 24px;
}

.sitemap-page {
    padding: 58px 0;
}

.sitemap-group {
    margin-bottom: 34px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-panel);
    padding: 24px;
}

.sitemap-group h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
}

.sitemap-group h2 a {
    color: var(--color-primary-light);
}

.sitemap-group div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 18px;
}

.sitemap-group a {
    color: var(--color-muted);
    line-height: 1.6;
}

.sitemap-group a:hover {
    color: var(--color-primary-light);
}

.site-footer {
    border-top: 1px solid var(--color-line);
    background: rgba(5, 9, 20, 0.9);
    padding: 52px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.8fr;
    gap: 36px;
}

.site-footer p,
.site-footer a {
    color: var(--color-soft);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 6px 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    color: #64748b;
    font-size: 0.92rem;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
    }

    .header-search input {
        width: 180px;
    }

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

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

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

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

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

    .hero-slider {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content {
        padding-bottom: 84px;
    }

    .hero-control {
        display: none;
    }

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

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

    .featured-card,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        gap: 28px;
    }

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

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

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

    .header-inner {
        height: 68px;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .hero-slider {
        height: 78vh;
        min-height: 560px;
    }

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

    .hero-actions,
    .detail-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .section-block {
        padding: 40px 0;
    }

    .section-heading {
        display: grid;
    }

    .movie-grid,
    .medium-grid,
    .compact-grid,
    .category-movie-grid,
    .category-grid,
    .category-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .card-body {
        padding: 13px;
    }

    .card-body em {
        display: none;
    }

    .featured-copy {
        padding: 22px;
    }

    .page-hero {
        padding: 120px 0 48px;
    }

    .detail-hero {
        padding-top: 100px;
    }

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

    .ranking-row {
        grid-template-columns: 46px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-row img {
        width: 64px;
        height: 88px;
    }

    .rank-copy em {
        display: none;
    }

    .sitemap-group div {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}
