@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

/* ====== Chống tràn ngang ====== */
html, body { overflow-x: hidden; }

:root {
    --purple: #4A148C;
    --purple-deep: #2B0B54;
    --ink: #160931;
    --ink-soft: #1F0F42;
    --neon: #00E5FF;
    --neon-soft: rgba(0, 229, 255, 0.35);
    --light: #F8F6FC;
    --muted: #6E6488;
    --radius: 12px;
    --font-display: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--light);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--neon); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 0.6em; color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====== Nút ====== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 15px 40px; font-size: 18px; }
.btn-login {
    color: #E7DBFF;
    border-color: rgba(231, 219, 255, 0.35);
    background: transparent;
}
.btn-login:hover { border-color: var(--neon); color: var(--neon); }
.btn-register {
    color: var(--ink);
    background: linear-gradient(135deg, var(--neon), #7CF5FF);
    box-shadow: 0 0 18px var(--neon-soft);
}
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 0 28px var(--neon-soft); color: var(--ink); }
.btn-neon {
    color: var(--ink);
    background: linear-gradient(135deg, var(--neon), #6DF3FF);
    box-shadow: 0 0 20px var(--neon-soft), 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.6), 0 10px 24px rgba(0, 0, 0, 0.3);
    color: var(--ink);
}

.neon-text { color: var(--neon); text-shadow: 0 0 16px var(--neon-soft); }
.eyebrow-neon {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--neon);
    margin: 0 0 10px;
}

/* ====== Header tối màu ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    box-shadow: 0 4px 30px rgba(22, 9, 49, 0.55);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}
.site-logo { margin-right: auto; min-width: 0; }
.logo-img { max-height: 46px; width: auto; }
.header-actions { display: flex; gap: 10px; }

/* Nút hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 12px 11px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: var(--radius);
    cursor: pointer;
    transition: box-shadow 0.25s ease;
}
.nav-toggle:hover { box-shadow: 0 0 16px var(--neon-soft); }
.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--neon);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ====== Menu toàn màn hình ====== */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: radial-gradient(circle at 20% 20%, #5B1CA8 0%, var(--purple-deep) 45%, var(--ink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
.nav-overlay-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
}
.nav-overlay-orb-1 { width: 380px; height: 380px; background: var(--neon); top: -120px; right: -100px; }
.nav-overlay-orb-2 { width: 300px; height: 300px; background: #9C27B0; bottom: -100px; left: -80px; }
.nav-overlay-inner { position: relative; text-align: center; padding: 20px; }
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.nav-menu li a {
    font-family: var(--font-display);
    font-size: clamp(26px, 5vw, 44px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E7DBFF;
    text-shadow: 0 0 0 transparent;
    transition: color 0.3s ease, text-shadow 0.3s ease, letter-spacing 0.3s ease;
}
.nav-menu li a:hover {
    color: var(--neon);
    text-shadow: 0 0 22px var(--neon-soft);
    letter-spacing: 0.14em;
}
.overlay-nav-footer { margin-top: 40px; }
.overlay-nav-note { color: rgba(231, 219, 255, 0.6); font-size: 13px; margin: 16px 0 0; }

/* ====== Dải gallery ngang (poster DJ) ====== */
.gallery-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--ink) 0%, var(--purple-deep) 70%, var(--purple) 100%);
    padding: 56px 0 70px;
}
.gallery-band-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(0, 229, 255, 0.16) 0, transparent 32%),
        radial-gradient(circle at 85% 70%, rgba(156, 39, 176, 0.35) 0, transparent 38%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 90px);
    pointer-events: none;
}
.gallery-band-head { position: relative; text-align: center; margin-bottom: 36px; }
.band-title { font-size: clamp(30px, 5vw, 52px); color: #fff; margin-bottom: 8px; }
.band-sub { color: rgba(231, 219, 255, 0.75); margin: 0; }

.gallery-band-wrap { position: relative; min-width: 0; }
.gallery-track {
    display: flex;
    gap: 28px;
    min-width: 0;
    overflow-x: auto;
    padding: 30px 60px 40px;
    perspective: 1100px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-card {
    flex: 0 0 auto;
    width: 250px;
    min-width: 0;
    text-align: center;
    scroll-snap-align: center;
    transform: rotateY(-7deg);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
}
.gallery-card:nth-child(even) { transform: rotateY(7deg); }
.gallery-card:hover { transform: rotateY(0deg) translateY(-10px) scale(1.03); }
.gallery-card-frame {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.25), 0 22px 40px rgba(0, 0, 0, 0.45);
    background: var(--ink);
}
.gallery-card:hover .gallery-card-frame { box-shadow: 0 0 40px rgba(0, 229, 255, 0.5), 0 26px 48px rgba(0, 0, 0, 0.5); }
.gallery-card-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-card-label {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon);
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.5);
    background: rgba(22, 9, 49, 0.8);
    color: var(--neon);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}
