:root {
    color-scheme: light;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 28px 70px rgba(2, 132, 199, 0.28);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1200px;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 232, 240, 0.78);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.24);
}

.brand-name {
    font-size: 1.18rem;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--slate-700);
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--sky-700);
    background: var(--sky-100);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--sky-100);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 10px;
    background: var(--sky-700);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-900);
}

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 24%, rgba(14, 165, 233, 0.36), transparent 34%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.58) 46%, rgba(15, 23, 42, 0.18) 100%);
}

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

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sky-600);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.detail-info .eyebrow {
    color: var(--sky-200);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0 16px;
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.8;
}

.hero-actions,
.detail-meta-pills,
.movie-meta,
.movie-tags,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.primary-button,
.quick-search button,
.inline-filter button {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover,
.quick-search button:hover,
.inline-filter button:hover {
    transform: translateY(-2px);
}

.hero-control-panel {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 30px;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots,
.hero-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 62px;
    background: var(--sky-500);
}

.hero-arrows button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.home-search {
    margin-top: -42px;
    position: relative;
    z-index: 10;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    align-items: center;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(186, 230, 253, 0.82);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.ranking-panel h2,
.page-hero h1,
.content-card h2,
.site-footer h2 {
    margin: 0;
    color: var(--slate-900);
    letter-spacing: -0.04em;
}

.search-panel p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.8;
}

.quick-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-search input,
.inline-filter input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--slate-900);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-search input:focus,
.inline-filter input:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.soft-section {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.58), rgba(255, 255, 255, 0));
}

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

.section-heading h2,
.ranking-panel h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--sky-200);
    box-shadow: var(--shadow-md);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--slate-100);
}

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

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

.poster-region,
.rank-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.9);
    backdrop-filter: blur(10px);
}

.poster-region {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.movie-title {
    color: var(--slate-900);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.movie-card-body p {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.93rem;
    line-height: 1.75;
}

.movie-meta {
    color: var(--slate-500);
    font-size: 0.82rem;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--slate-100);
}

.movie-tags span,
.detail-tags a,
.detail-meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--sky-100);
    font-size: 0.8rem;
    font-weight: 700;
}

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

.category-tile,
.category-card-large {
    border: 1px solid rgba(186, 230, 253, 0.72);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.86));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-tile > a,
.category-card-head {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.category-tile span,
.category-card-head span {
    color: var(--sky-700);
    font-weight: 900;
}

.category-tile strong,
.category-card-head strong {
    color: var(--slate-700);
    font-size: 0.95rem;
    line-height: 1.75;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 0 22px 22px;
}

.category-samples a {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.category-samples a:hover {
    color: var(--sky-700);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.section-heading.is-left {
    margin-bottom: 22px;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 26px;
    border: 1px solid rgba(186, 230, 253, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.ranking-panel ol {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.ranking-panel a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.ranking-panel a:hover {
    background: var(--sky-50);
}

.ranking-panel span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
    font-weight: 900;
}

.ranking-panel strong {
    color: var(--slate-900);
}

.ranking-panel em {
    color: var(--slate-500);
    font-size: 0.82rem;
    font-style: normal;
}

.page-main {
    min-height: 60vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 56px;
    background:
        radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.2), transparent 26%),
        linear-gradient(180deg, var(--sky-50), var(--white));
}

.compact-hero p {
    max-width: 760px;
    color: var(--slate-500);
    font-size: 1.05rem;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.92rem;
}

.compact-hero .breadcrumb {
    color: var(--slate-500);
}

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

.inline-filter {
    max-width: 680px;
    margin-top: 26px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 20px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.ranking-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    background: var(--slate-100);
}

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

.ranking-cover span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.82);
    font-weight: 900;
}

.ranking-title {
    color: var(--slate-900);
    font-size: 1.25rem;
    font-weight: 900;
}

.ranking-row p {
    margin: 10px 0 14px;
    color: var(--slate-500);
    line-height: 1.8;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--slate-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.02);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    padding: 70px 0 82px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

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

.detail-info {
    color: var(--white);
}

.detail-info h1 {
    margin: 16px 0;
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
    line-height: 1.85;
}

.detail-meta-pills span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--slate-900);
    box-shadow: var(--shadow-xl);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(15, 23, 42, 0.66));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--sky-700);
    background: var(--white);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.1rem;
}

.detail-content-section {
    padding-top: 0;
}

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

.content-card {
    padding: 30px;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card p {
    margin: 16px 0 0;
    color: var(--slate-600);
    line-height: 2;
}

.mini-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card em {
    color: var(--slate-500);
    font-size: 0.82rem;
    font-style: normal;
}

.site-footer {
    padding: 56px 0 28px;
    border-top: 1px solid rgba(226, 232, 240, 0.78);
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer p {
    max-width: 460px;
    margin: 0;
    color: var(--slate-500);
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a,
.footer-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 0.88rem;
}

.footer-links a:hover,
.footer-tags a:hover {
    color: var(--sky-700);
    background: var(--sky-100);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.78);
    color: var(--slate-500);
    font-size: 0.88rem;
}

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

@media (max-width: 1024px) {
    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .split-grid,
    .search-panel,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: relative;
        top: auto;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--slate-200);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-md);
    }

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

    .nav-link {
        justify-content: flex-start;
    }

    .hero {
        min-height: 620px;
        height: 74vh;
    }

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

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

    .quick-search button,
    .inline-filter button,
    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .hero-controls {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

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

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

    .detail-poster {
        width: min(68vw, 240px);
    }

    .ranking-row {
        grid-template-columns: 86px 1fr;
        gap: 14px;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy h1,
    .hero-copy h2,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }
}
