:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-300: #7dd3fc;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-600: #2563eb;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(2, 132, 199, 0.14);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sky-50), #ffffff 42%, #eff6ff 100%);
    color: var(--gray-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(125, 211, 252, 0.35);
    background: rgba(240, 249, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
    white-space: nowrap;
}

.site-logo__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.32);
}

.site-logo__text {
    background: linear-gradient(135deg, var(--sky-600), var(--blue-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
}

.site-nav a {
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--sky-600);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.header-search input {
    width: 210px;
    padding: 9px 10px 9px 14px;
    outline: none;
    color: var(--gray-700);
}

.header-search button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.header-search button {
    padding: 9px 16px;
    background: var(--sky-500);
    color: var(--white);
}

.header-search button:hover,
.button:hover {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--white);
    color: var(--sky-600);
    box-shadow: var(--shadow-soft);
}

.site-main {
    min-height: 70vh;
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.20), rgba(15, 23, 42, 0.50) 42%, rgba(0, 0, 0, 0.86));
}

.hero-slide__content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 64px;
    max-width: 720px;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    background: rgba(14, 165, 233, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.hero-slide h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-slide p {
    max-width: 640px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.button {
    padding: 12px 24px;
}

.button--light {
    background: var(--white);
    color: var(--gray-900);
}

.button--light:hover {
    background: var(--sky-500);
    color: var(--white);
}

.button--glass {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    backdrop-filter: blur(12px);
}

.button--primary {
    background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.34);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}

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

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

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

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--sky-600);
    font-weight: 800;
    font-size: 14px;
}

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
}

.section-line {
    height: 4px;
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sky-500), rgba(14, 165, 233, 0));
}

.section-more {
    color: var(--sky-600);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.54));
    opacity: 0.65;
}

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

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--sky-600);
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
}

.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-card__tags a,
.tag-cloud a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-100), #dbeafe);
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.movie-card__tags a:hover,
.tag-cloud a:hover {
    color: var(--sky-600);
    transform: translateY(-2px);
}

.movie-card--horizontal {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: stretch;
}

.movie-card--horizontal .movie-card__poster {
    aspect-ratio: auto;
    min-height: 138px;
}

.movie-card--horizontal .movie-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 38px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.94);
    color: var(--white);
    text-align: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28);
}

.feature-strip,
.ranking-panel,
.tag-panel {
    margin-top: 56px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(219, 234, 254, 0.95));
    box-shadow: var(--shadow);
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
    min-width: 280px;
    scroll-snap-align: start;
}

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

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    color: var(--sky-600);
    font-style: normal;
    font-weight: 800;
}

.category-tile div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--sky-50);
    color: var(--gray-600);
    font-size: 12px;
}

.ranking-list,
.latest-list,
.related-list {
    display: grid;
    gap: 16px;
}

.ranking-list--full {
    gap: 14px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-shell {
    padding-bottom: 72px;
}

.page-hero {
    padding: 80px 32px 42px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.20), transparent 38%), linear-gradient(180deg, var(--sky-50), rgba(255, 255, 255, 0));
}

.page-hero--compact {
    padding-top: 64px;
}

.page-hero span {
    display: inline-flex;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--sky-600);
    font-size: 14px;
    font-weight: 800;
}

.page-hero h1 {
    margin: 16px auto 12px;
    max-width: 900px;
    color: var(--gray-900);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.8;
}

.category-stack {
    display: grid;
    gap: 28px;
}

.category-preview {
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.category-preview__head span {
    color: var(--sky-600);
    font-size: 14px;
    font-weight: 800;
}

.category-preview__head h2 {
    margin: 6px 0 0;
    color: var(--gray-900);
    font-size: 28px;
    font-weight: 900;
}

.filter-bar {
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-bar__top {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 14px;
    outline: none;
    background: var(--sky-50);
    color: var(--gray-700);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--sky-300);
    box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.24);
}

.filter-result {
    margin-top: 14px;
    color: var(--sky-600);
    font-size: 14px;
    font-weight: 850;
}

.detail-page {
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800) 520px, var(--sky-50) 520px);
}

.detail-hero {
    padding: 28px 0 42px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 26px;
    align-items: stretch;
}

.player-card {
    border-radius: 26px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

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

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(0, 0, 0, 0.34));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
    font-size: 36px;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.player-error {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    color: var(--white);
    font-size: 14px;
}

.player-error.is-visible {
    display: block;
}

.detail-side {
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.detail-side img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.detail-side__info {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.detail-side__info span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    text-align: center;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 72px;
}

.detail-main,
.related-panel {
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-main {
    padding: 30px;
}

.related-panel {
    align-self: start;
    padding: 24px;
}

.detail-title-block span {
    color: var(--sky-600);
    font-size: 14px;
    font-weight: 850;
}

.detail-title-block h1 {
    margin: 10px 0 14px;
    color: var(--gray-900);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 950;
    line-height: 1.15;
}

.detail-title-block p {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0;
}

.detail-meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: var(--sky-50);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--sky-600);
    font-size: 13px;
}

.detail-meta-grid span {
    color: var(--gray-900);
    font-weight: 800;
}

.content-card {
    display: grid;
    gap: 12px;
    color: var(--gray-700);
    line-height: 1.9;
}

.content-card h2,
.related-panel h2 {
    margin: 16px 0 4px;
    color: var(--gray-900);
    font-size: 23px;
    font-weight: 900;
}

.content-card h2:first-child {
    margin-top: 0;
}

.detail-tags {
    margin-top: 24px;
}

.related-panel h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(125, 211, 252, 0.30);
    background: rgba(255, 255, 255, 0.82);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.1fr;
    gap: 32px;
}

.site-footer__brand p {
    max-width: 460px;
    margin-top: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer__links h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-weight: 900;
}

.site-footer__links a {
    color: var(--gray-600);
    font-size: 14px;
}

.site-footer__links a:hover {
    color: var(--sky-600);
}

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

.site-footer__categories h3 {
    grid-column: 1 / -1;
}

.site-footer__bottom {
    padding: 18px;
    border-top: 1px solid rgba(125, 211, 252, 0.28);
    color: var(--gray-500);
    text-align: center;
    font-size: 14px;
}

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

@media (min-width: 768px) {
    .hero-slider {
        height: 600px;
    }
}

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

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

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

@media (max-width: 920px) {
    .site-header__inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .site-nav,
    .header-search {
        display: none;
        width: 100%;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .header-search {
        display: flex;
    }

    .site-nav {
        flex-wrap: wrap;
        order: 3;
        padding: 12px 0 4px;
    }

    .header-search {
        order: 4;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .movie-grid,
    .movie-grid--four,
    .movie-grid--five,
    .movie-grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid,
    .site-footer__inner,
    .detail-content,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side {
        display: none;
    }

    .filter-bar__top,
    .detail-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .hero-slide__content {
        left: 20px;
        right: 20px;
        bottom: 56px;
    }

    .hero-slide p {
        font-size: 15px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-line {
        width: 100%;
        flex: none;
    }

    .movie-grid,
    .movie-grid--four,
    .movie-grid--five,
    .movie-grid--six,
    .category-grid,
    .filter-bar__top,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .movie-card--horizontal {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .movie-card--horizontal .movie-card__body {
        padding: 12px;
    }

    .movie-card--horizontal p,
    .movie-card--horizontal .movie-card__tags {
        display: none;
    }

    .feature-strip,
    .ranking-panel,
    .tag-panel,
    .category-preview,
    .detail-main,
    .related-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .site-footer__categories {
        grid-template-columns: 1fr;
    }
}
