:root {
    color-scheme: light;
    --bg: #f7fbff;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.09);
    --primary: #06b6d4;
    --primary-dark: #2563eb;
    --accent: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
    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 10% 0%, rgba(6, 182, 212, 0.16), transparent 30rem),
        radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.14), transparent 28rem),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 42%, #ecfeff 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.55rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #334155;
    font-weight: 700;
    font-size: 0.94rem;
}

.nav-link {
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 258px;
}

.search-box input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 11px 18px;
    outline: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: 430px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    padding: 8px;
}

.search-results.is-visible {
    display: block;
}

.search-result {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    color: var(--text);
}

.search-result:hover {
    background: #f0fdfa;
}

.search-result-cover {
    width: 64px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0891b2);
}

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

.search-result strong {
    display: block;
    line-height: 1.25;
    font-size: 0.95rem;
}

.search-result span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.menu-button {
    display: none;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 700;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

.page-offset {
    padding-top: 96px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #0f172a;
    color: #ffffff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #0891b2);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.hero-media.is-empty img {
    opacity: 0;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.4), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding-top: 58px;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.16);
    color: #67e8f9;
    padding: 8px 15px;
    font-weight: 800;
    font-size: 0.88rem;
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(2.6rem, 8vw, 5.9rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 660px;
    color: #dbeafe;
    font-size: 1.18rem;
    line-height: 1.85;
    margin: 0 0 24px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(6, 182, 212, 0.26);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.btn-light {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.17);
}

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

.hero-dots button {
    width: 18px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 78px 0 0;
}

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

.section-header h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p {
    margin: 9px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(6, 182, 212, 0.32);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.poster-frame,
.horizontal-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.42), transparent 12rem),
        linear-gradient(135deg, #0f172a, #164e63 48%, #2563eb);
}

.poster-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame::after,
.horizontal-cover::after,
.hero-media::before {
    content: attr(data-title);
    position: absolute;
    inset: auto 18px 18px 18px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.poster-frame.is-empty::after,
.horizontal-cover.is-empty::after,
.hero-media.is-empty::before {
    opacity: 1;
}

.poster-frame img,
.horizontal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.horizontal-card:hover .horizontal-cover img {
    transform: scale(1.08);
}

.poster-frame.is-empty img,
.horizontal-cover.is-empty img {
    opacity: 0;
}

.poster-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.62), transparent 62%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::before {
    opacity: 1;
}

.duration {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.play-mark {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.86);
    box-shadow: 0 20px 38px rgba(6, 182, 212, 0.3);
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge,
.rank-number {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.22);
    font-weight: 900;
}

.movie-body {
    padding: 17px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #0891b2;
    background: #ecfeff;
    padding: 4px 9px;
    font-weight: 800;
}

.movie-body h3,
.horizontal-content h3 {
    margin: 0 0 8px;
    line-height: 1.35;
    font-size: 1.08rem;
}

.movie-body h3 a:hover,
.horizontal-content h3 a:hover {
    color: var(--primary);
}

.movie-body p,
.horizontal-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    position: relative;
    min-height: 168px;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(103, 232, 249, 0.28), transparent 12rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.8));
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.category-tile h3 {
    margin: 0 0 9px;
    font-size: 1.3rem;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.feature-panel,
.rank-panel,
.detail-panel,
.info-panel,
.text-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    padding: 26px;
}

.horizontal-list {
    display: grid;
    gap: 15px;
}

.horizontal-card {
    position: relative;
    display: grid;
    grid-template-columns: 146px 1fr;
    gap: 15px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 19px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.horizontal-cover {
    min-height: 104px;
}

.horizontal-content {
    padding: 14px 14px 14px 0;
}

.rank-number {
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
}

.page-hero {
    padding: 136px 0 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at 72% 20%, rgba(103, 232, 249, 0.34), transparent 20rem),
        linear-gradient(135deg, #0891b2, #2563eb);
}

.page-title {
    max-width: 820px;
}

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

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

.toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.toolbar select {
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 14px;
    background: #ffffff;
    padding: 11px 14px;
    outline: none;
}

.detail-hero {
    padding: 116px 0 34px;
    background: linear-gradient(180deg, #0f172a, #1e293b);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(6, 182, 212, 0.16), transparent 22rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.72));
    pointer-events: none;
    transition: opacity 0.25s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.34);
    cursor: pointer;
    pointer-events: auto;
    font-size: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    box-shadow: 0 30px 72px rgba(6, 182, 212, 0.44);
}

.player-title {
    max-width: min(680px, 90%);
    text-align: center;
    font-weight: 900;
    font-size: clamp(1.35rem, 4vw, 2.45rem);
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 28px;
}

.detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    margin-bottom: 22px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 8px 12px;
    font-weight: 700;
}

.content-section h2,
.info-panel h2,
.text-panel h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
}

.content-section {
    margin-top: 26px;
}

.content-section p,
.text-panel p {
    color: #334155;
    margin: 0 0 14px;
    line-height: 1.88;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.info-row dt {
    color: var(--muted);
}

.info-row dd {
    margin: 0;
    font-weight: 900;
    text-align: right;
}

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

.site-footer {
    margin-top: 86px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), #eef2ff);
}

.footer-grid {
    max-width: 1220px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-grid p {
    color: var(--muted);
    margin: 12px 0 0;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a {
    color: var(--muted);
}

.footer-grid a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px 28px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 70px;
    }

    .brand {
        font-size: 1.25rem;
    }

    .search-box {
        display: none;
    }

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

    .hero-copy {
        padding-top: 70px;
    }

    .section {
        padding-top: 52px;
    }

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

    .movie-grid,
    .movie-grid-five,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .movie-body {
        padding: 13px;
    }

    .horizontal-card {
        grid-template-columns: 112px 1fr;
    }

    .horizontal-cover {
        min-height: 96px;
    }

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

    .page-hero {
        padding-top: 116px;
    }

    .detail-hero {
        padding-top: 96px;
    }

    .player-shell {
        border-radius: 18px;
    }
}

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

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

    .btn {
        width: 100%;
    }
}
