/* ============================================================
   MOBAN 8-10-48 — main.css
   Trạm không gian neon: hero toàn màn hình + áp phích lơ lửng
   ============================================================ */

html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

:root {
    --c-deep: #1B1B3A;
    --c-neon: #6FFFE9;
    --c-bg: #0F0F23;
    --c-text: #EAEAEA;
    --c-dim: #9a9ac0;
    --c-card: #181832;
    --c-line: rgba(111, 255, 233, 0.18);
    --glow-neon: 0 0 10px rgba(111, 255, 233, 0.65), 0 0 30px rgba(111, 255, 233, 0.35);
    --font-display: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', 'Roboto', sans-serif;
    --header-h: 72px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: #ffffff;
}

a { color: var(--c-neon); text-decoration: none; transition: color 0.25s ease, text-shadow 0.25s ease; }
a:hover { color: #b3fff4; text-shadow: var(--glow-neon); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--c-deep);
    color: var(--c-neon);
    padding: 10px 18px;
}
.skip-link:focus { left: 12px; }

/* Tinh vân nền cố định */
.nebula-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 15% 20%, rgba(63, 48, 131, 0.45), transparent 70%),
        radial-gradient(ellipse 55% 40% at 85% 70%, rgba(15, 90, 110, 0.35), transparent 70%),
        radial-gradient(circle 2px at 22% 30%, rgba(255,255,255,0.8), transparent 3px),
        radial-gradient(circle 1.5px at 70% 15%, rgba(255,255,255,0.6), transparent 3px),
        radial-gradient(circle 2px at 55% 80%, rgba(111,255,233,0.7), transparent 3px),
        radial-gradient(circle 1.5px at 88% 40%, rgba(255,255,255,0.5), transparent 3px),
        radial-gradient(circle 1.5px at 10% 65%, rgba(111,255,233,0.5), transparent 3px);
    background-color: var(--c-bg);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.92), rgba(15, 15, 35, 0.72));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { min-width: 0; }
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-logo { max-height: 44px; width: auto; filter: drop-shadow(0 0 8px rgba(111, 255, 233, 0.4)); }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-nav { flex: 1; min-width: 0; }
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.nav-menu li { min-width: 0; }
.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--c-text);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--c-neon);
    background: rgba(111, 255, 233, 0.08);
    text-shadow: none;
    box-shadow: inset 0 0 0 1px var(--c-line);
}
.header-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 10px 9px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-neon);
    box-shadow: var(--glow-neon);
}

/* ---------- Nút neon ---------- */
.btn-neon,
.btn-ghost {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 34px;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-neon {
    color: #06251f;
    background: var(--c-neon);
    box-shadow: 0 0 18px rgba(111, 255, 233, 0.55), 0 0 46px rgba(111, 255, 233, 0.25);
}
.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 26px rgba(111, 255, 233, 0.85), 0 0 70px rgba(111, 255, 233, 0.4);
    color: #041b17;
    text-shadow: none;
}
.btn-ghost {
    color: var(--c-neon);
    border: 1px solid var(--c-neon);
    background: transparent;
}
.btn-ghost:hover { background: rgba(111, 255, 233, 0.1); transform: translateY(-3px); text-shadow: none; }
.btn-small { padding: 9px 22px; font-size: 12px; }
.btn-large { padding: 18px 46px; font-size: 16px; }

