:root {
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbeafe;
    --card: #ffffff;
    --soft: rgba(255, 255, 255, 0.82);
    --shadow: 0 18px 45px rgba(2, 132, 199, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 36rem),
        linear-gradient(180deg, #f8fdff 0%, #eef8ff 46%, #ffffff 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, #dff4ff, #f8fdff);
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(240, 249, 255, 0.93);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(186, 230, 253, 0.8);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.08);
}

.top-shell {
    width: min(1200px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), #22d3ee);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    color: var(--sky-700);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

.logo-text small {
    color: var(--sky-500);
    font-size: 0.72rem;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a,
.mobile-panel a {
    padding: 9px 14px;
    color: #334155;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--sky-700);
    background: #dff4ff;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    background: #ffffff;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.03);
}

.header-search input,
.inline-filter input,
.search-band input,
.mobile-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.search-band button,
.mobile-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), #22d3ee);
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--sky-700);
    background: #dff4ff;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--sky-200);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

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

.mobile-panel form {
    display: flex;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-panel input {
    padding: 10px 14px;
}

.hero {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    background: #0b1220;
    box-shadow: 0 26px 70px rgba(2, 132, 199, 0.22);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.84) 0%, rgba(2, 6, 23, 0.42) 52%, rgba(2, 6, 23, 0.15) 100%),
        radial-gradient(circle at 70% 20%, rgba(14, 165, 233, 0.35), transparent 34rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 78px 72px;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 14px;
    color: #7dd3fc;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 680px;
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 1.08rem;
}

.hero-actions,
.detail-copy .button {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), #22d3ee);
    box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
}

.button-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    left: 72px;
    bottom: 42px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.search-band {
    width: min(1200px, calc(100% - 32px));
    margin: -40px auto 0;
    position: relative;
    z-index: 5;
}

.search-band-shell {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 500px);
    align-items: center;
    gap: 24px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-band h2,
.search-band p {
    margin: 0;
}

.search-band h2 {
    color: var(--sky-700);
    font-size: 1.5rem;
}

.search-band p {
    color: var(--muted);
}

.search-band form {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--sky-200);
    border-radius: 999px;
    background: #ffffff;
}

.search-band input {
    padding: 14px 18px;
}

.page-section {
    width: min(1200px, calc(100% - 32px));
    margin: 56px auto;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

.category-tile,
.category-card-large,
.content-card,
.side-card,
.ranking-panel,
.player-card {
    background: var(--card);
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 16px 42px rgba(2, 132, 199, 0.09);
}

.category-tile {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 211, 238, 0.07)),
        #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(2, 132, 199, 0.15);
}

.category-tile strong {
    color: var(--sky-700);
    font-size: 1.25rem;
}

.category-tile span,
.category-card-large p,
.category-samples,
.movie-brief,
.movie-meta,
.detail-one-line,
.content-card p,
.side-card dd,
.breadcrumb {
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(2, 132, 199, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.movie-card-compact .movie-poster {
    aspect-ratio: 3 / 4;
}

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

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

.poster-badge,
.poster-play {
    position: absolute;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

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

.movie-meta {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.movie-meta.large {
    font-size: 1rem;
    color: #dbeafe;
}

.movie-brief {
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.tag-row span {
    display: inline-flex;
    padding: 4px 8px;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

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

.ranking-panel {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.ranking-panel h2 {
    margin: 0 0 16px;
    color: var(--sky-700);
}

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

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

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

.ranking-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--sky-700);
    background: var(--sky-100);
    font-weight: 900;
}

.rank-gold {
    color: #ffffff;
    background: #f59e0b;
}

.rank-silver {
    color: #ffffff;
    background: #94a3b8;
}

.rank-bronze {
    color: #ffffff;
    background: #b45309;
}

.ranking-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ranking-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-info em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.inner-hero {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 70px;
    color: #ffffff;
    background:
        radial-gradient(circle at right top, rgba(125, 211, 252, 0.42), transparent 32rem),
        linear-gradient(135deg, #075985, #0ea5e9 55%, #22d3ee);
    border-radius: 34px;
    box-shadow: 0 26px 70px rgba(2, 132, 199, 0.22);
}

.inner-hero h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.inner-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #e0f2fe;
    font-size: 1.08rem;
}

.inline-filter {
    width: min(620px, 100%);
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.inline-filter input {
    padding: 15px 20px;
}

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

.category-card-large {
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-title {
    color: var(--sky-700);
    font-size: 1.5rem;
    font-weight: 900;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-samples a {
    padding: 5px 10px;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.rank-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 26px;
    align-items: start;
}

.ranking-panel-full {
    position: static;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--sky-200);
    border-radius: var(--radius);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #08111f;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    filter: blur(3px);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.66)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), #08111f);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bae6fd;
    font-size: 0.94rem;
}

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

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    color: #e0f2fe;
    font-size: 1.1rem;
}

.detail-tags {
    margin: 22px 0;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
    padding: 0;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(14, 165, 233, 0.38), transparent 24rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--sky-700);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
    font-size: 1.7rem;
}

.player-cover strong {
    font-size: 1.4rem;
}

.content-card,
.side-card {
    padding: 26px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--sky-700);
}

.content-card p {
    margin: 0;
    font-size: 1.02rem;
}

.detail-side {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 96px;
}

.side-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 14px;
}

.side-card dt {
    color: #334155;
    font-weight: 800;
}

.side-card dd {
    margin: 0;
}

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

.side-related-list {
    display: grid;
    gap: 8px;
}

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

.prev-next a {
    padding: 16px;
    color: var(--sky-700);
    background: #ffffff;
    border: 1px solid var(--sky-200);
    border-radius: 18px;
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.6), #dff4ff);
    border-top: 1px solid var(--sky-200);
}

.footer-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
}

.footer-links {
    display: grid;
    gap: 8px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 6px;
    color: var(--sky-700);
    font-size: 1rem;
}

.footer-links a {
    color: #475569;
}

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

.copyright {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: var(--muted);
    border-top: 1px solid rgba(186, 230, 253, 0.8);
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

    .page-section-split,
    .rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .top-shell {
        height: 66px;
    }

    .main-nav {
        display: none;
    }

    .menu-button {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-stage {
        min-height: 620px;
        border-radius: 26px;
    }

    .hero-copy {
        padding: 46px 30px;
    }

    .hero-dots {
        left: 30px;
        bottom: 30px;
    }

    .search-band {
        margin-top: 18px;
    }

    .search-band-shell {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .category-list-grid,
    .movie-grid,
    .compact-grid,
    .footer-shell,
    .detail-shell,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .inner-hero {
        padding: 42px 26px;
        border-radius: 26px;
    }

    .detail-shell {
        padding: 42px 0;
    }

    .detail-cover {
        max-width: 260px;
    }
}

@media (max-width: 520px) {
    .logo-text strong {
        font-size: 1rem;
    }

    .logo-text small {
        display: none;
    }

    .hero-stage {
        min-height: 560px;
    }

    .page-section {
        margin: 42px auto;
    }

    .section-heading {
        display: block;
    }

    .movie-card-body,
    .content-card,
    .side-card {
        padding: 18px;
    }
}
