:root {
    color-scheme: light;
    --bg-start: #f8fafc;
    --bg-mid: #eff6ff;
    --bg-end: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: rgba(148, 163, 184, 0.28);
    --blue: #2563eb;
    --blue-deep: #1d4ed8;
    --cyan: #06b6d4;
    --pink: #f43f5e;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 30rem),
        linear-gradient(135deg, var(--bg-start), var(--bg-mid) 45%, var(--bg-end));
}

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

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

button,
input {
    font: inherit;
}

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

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.desktop-nav,
.mobile-nav,
.footer-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    padding: 10px 14px;
    color: #334155;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.footer-links a:hover {
    color: var(--blue-deep);
    background: rgba(37, 99, 235, 0.1);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    padding: 9px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-wrap: wrap;
    padding: 0 18px 18px;
}

.hero {
    position: relative;
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 22px;
}

.hero-stage {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    border-radius: 40px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) brightness(0.78);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(37, 99, 235, 0.32), transparent 28rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.68) 48%, rgba(15, 23, 42, 0.28));
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    min-height: 650px;
    padding: 64px;
}

.eyebrow,
.section-kicker,
.mini-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #bfdbfe;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-panel h1 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero h1,
.hero h2 {
    max-width: 760px;
    color: #ffffff;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 26px 0 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.9);
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-actions,
.compact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.secondary-button {
    color: var(--blue-deep);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.watch-link:hover,
.search-box button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster,
.category-hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(14px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.page-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 22px 0;
}

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

.intro-card,
.movie-card,
.category-tile,
.category-overview-card,
.story-card,
.side-card,
.player-card,
.detail-panel,
.search-panel,
.ranking-row,
.rank-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.intro-card {
    padding: 24px;
}

.intro-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.intro-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.intro-card p,
.section-heading p,
.movie-card p,
.category-tile p,
.category-overview-card p,
.rank-card p,
.ranking-row p,
.story-card p,
.side-card dd,
.site-footer p,
.page-hero p,
.detail-panel p {
    color: var(--muted);
    line-height: 1.75;
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 0;
}

.section-link,
.search-box button,
.watch-link {
    color: var(--blue-deep);
    background: rgba(37, 99, 235, 0.1);
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.15);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #dbeafe;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.36s ease;
}

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.85);
    backdrop-filter: blur(12px);
}

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

.movie-card h3,
.rank-card h3,
.category-overview-card h2,
.ranking-row h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.category-overview-card h2 a:hover,
.ranking-row h2 a:hover {
    color: var(--blue-deep);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.86));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: #dbeafe;
    font-size: 14px;
}

.ranking-list,
.ranking-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.ranking-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.rank-no,
.big-rank {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.rank-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
}

.rank-poster,
.ranking-cover,
.category-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #dbeafe;
}

.rank-poster img,
.ranking-cover img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-card h3 {
    font-size: 17px;
}

.rank-card p {
    margin: 0;
    font-size: 14px;
}

.search-panel {
    margin-bottom: 22px;
    padding: 18px;
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: var(--blue-deep);
    font-weight: 900;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.empty-state {
    display: none;
    margin: 22px 0 0;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
}

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

.page-hero {
    overflow: hidden;
    padding: 72px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.22), transparent 26rem),
        linear-gradient(135deg, #ffffff, rgba(239, 246, 255, 0.92));
    box-shadow: var(--shadow);
}

.slim-hero {
    text-align: center;
}

.category-hero,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 36px;
}

.category-hero h1,
.page-hero h1 {
    color: var(--text);
}

.category-hero-poster {
    max-width: 260px;
    margin-left: auto;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sample-links a {
    padding: 7px 10px;
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
}

.big-rank {
    width: 58px;
    height: 58px;
    font-size: 20px;
}

.ranking-cover {
    height: 160px;
}

.ranking-info h2 {
    font-size: 24px;
}

.detail-main {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-deep);
    font-weight: 800;
}

.detail-hero {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
    padding: 0;
}

.player-card,
.detail-panel {
    padding: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: 28px;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.54)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 5px;
    font-size: 34px;
    color: var(--blue-deep);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.player-cover strong {
    font-size: 22px;
}

.detail-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-panel h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.one-line {
    margin: 0 0 22px;
    font-size: 17px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    max-width: 1280px;
    margin: 22px auto 0;
    padding: 0 22px;
}

.story-card,
.side-card {
    padding: 28px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.story-card p {
    margin: 0 0 26px;
    font-size: 17px;
}

.movie-meta-list {
    margin: 0;
}

.movie-meta-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.movie-meta-list dt {
    color: var(--text);
    font-weight: 900;
}

.movie-meta-list dd {
    margin: 0;
}

.related-section {
    padding-top: 42px;
}

.site-footer {
    max-width: 1280px;
    margin: 70px auto 0;
    padding: 34px 22px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 8px 0 0;
}

.is-hidden-by-search {
    display: none !important;
}

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

    .menu-button {
        display: block;
    }

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

    .hero-inner,
    .detail-hero,
    .detail-content,
    .category-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .category-hero-poster {
        display: none;
    }

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

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

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

    .ranking-row {
        grid-template-columns: 50px 100px minmax(0, 1fr);
    }

    .ranking-row .watch-link {
        grid-column: 3;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .nav-shell {
        min-height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 19px;
    }

    .hero {
        margin-top: 16px;
        padding: 0 14px;
    }

    .hero-stage,
    .hero-inner {
        min-height: 620px;
    }

    .hero-stage {
        border-radius: 28px;
    }

    .hero-inner {
        padding: 34px 24px 86px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions,
    .compact-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .page-section,
    .page-main,
    .detail-main {
        padding-left: 14px;
        padding-right: 14px;
    }

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

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

    .page-hero {
        padding: 42px 24px;
        border-radius: 28px;
    }

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

    .category-cover {
        height: 260px;
    }

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

    .big-rank {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .ranking-cover {
        height: 132px;
    }

    .ranking-info h2 {
        font-size: 18px;
    }

    .ranking-info p,
    .ranking-info .card-tags {
        display: none;
    }

    .player-shell,
    .player-shell video {
        min-height: 280px;
    }

    .detail-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .story-card,
    .side-card,
    .player-card,
    .detail-panel {
        padding: 18px;
        border-radius: 22px;
    }

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