/* ---------- HERO toàn màn hình ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    inset: -8% 0;
    z-index: -1;
    will-change: transform;
}
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 45%, rgba(15, 15, 35, 0.35), rgba(15, 15, 35, 0.9) 85%),
        linear-gradient(180deg, rgba(15, 15, 35, 0.55), rgba(15, 15, 35, 0.25) 45%, var(--c-bg));
}
.hero-content {
    position: relative;
    max-width: 860px;
    padding: calc(var(--header-h) + 40px) 24px 60px;
}
.hero-eyebrow {
    font-family: var(--font-display);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--c-neon);
    margin: 0 0 18px;
}
.hero-title {
    font-size: clamp(38px, 7vw, 84px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 22px;
}
.neon-line { display: block; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.neon-accent {
    color: var(--c-neon);
    text-shadow: 0 0 12px rgba(111, 255, 233, 0.8), 0 0 42px rgba(111, 255, 233, 0.45), 0 0 90px rgba(111, 255, 233, 0.3);
    animation: neon-pulse 3.2s ease-in-out infinite;
}
@keyframes neon-pulse {
    0%, 100% { text-shadow: 0 0 12px rgba(111, 255, 233, 0.8), 0 0 42px rgba(111, 255, 233, 0.45), 0 0 90px rgba(111, 255, 233, 0.3); }
    50% { text-shadow: 0 0 8px rgba(111, 255, 233, 0.6), 0 0 26px rgba(111, 255, 233, 0.3), 0 0 60px rgba(111, 255, 233, 0.18); }
}
.hero-desc {
    max-width: 640px;
    margin: 0 auto 34px;
    color: var(--c-dim);
    font-size: 17px;
}
.hero-cta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--c-line);
    border-radius: 14px;
}
.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--c-neon);
    box-shadow: var(--glow-neon);
    animation: scroll-drop 1.8s ease-in-out infinite;
}
@keyframes scroll-drop {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Điều hướng chấm tròn ---------- */
.dot-nav {
    position: fixed;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dot {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(234, 234, 234, 0.28);
    box-shadow: 0 0 0 3px rgba(234, 234, 234, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.dot:hover { background: rgba(111, 255, 233, 0.6); transform: scale(1.25); }
.dot.is-active {
    background: var(--c-neon);
    box-shadow: 0 0 12px rgba(111, 255, 233, 0.9), 0 0 0 5px rgba(111, 255, 233, 0.15);
    transform: scale(1.3);
}
.dot-label {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    padding: 5px 12px;
    background: var(--c-deep);
    border: 1px solid var(--c-line);
    border-radius: 6px;
    color: var(--c-neon);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.dot:hover .dot-label,
.dot:focus-visible .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Panel chung ---------- */
.panel {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
}
.panel-bg {
    position: absolute;
    inset: -12% 0;
    z-index: -1;
    will-change: transform;
}
.panel-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.16;
    filter: saturate(0.8);
}
.panel-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-width: 0;
}
.panel-inner-narrow { max-width: 860px; }
.panel-head { text-align: center; margin-bottom: 64px; }
.panel-kicker {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 12px;
    color: var(--c-neon);
    margin: 0 0 14px;
}
.panel-title {
    font-size: clamp(28px, 4.4vw, 52px);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.panel-title em { font-style: normal; color: var(--c-neon); text-shadow: var(--glow-neon); }
.panel-sub { max-width: 620px; margin: 0 auto; color: var(--c-dim); }

/* ---------- Collage áp phích lơ lửng ---------- */
.panel-collage { background: linear-gradient(180deg, var(--c-bg), var(--c-deep) 55%, var(--c-bg)); }
.collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
        "p1 p1 p2 p3 p3 p3"
        "p1 p1 p2 p4 p5 p5"
        "p6 p6 p6 p4 p5 p5";
    gap: 34px;
    padding: 26px 6px 46px;
    align-items: start;
}
.poster-card {
    position: relative;
    margin: 0;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(111, 255, 233, 0.08);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.poster-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 12px;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(0deg, rgba(15, 15, 35, 0.92), transparent);
}
.poster-a { grid-area: p1; transform: rotate(-3deg) translateY(14px); animation: float-a 6s ease-in-out infinite; }
.poster-b { grid-area: p2; transform: rotate(2.5deg) translateY(-18px); animation: float-b 7.2s ease-in-out infinite; }
.poster-c { grid-area: p3; transform: rotate(-2deg) translateY(26px); animation: float-c 6.6s ease-in-out infinite; }
.poster-d { grid-area: p4; transform: rotate(3deg) translateY(-8px); animation: float-b 8s ease-in-out infinite; }
.poster-e { grid-area: p5; transform: rotate(-1.5deg) translateY(18px); animation: float-a 7.6s ease-in-out infinite; }
.poster-f { grid-area: p6; transform: rotate(2deg) translateY(-14px); animation: float-c 8.4s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes float-b { 0%, 100% { margin-top: 0; } 50% { margin-top: 10px; } }
@keyframes float-c { 0%, 100% { margin-top: 0; } 50% { margin-top: -9px; } }
.poster-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(111, 255, 233, 0.3);
    z-index: 2;
    animation-play-state: paused;
}

/* ---------- Lưới trò chơi ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}
.game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.game-thumb { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.game-name {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--c-neon);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(111, 255, 233, 0.25);
}
.game-card:hover .game-thumb img { transform: scale(1.1); }
.game-card:hover .game-name { color: var(--c-neon); text-shadow: none; }

/* ---------- Tin tức ---------- */
.panel-news { background: linear-gradient(180deg, var(--c-bg), var(--c-deep) 60%, var(--c-bg)); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-card);
    border: 1px solid rgba(111, 255, 233, 0.1);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(111, 255, 233, 0.18);
}
.news-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.07); }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; min-width: 0; }
.news-date { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-neon); }
.news-title { font-size: 18px; margin: 0; line-height: 1.4; }
.news-title a { color: #fff; }
.news-title a:hover { color: var(--c-neon); text-shadow: none; }
.news-excerpt { margin: 0; color: var(--c-dim); font-size: 14px; flex: 1; }
.news-more { font-weight: 600; font-size: 14px; }
.news-empty { text-align: center; color: var(--c-dim); grid-column: 1 / -1; }

/* ---------- CTA ---------- */
.panel-cta { text-align: center; }
.panel-cta .panel-bg-img { opacity: 0.22; }
.cta-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ---------- Bài viết đơn / trang ---------- */
.article-neon {
    background: rgba(24, 24, 50, 0.6);
    border: 1px solid var(--c-line);
    border-radius: 16px;
    padding: 44px;
    min-width: 0;
}
.article-head { margin-bottom: 28px; }
.article-title { font-size: clamp(26px, 4vw, 44px); margin-bottom: 14px; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--c-dim); font-size: 14px; }
.meta-sep { color: var(--c-neon); }
.article-hero { margin: 0 0 30px; border-radius: 12px; overflow: hidden; }
.article-content { color: #d5d5e6; min-width: 0; }
.article-content p { margin: 0 0 1.3em; }
.article-content h2, .article-content h3 { margin-top: 1.6em; color: #fff; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--c-neon);
    background: rgba(111, 255, 233, 0.06);
    border-radius: 0 10px 10px 0;
    color: var(--c-text);
}
.article-content img { border-radius: 10px; }
.article-tags { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-dim); }
.article-tags a { margin-right: 4px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin: 34px 0; flex-wrap: wrap; }
.article-nav a { font-weight: 600; }
.page-links-neon { margin: 24px 0; color: var(--c-neon); font-weight: 600; }

