* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --deep: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 32%, #eef6ff 100%);
    color: var(--text);
    min-height: 100vh;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.nav-shell {
    max-width: 1240px;
    height: 76px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

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

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    color: #111827;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-cta,
.mobile-cta,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.mobile-cta:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 12px;
    border: 0;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #334155;
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
}

main {
    padding-top: 76px;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.45), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #0891b2 100%);
    color: #ffffff;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.55;
}

.hero-glow-one {
    width: 420px;
    height: 420px;
    top: -150px;
    right: 8%;
    background: rgba(125, 211, 252, 0.35);
}

.hero-glow-two {
    width: 360px;
    height: 360px;
    bottom: -140px;
    left: 8%;
    background: rgba(59, 130, 246, 0.45);
}

.hero-shell {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 22px 58px;
}

.hero-carousel {
    position: relative;
    min-height: 510px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 48px;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
    margin: 22px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.tag-row span {
    color: #0369a1;
    background: #e0f2fe;
}

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

.hero-poster {
    position: relative;
    height: 460px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    transform: perspective(900px) rotateY(-7deg);
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
}

.hero-dots {
    position: absolute;
    left: 22px;
    bottom: 42px;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section-shell,
.footer-shell,
.footer-bottom,
.detail-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.section-shell {
    padding-top: 64px;
    padding-bottom: 64px;
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: center;
    gap: 32px;
}

.intro-strip h2,
.section-heading h2,
.ranking-title h2,
.article-card h2,
.player-caption h2,
.category-detail-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.04em;
}

.intro-strip p,
.category-detail-card p,
.article-card p,
.player-caption p {
    color: var(--muted);
    line-height: 1.85;
}

.hero-search,
.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-search input,
.search-box input {
    width: 100%;
    min-height: 54px;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #0f172a;
    background: transparent;
}

.hero-search button {
    align-self: stretch;
    border: 0;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
    cursor: pointer;
}

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

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

.section-more,
.text-link {
    color: var(--blue);
    font-weight: 900;
}

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

.category-card,
.category-detail-card,
.article-card,
.player-card,
.ranking-box,
.movie-card,
.rank-row {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.84);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.category-card {
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.category-card::before,
.category-detail-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -45px auto;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.13), rgba(6, 182, 212, 0.24));
}

.category-card span {
    color: var(--blue);
    font-weight: 900;
}

.category-card strong {
    font-size: 19px;
    line-height: 1.3;
    color: #0f172a;
}

.category-card small {
    color: var(--muted);
}

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    font-size: 12px;
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    min-height: 56px;
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.45;
}

.movie-card p {
    min-height: 72px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.ranking-box {
    position: sticky;
    top: 98px;
    align-self: start;
    padding: 24px;
    border-radius: 28px;
}

.ranking-box ol {
    padding: 0;
    margin: 18px 0 22px;
    list-style: none;
}

.ranking-box li a {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.ranking-box li span {
    color: var(--blue);
    font-weight: 900;
}

.ranking-box li strong {
    color: #0f172a;
}

.ranking-box li em {
    display: block;
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.wide {
    width: 100%;
}

.soft-panel {
    background: rgba(255, 255, 255, 0.58);
    border-radius: 36px;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 80% 10%, rgba(125, 211, 252, 0.32), transparent 30%), linear-gradient(135deg, #0f172a, #1d4ed8 60%, #0891b2);
}

.page-hero {
    padding: 94px 22px 82px;
}

.page-hero > div {
    max-width: 1240px;
    margin: 0 auto;
}

.slim-hero {
    min-height: 310px;
}

.category-hero,
.ranking-hero {
    min-height: 360px;
}

.control-panel {
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 18px;
    align-items: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.search-box {
    box-shadow: none;
}

.search-box span {
    padding-left: 18px;
    white-space: nowrap;
    color: var(--blue);
    font-weight: 900;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-weight: 800;
}

.filter-chip.active,
.filter-chip:hover {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.category-detail-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 28px;
}

.category-detail-title {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--blue);
    font-weight: 900;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.inline-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
}

.detail-hero {
    padding: 56px 0 64px;
}

.detail-shell {
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
    color: #ffffff;
    font-weight: 800;
}

.detail-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-one-line {
    max-width: 840px;
    margin: 22px 0;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 999px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.article-card {
    border-radius: 28px;
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.64));
    cursor: pointer;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    font-size: 30px;
}

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

.player-caption,
.article-card {
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.rank-row p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.site-footer {
    margin-top: 40px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-shell {
    padding-top: 52px;
    padding-bottom: 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 900;
    font-size: 18px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    max-width: 440px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

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

.footer-bottom {
    padding-top: 22px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #94a3b8;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.is-filtered-out {
    display: none !important;
}

.no-result {
    grid-column: 1 / -1;
    padding: 34px;
    border: 1px dashed var(--line);
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-panel.is-open {
        display: grid;
        gap: 14px;
    }

    .hero-slide,
    .intro-strip,
    .hot-layout,
    .detail-layout,
    .detail-content,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .hero-poster {
        height: 420px;
        transform: none;
    }

    .ranking-box {
        position: static;
    }

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

    .control-panel,
    .category-detail-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .filter-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .nav-shell {
        height: 66px;
        padding: 0 16px;
    }

    main {
        padding-top: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-shell,
    .section-shell,
    .page-hero,
    .detail-shell,
    .footer-shell,
    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-shell {
        padding-top: 46px;
    }

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

    .hero-slide {
        gap: 28px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-poster {
        height: 330px;
        border-radius: 24px;
    }

    .hero-dots {
        bottom: 24px;
        left: 16px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
    }
}
