:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --cyan: #0891b2;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 45%, #ecfeff 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

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

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    color: #334155;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--blue);
    background: #eff6ff;
}

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

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 16px;
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 40%, rgba(8, 145, 178, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 40%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1240px) / 2 + 20px));
    bottom: 92px;
    width: min(660px, calc(100vw - 48px));
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #67e8f9;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 20px 0 0;
    max-width: 620px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.detail-meta,
.tag-row,
.hero-actions,
.quick-links,
.footer-links,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #1e40af;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-actions {
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    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 14px 30px rgba(37, 99, 235, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

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

.text-link {
    min-height: auto;
    padding: 0;
    color: var(--blue);
}

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.quick-entry,
.search-panel,
.section-shell,
.page-hero,
.detail-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 20px 0;
}

.quick-entry {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
}

.quick-entry h2,
.search-panel h2,
.section-head h2,
.category-card h2,
.article-card h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.quick-entry p,
.search-panel p,
.category-card p,
.article-card p,
.page-hero p,
.detail-copy p,
.movie-card-body p {
    color: var(--muted);
    line-height: 1.75;
}

.quick-links {
    justify-content: flex-end;
}

.quick-links a {
    padding: 12px 16px;
    border-radius: 14px;
    color: #0e7490;
    background: #ecfeff;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
    transform: translateY(-2px);
    background: #cffafe;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-box span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 850;
}

.search-box input {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    color: var(--text);
    font-size: 16px;
    background: transparent;
}

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

.compact-head {
    align-items: start;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-rank {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-meta-line {
    margin-bottom: 8px;
    color: #0891b2;
    font-size: 12px;
    font-weight: 850;
}

.movie-card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card-body h3 a:hover {
    color: var(--blue);
}

.movie-card-body p {
    margin: 10px 0 12px;
    font-size: 14px;
}

.tag-row {
    gap: 7px;
}

.tag-row span {
    color: #0f766e;
    background: #ccfbf1;
}

.large-tags span {
    font-size: 13px;
}

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

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

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

.category-card,
.rank-panel,
.article-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--soft-shadow);
}

.category-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.category-card h2 {
    font-size: 24px;
}

.category-card p {
    margin: 12px 0 16px;
    font-size: 14px;
}

.mini-links {
    display: grid;
    gap: 8px;
}

.mini-links a {
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.mini-links a:hover {
    color: var(--blue);
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.rank-number {
    color: var(--blue);
    font-size: 18px;
    font-weight: 950;
}

.rank-item img {
    width: 58px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--dark);
    font-size: 15px;
}

.rank-copy em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    padding-top: 58px;
}

.simple-hero {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 34px;
    padding: 54px;
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.42), transparent 28%),
        linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0891b2);
    box-shadow: var(--shadow);
}

.simple-hero h1,
.simple-hero p {
    color: #ffffff;
}

.simple-hero p {
    max-width: 760px;
}

.breadcrumb {
    margin-top: 18px;
    color: #bfdbfe;
    font-size: 14px;
}

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

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

.detail-cover {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #e2e8f0;
}

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

.detail-copy {
    padding: 32px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-copy h1 {
    margin-top: 0;
    color: var(--dark);
}

.detail-copy p {
    margin: 18px 0;
    font-size: 17px;
}

.detail-copy .breadcrumb {
    margin: 0 0 20px;
    color: var(--muted);
}

.detail-copy .breadcrumb a:hover {
    color: var(--blue);
}

.detail-meta {
    margin-bottom: 16px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 6px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.42);
}

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

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

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

.empty-state {
    display: none;
    margin: 20px 0 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

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

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-logo {
    color: #67e8f9;
}

.footer-shell p {
    margin: 10px 0 0;
    color: #94a3b8;
}

.footer-links a {
    color: #cbd5e1;
    font-weight: 700;
}

.footer-links a:hover {
    color: #67e8f9;
}

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-content {
        bottom: 74px;
    }

    .quick-entry,
    .search-panel,
    .detail-hero,
    .content-section {
        grid-template-columns: 1fr;
    }

    .quick-links {
        justify-content: flex-start;
    }

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

    .simple-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        height: 62px;
        padding: 0 14px;
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-carousel {
        min-height: 540px;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.42));
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 68px;
        width: auto;
    }

    .hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .quick-entry,
    .search-panel,
    .section-shell,
    .page-hero,
    .detail-hero {
        padding-left: 14px;
        padding-right: 14px;
    }

    .movie-grid,
    .category-grid,
    .category-grid-wide,
    .related-grid {
        gap: 14px;
    }

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

    .movie-card-body h3 {
        font-size: 16px;
    }

    .detail-copy,
    .article-card,
    .category-card,
    .rank-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }
}