/* ---------- Phân trang ---------- */
.pagination-neon { margin-top: 56px; text-align: center; }
.pagination-neon .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.pagination-neon .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    color: var(--c-text);
    font-weight: 600;
}
.pagination-neon .page-numbers.current {
    background: var(--c-neon);
    color: #06251f;
    border-color: var(--c-neon);
    box-shadow: 0 0 18px rgba(111, 255, 233, 0.5);
}
.pagination-neon a.page-numbers:hover { border-color: var(--c-neon); color: var(--c-neon); text-shadow: none; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    margin-top: 40px;
    background: var(--c-deep);
    border-top: 1px solid var(--c-line);
    overflow: hidden;
}
.footer-constellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 2px at 12% 25%, rgba(111, 255, 233, 0.6), transparent 3px),
        radial-gradient(circle 1.5px at 38% 70%, rgba(255, 255, 255, 0.4), transparent 3px),
        radial-gradient(circle 2px at 66% 30%, rgba(111, 255, 233, 0.45), transparent 3px),
        radial-gradient(circle 1.5px at 88% 60%, rgba(255, 255, 255, 0.5), transparent 3px);
}
.footer-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 70px 24px 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-bottom: 50px; }
.footer-col { min-width: 0; }
.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-neon);
    margin-bottom: 18px;
}
.footer-about { color: var(--c-dim); font-size: 14px; margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--c-text); font-size: 14px; }
.footer-links a:hover { color: var(--c-neon); text-shadow: none; }
.footer-badge { margin: 0 auto 26px; max-width: 130px; }
.footer-badge img { filter: brightness(0.9); }
.footer-warning {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
    color: #ffb4a2;
    font-size: 13px;
    line-height: 1.8;
    background: rgba(255, 107, 74, 0.07);
    border: 1px solid rgba(255, 107, 74, 0.25);
    border-radius: 12px;
    padding: 16px 22px;
}
.footer-copy { text-align: center; color: var(--c-dim); font-size: 13px; margin: 0; }

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
