:root {
    color-scheme: light;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --blue-50: #eff6ff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--sky-50), var(--white) 38%, var(--gray-50));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(100%, 1280px);
    height: 4rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    white-space: nowrap;
}

.site-logo-mark,
.footer-logo span {
    display: inline-grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), #2563eb);
    box-shadow: 0 12px 24px rgb(2 132 199 / 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: var(--gray-700);
    font-size: 0.925rem;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--sky-700);
    background: var(--sky-100);
}

.mobile-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.65rem;
    border: 0;
    border-radius: 0.85rem;
    background: var(--gray-100);
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--gray-200);
}

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

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.54), rgb(0 0 0 / 0.08));
}

.hero-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(100%, 46rem);
    color: var(--white);
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    color: var(--white);
    background: var(--sky-600);
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 18px 36px rgb(2 132 199 / 0.24);
}

.hero-copy h1 {
    margin: 1.25rem 0 0.75rem;
    font-size: clamp(2.5rem, 7vw, 4.85rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem, 4vw, 2.75rem);
    line-height: 1.12;
}

.hero-copy p {
    margin: 0 0 1.35rem;
    max-width: 44rem;
    color: rgb(229 231 235 / 0.96);
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: var(--white);
    background: rgb(255 255 255 / 0.14);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

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

.primary-button {
    color: var(--white);
    background: var(--sky-600);
    box-shadow: 0 16px 32px rgb(2 132 199 / 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.secondary-button {
    color: var(--white);
    background: rgb(255 255 255 / 0.18);
    backdrop-filter: blur(8px);
}

.ghost-button {
    color: var(--sky-700);
    background: var(--sky-100);
}

.hero-search {
    display: flex;
    width: min(100%, 38rem);
    margin-top: 1.4rem;
    padding: 0.35rem;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.15);
    backdrop-filter: blur(10px);
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0.85rem 1rem;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgb(255 255 255 / 0.76);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    color: var(--white);
    background: var(--sky-600);
    font-weight: 800;
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgb(255 255 255 / 0.2);
    backdrop-filter: blur(6px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgb(255 255 255 / 0.32);
    transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
    left: 1rem;
}

.hero-control.next {
    right: 1rem;
}

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

.hero-dots button {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 2rem;
    background: var(--white);
}

.main-section,
.page-section {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.section-title::before {
    content: "";
    width: 0.35rem;
    height: 2rem;
    border-radius: 99px;
    background: var(--sky-600);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.movie-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.7));
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 3.3rem;
    height: 3.3rem;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgb(2 132 199 / 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-year {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    color: var(--sky-700);
    background: rgb(255 255 255 / 0.9);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card-body {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.movie-card-title {
    overflow: hidden;
    color: var(--gray-900);
    font-size: 1.05rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-title {
    color: var(--sky-700);
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 3em;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.movie-card-tags span,
.filter-chip,
.breadcrumb span,
.breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-100);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.alt-band {
    background: linear-gradient(90deg, var(--sky-100), var(--blue-50));
}

.category-preview,
.category-grid {
    display: grid;
    gap: 1.5rem;
}

.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 13rem;
    padding: 1.45rem;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    background: rgb(14 165 233 / 0.12);
}

.category-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-xl);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.category-card p {
    position: relative;
    margin: 0 0 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    color: var(--sky-700);
    font-weight: 800;
}

.page-hero {
    background: linear-gradient(135deg, var(--sky-600), #2563eb 58%, #7c3aed);
    color: var(--white);
}

.page-hero-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 4.5rem 1rem;
}

.page-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.15rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 54rem;
    margin: 0;
    color: rgb(255 255 255 / 0.88);
    font-size: 1.1rem;
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 0.75rem;
}

.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 0.85rem;
    outline: 0;
    padding: 0.85rem 1rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 3px rgb(14 165 233 / 0.18);
}

.filter-form button {
    border: 0;
}

.empty-state {
    display: none;
    padding: 3rem 1rem;
    color: var(--gray-500);
    text-align: center;
}

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

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 3.1rem 6.8rem 1fr;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.ranking-number {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), #7c3aed);
    font-weight: 900;
}

.ranking-item img {
    width: 6.8rem;
    height: 4.25rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.ranking-copy {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.ranking-copy strong {
    overflow: hidden;
    color: var(--gray-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy em {
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.compact-card img {
    width: 8rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.compact-card span {
    display: grid;
    min-width: 0;
    gap: 0.3rem;
}

.compact-card strong,
.compact-card small,
.compact-card em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    color: var(--gray-900);
    font-size: 1rem;
}

.compact-card em {
    color: var(--sky-700);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 750;
}

.compact-card small {
    color: var(--gray-600);
    font-size: 0.86rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

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

.detail-card,
.detail-side,
.article-block {
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-card {
    overflow: hidden;
}

.watch-area {
    padding: 1rem;
    background: var(--gray-900);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: #030712;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgb(2 132 199 / 0.25), rgb(0 0 0 / 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
    display: grid;
    gap: 0.55rem;
    place-items: center;
    border: 0;
    color: var(--white);
    background: transparent;
    font-weight: 900;
}

.player-start span {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border-radius: 999px;
    background: var(--sky-600);
    box-shadow: 0 22px 44px rgb(2 132 199 / 0.45);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover span {
    background: var(--sky-700);
    transform: scale(1.06);
}

.player-message {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    min-height: 1.5rem;
    color: rgb(255 255 255 / 0.86);
    font-size: 0.9rem;
    text-align: center;
}

.detail-body {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
}

.detail-body h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta span {
    color: var(--sky-700);
    background: var(--sky-100);
}

.detail-side {
    overflow: hidden;
}

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

.side-copy {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.article-block {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.article-block h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

.article-block p {
    margin: 0 0 1rem;
    color: var(--gray-700);
    line-height: 1.9;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.site-footer {
    margin-top: 3rem;
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 3rem 1rem;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    color: var(--white);
}

.site-footer p,
.site-footer li {
    color: var(--gray-400);
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: 1rem;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--gray-400);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #38bdf8;
}

.footer-bottom {
    display: flex;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    color: var(--gray-500);
    justify-content: space-between;
    gap: 1rem;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-control {
        display: none;
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-side {
        order: -1;
    }

    .detail-side img {
        aspect-ratio: 16 / 9;
    }

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

@media (max-width: 640px) {
    .hero-slider {
        height: 680px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgb(0 0 0 / 0.68), rgb(0 0 0 / 0.82));
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 5rem;
    }

    .hero-actions,
    .hero-search {
        width: 100%;
    }

    .hero-search {
        border-radius: 1.1rem;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

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

    .movie-grid,
    .movie-grid.small,
    .category-grid,
    .compact-list,
    .ranking-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 2.5rem 5.8rem 1fr;
    }

    .ranking-item img {
        width: 5.8rem;
        height: 3.65rem;
    }

    .compact-card {
        grid-template-columns: 6rem 1fr;
    }

    .compact-card img {
        width: 6rem;
        height: 4rem;
    }

    .footer-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