.gallery-arrow:hover { box-shadow: 0 0 18px var(--neon-soft); background: rgba(74, 20, 140, 0.9); }
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }

/* ====== Dải marquee ====== */
.ticker-band { background: var(--purple); border-top: 1px solid rgba(0, 229, 255, 0.35); border-bottom: 1px solid rgba(0, 229, 255, 0.35); }
.ticker { overflow: hidden; padding: 14px 0; }
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
    flex: 0 0 auto;
    padding: 0 26px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon);
    white-space: nowrap;
    border-right: 1px solid rgba(0, 229, 255, 0.25);
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ====== Khối CTA ====== */
.cta-band {
    background: linear-gradient(135deg, var(--purple-deep), var(--purple));
    padding: 64px 0;
    text-align: center;
}
.cta-title { font-size: clamp(26px, 4vw, 40px); color: #fff; margin-bottom: 10px; }
.cta-desc { color: rgba(231, 219, 255, 0.8); max-width: 560px; margin: 0 auto 26px; }

/* ====== Tiêu đề khối ====== */
.section-title {
    position: relative;
    font-size: clamp(24px, 3vw, 32px);
    padding-left: 18px;
    margin: 0 0 28px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--neon), var(--purple));
    box-shadow: 0 0 12px var(--neon-soft);
}
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-more { font-family: var(--font-display); font-weight: 600; color: var(--purple); }
.link-more:hover { color: var(--neon); }

/* ====== Lưới game ====== */
.games-section { padding: 60px 0 10px; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(74, 20, 140, 0.12);
    box-shadow: 0 8px 22px rgba(74, 20, 140, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(74, 20, 140, 0.22); }
.game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.game-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
}
.game-card-info h3 { font-size: 15px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ====== Lưới tin tức ====== */
.news-section { padding: 56px 0 70px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-grid-list { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(74, 20, 140, 0.1);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(74, 20, 140, 0.18); }
.news-card-link { display: block; color: inherit; }
.news-card-thumb { overflow: hidden; }
.news-card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-thumb img { transform: scale(1.06); }
.news-card-body { padding: 16px 18px 20px; }
.news-card-date { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.news-card-title { font-size: 17px; margin: 8px 0 8px; }
.news-card-excerpt { font-size: 14px; color: var(--muted); margin: 0; }
.empty-note { color: var(--muted); }

/* ====== Hero trang trong ====== */
.page-hero {
    background: linear-gradient(135deg, var(--ink), var(--purple-deep));
    padding: 54px 0;
    text-align: center;
}
.page-hero-title { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 6px; }
.page-hero-sub { color: rgba(231, 219, 255, 0.75); margin: 0; }

/* ====== Bố cục archive / single (grid-template-areas) ====== */
.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: 'main side';
    gap: 34px;
    align-items: start;
    padding: 46px 0 70px;
}
.archive-main { grid-area: main; min-width: 0; }
.archive-sidebar { grid-area: side; min-width: 0; }

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: 'main side';
    gap: 34px;
    align-items: start;
    padding: 46px 0 70px;
}
.single-main { grid-area: main; min-width: 0; }
.single-sidebar { grid-area: side; min-width: 0; }

/* ====== Sidebar widget ====== */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(74, 20, 140, 0.1);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.08);
    padding: 20px 22px;
    margin-bottom: 22px;
}
.widget-title { font-size: 17px; margin-bottom: 14px; color: var(--purple); }
.sidebar-search { display: flex; gap: 8px; }
.search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(74, 20, 140, 0.25);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}
.search-input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
.search-btn {
    border: none;
    border-radius: var(--radius);
    background: var(--purple);
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.25s ease;
}
.search-btn:hover { background: var(--neon); }
.sidebar-cat-list, .sidebar-recent-list { list-style: none; margin: 0; padding: 0; }
.sidebar-cat-list li, .sidebar-recent-list li { padding: 8px 0; border-bottom: 1px dashed rgba(74, 20, 140, 0.15); font-size: 14px; }
.sidebar-cat-list li:last-child, .sidebar-recent-list li:last-child { border-bottom: none; }
.sidebar-widget-cta { background: linear-gradient(135deg, var(--purple-deep), var(--purple)); color: #fff; text-align: center; }
.sidebar-widget-cta .widget-title { color: var(--neon); }
.sidebar-widget-cta p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }

/* ====== Nội dung bài viết ====== */
.single-header { margin-bottom: 24px; }
.single-cats { margin-bottom: 12px; }
.single-cats a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 6px 6px 0;
    border-radius: 999px;
    background: rgba(74, 20, 140, 0.08);
    color: var(--purple);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.single-title { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.single-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.single-content { font-size: 17px; }
.single-content p { margin: 0 0 1.2em; }
.single-content img { border-radius: var(--radius); }
.single-content h2 { font-size: 26px; margin-top: 1.4em; }
.single-content h3 { font-size: 21px; margin-top: 1.2em; }
.single-content a { color: var(--purple); text-decoration: underline; }
.single-content a:hover { color: var(--neon); }
.single-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    border-left: 4px solid var(--neon);
    background: rgba(0, 229, 255, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.page-article { max-width: 860px; margin: 0 auto; padding: 46px 0 30px; }
.page-header-block { margin-bottom: 24px; }

.single-cta {
    margin: 34px 0;
    padding: 26px;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--purple-deep), var(--purple));
    color: #fff;
}
.single-cta p { margin: 0 0 14px; font-weight: 600; }
.single-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.single-nav-item { max-width: 48%; min-width: 0; }
.single-nav-item a { font-weight: 600; }

/* ====== Phân trang ====== */
.pagination-bar { margin: 36px 0 0; text-align: center; }
.pagination-bar .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination-bar .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 8px 14px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid rgba(74, 20, 140, 0.18);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--purple);
    transition: all 0.25s ease;
}
.pagination-bar .page-numbers:hover { border-color: var(--neon); box-shadow: 0 0 14px var(--neon-soft); }
.pagination-bar .page-numbers.current { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 0 16px rgba(74, 20, 140, 0.4); }

/* ====== Bình luận ====== */
.comments-area { margin-top: 20px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px dashed rgba(74, 20, 140, 0.15); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(74, 20, 140, 0.25);
    font-family: var(--font-body);
    margin-bottom: 12px;
    outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
.form-submit .submit {
    padding: 11px 28px;
    border: none;
    border-radius: var(--radius);
    background: var(--purple);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}
.form-submit .submit:hover { background: var(--neon); color: var(--ink); }

/* ====== Footer ====== */
.site-footer {
    background: linear-gradient(180deg, var(--ink-soft), var(--ink));
    color: rgba(231, 219, 255, 0.75);
    padding: 50px 0 30px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 34px;
}
.footer-widget .widget-title { color: var(--neon); background: none; border: none; padding: 0; box-shadow: none; font-size: 17px; }
.footer-widget a { color: rgba(231, 219, 255, 0.75); }
.footer-widget a:hover { color: var(--neon); }
.footer-bottom { text-align: center; padding-top: 26px; border-top: 1px solid rgba(231, 219, 255, 0.12); }
.disclaimer-text { font-size: 13px; line-height: 1.8; color: rgba(231, 219, 255, 0.55); max-width: 760px; margin: 18px auto 0; }

/* ====== Hiệu ứng hiện dần khi cuộn ====== */
.scroll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
