/* ============================================================
   Moban 8-10-47 — main.css
   Rạp chiếu ban đêm: đen mực, đỏ thẫm, kem nhạt
   ============================================================ */

html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Biến màu & phông chữ ===== */

:root {
    --ink: #141414;
    --ink-deep: #0d0d0d;
    --crimson: #F0544F;
    --crimson-dark: #c93d38;
    --paper: #F5F3F4;
    --ash: #1e1e1e;
    --line: rgba(245, 243, 244, 0.12);
    --display-font: 'Oswald', 'Franklin Gothic Medium', 'Arial Narrow', Impact, sans-serif;
    --body-font: 'Roboto', 'Helvetica Neue', sans-serif;
}

/* ===== Nút ===== */

.btn-crimson,
.btn-ghost,
.btn-ink {
    display: inline-block;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    padding: 0.75em 1.9em;
    border-radius: 2px;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
}

.btn-lg { padding: 1em 2.4em; font-size: 1rem; }

.btn-crimson {
    background: var(--crimson);
    color: var(--paper);
    box-shadow: 0 10px 30px rgba(240, 84, 79, 0.35);
}

.btn-crimson:hover {
    background: var(--crimson-dark);
    color: var(--paper);
    transform: translateY(-3px);
}

.btn-ghost {
    border: 1px solid var(--paper);
    color: var(--paper);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--paper);
    color: var(--ink);
    transform: translateY(-3px);
}

.btn-ink {
    background: var(--ink);
    color: var(--paper);
}

.btn-ink:hover {
    background: var(--crimson);
    color: var(--paper);
    transform: translateY(-3px);
}

/* ===== Header & nút hamburger biến hình ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.92), rgba(20, 20, 20, 0.65));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 5vw;
    min-width: 0;
}

.site-brand { min-width: 0; }

.brand-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.burger {
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: rgba(20, 20, 20, 0.6);
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
}

.burger-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.3, 0.32, 1.3), opacity 0.25s ease, top 0.35s ease;
}

.burger-line-1 { top: 15px; }
.burger-line-2 { top: 23px; }
.burger-line-3 { top: 31px; }

/* Biến hình thành chữ X khi mở menu */
body.nav-open .burger-line-1 { top: 23px; transform: rotate(45deg); background: var(--crimson); }
body.nav-open .burger-line-2 { opacity: 0; transform: translateX(12px); }
body.nav-open .burger-line-3 { top: 23px; transform: rotate(-45deg); background: var(--crimson); }
body.nav-open .burger { border-color: var(--crimson); }

/* ===== Bảng menu trượt từ phải (không dùng 100vw) ===== */

.nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 86%);
    background: var(--ink-deep);
    border-left: 1px solid var(--line);
    z-index: 100;
    transform: translateX(102%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
    overflow-y: auto;
}

body.nav-open .nav-panel { transform: translateX(0); }

.nav-panel-inner {
    padding: 96px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.nav-panel-label {
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.72rem;
    color: var(--crimson);
    margin: 0;
}

.nav-hotlink {
    display: inline-block;
    background: var(--crimson);
    color: var(--paper);
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.6em 1em;
    border-radius: 2px;
}

.nav-hotlink:hover { color: var(--ink); background: var(--paper); }

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-menu li { border-bottom: 1px solid var(--line); }

.nav-menu li a {
    display: block;
    padding: 16px 4px;
    font-family: var(--display-font);
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: var(--paper);
    transition: padding-left 0.25s ease, color 0.25s ease;
}

.nav-menu li a:hover { color: var(--crimson); padding-left: 14px; }

.nav-panel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-panel-note {
    font-size: 0.8rem;
    color: rgba(245, 243, 244, 0.45);
    margin: 16px 0 0;
}

.nav-mask {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(3px);
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.nav-open .nav-mask { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* ===== HERO toàn màn hình, chuyển ảnh mờ dần ===== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-width: 100%;
    overflow: hidden;
    background: var(--ink-deep);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1.4s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1.04);
    animation: heroBreath 9s ease-in-out infinite alternate;
}

@keyframes heroBreath {
    from { transform: scale(1.04); }
    to { transform: scale(1.12); }
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(13, 13, 13, 0.88) 8%, rgba(13, 13, 13, 0.35) 55%, rgba(240, 84, 79, 0.18) 100%),
        linear-gradient(0deg, var(--ink) 0%, rgba(20, 20, 20, 0) 34%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6vw;
    max-width: 900px;
    min-width: 0;
}

.hero-kicker {
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: var(--crimson);
    margin: 0 0 14px;
}

.hero-title {
    font-size: clamp(2.4rem, 6.5vw, 5rem);
    margin: 0 0 18px;
    color: var(--paper);
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}

.hero-title span { color: var(--crimson); display: inline-block; }

.hero-sub {
    max-width: 560px;
    color: rgba(245, 243, 244, 0.82);
    margin: 0 0 28px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 5vw;
    bottom: 42px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: rgba(245, 243, 244, 0.3);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.hero-dot.is-active { background: var(--crimson); width: 52px; }

/* ===== Dải chữ chạy liền mạch ===== */

.marquee {
    overflow: hidden;
    max-width: 100%;
    background: var(--crimson);
    color: var(--ink-deep);
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content;
    max-width: none;
    animation: marqueeRoll 36s linear infinite;
    min-width: 0;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeRoll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    padding: 12px 14px;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    font-weight: 700;
}

.marquee-item-hot { color: var(--paper); }

.marquee-star { font-style: normal; opacity: 0.65; }

/* ===== Đầu mục sân khấu ===== */

.stage-head {
    text-align: center;
    padding: 0 6vw;
    margin-bottom: 56px;
    min-width: 0;
}

.stage-title {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    margin: 0 0 12px;
    color: var(--paper);
}

.stage-title span { color: var(--crimson); }

.stage-sub {
    color: rgba(245, 243, 244, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

.stage-head-light .stage-title { color: var(--ink); }
.stage-head-light .stage-sub { color: rgba(20, 20, 20, 0.6); }

/* ===== Poster rơi chéo theo đường chéo ===== */

.poster-stage {
    background:
        radial-gradient(60% 40% at 80% 10%, rgba(240, 84, 79, 0.1), transparent 70%),
        var(--ink);
    padding: 96px 6vw 120px;
    max-width: 100%;
    overflow: hidden;
}

.poster-scatter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "poster-a poster-b poster-c"
        "poster-d poster-e poster-f";
    gap: 44px 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.poster-card { position: relative; display: block; min-width: 0; }
.poster-card:nth-child(1) { grid-area: poster-a; }
.poster-card:nth-child(2) { grid-area: poster-b; }
.poster-card:nth-child(3) { grid-area: poster-c; }
.poster-card:nth-child(4) { grid-area: poster-d; }
.poster-card:nth-child(5) { grid-area: poster-e; }
.poster-card:nth-child(6) { grid-area: poster-f; }

.poster-card img {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease;
}

/* Bậc thang chéo: lệch dần theo đường chéo + xoay nhẹ */
.poster-card:nth-child(1) img { transform: rotate(-2.4deg); }
.poster-card:nth-child(2) img { transform: rotate(1.8deg) translateY(46px); }
.poster-card:nth-child(3) img { transform: rotate(-1.2deg) translateY(92px); }
.poster-card:nth-child(4) img { transform: rotate(2.2deg) translateY(28px); }
.poster-card:nth-child(5) img { transform: rotate(-2deg) translateY(74px); }
.poster-card:nth-child(6) img { transform: rotate(1.4deg) translateY(120px); }

.poster-card:hover img {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
    border-color: var(--crimson);
    box-shadow: 0 34px 70px rgba(240, 84, 79, 0.28);
}

.poster-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--crimson);
    color: var(--paper);
    font-family: var(--display-font);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding: 5px 10px;
    border-radius: 2px;
}

.poster-name {
    display: block;
    margin-top: 16px;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--paper);
    font-size: 1.05rem;
}

/* ===== Kho game ===== */

.game-shelf {
    background: var(--ink-deep);
    padding: 96px 6vw;
    max-width: 100%;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px;
    max-width: 1180px;
    margin: 0 auto;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
}

.game-frame {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ash);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}

.game-frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-frame {
    transform: translateY(-6px);
    border-color: var(--crimson);
    box-shadow: 0 18px 40px rgba(240, 84, 79, 0.25);
}

.game-card:hover .game-frame img { transform: scale(1.08); }

.game-name {
    font-family: var(--display-font);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--paper);
}

.game-cta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--crimson);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-card:hover .game-cta { opacity: 1; transform: translateY(0); }

/* ===== Tin tức trên nền sáng ===== */

.news-paper {
    background: var(--paper);
    color: var(--ink);
    padding: 96px 6vw;
    max-width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(20, 20, 20, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    min-width: 0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 54px rgba(20, 20, 20, 0.16);
}

.news-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; min-width: 0; }

.news-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-media img { transform: scale(1.06); }

.news-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.news-date {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--crimson);
    font-weight: 700;
}

.news-title {
    font-size: 1.15rem;
    margin: 0;
    color: var(--ink);
}

.news-title a { color: inherit; }
.news-title a:hover { color: var(--crimson); }

.news-excerpt {
    color: rgba(20, 20, 20, 0.62);
    font-size: 0.92rem;
    min-width: 0;
}

.news-excerpt p { margin: 0; }

.news-readmore {
    margin-top: auto;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    color: var(--crimson);
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(20, 20, 20, 0.6);
}

.news-more { text-align: center; margin-top: 52px; }

/* ===== Banner trang nội dung ===== */

.page-banner {
    background:
        repeating-linear-gradient(115deg, rgba(240, 84, 79, 0.06) 0 2px, transparent 2px 26px),
        var(--ink-deep);
    padding: 150px 6vw 64px;
    max-width: 100%;
    border-bottom: 1px solid var(--line);
}

.page-banner-inner { max-width: 1180px; margin: 0 auto; min-width: 0; }

.page-banner-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    color: var(--paper);
    margin: 0 0 10px;
}

.page-banner .stage-sub { margin: 0; text-align: left; }

/* ===== Bài viết & trang tĩnh ===== */

.article-paper {
    background: var(--paper);
    color: var(--ink);
    max-width: 100%;
    padding: 72px 6vw;
}

.article-hero {
    max-width: 920px;
    margin: 0 auto 44px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(20, 20, 20, 0.18);
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    min-width: 0;
}

.article-content h2,
.article-content h3 {
    color: var(--ink);
    margin: 1.6em 0 0.6em;
}

.article-content a { color: var(--crimson); text-decoration: underline; }

.article-content img { border-radius: 6px; }

.article-content blockquote {
    border-left: 4px solid var(--crimson);
    margin: 1.6em 0;
    padding: 0.6em 1.4em;
    background: rgba(240, 84, 79, 0.07);
    font-style: italic;
}

.article-tags {
    max-width: 760px;
    margin: 36px auto 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.tag-chip {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 999px;
}

.article-nav {
    max-width: 760px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.article-nav-item {
    border: 1px solid rgba(20, 20, 20, 0.14);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    min-width: 0;
}

.article-nav-item-next { text-align: right; }

.article-nav-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--crimson);
    margin-bottom: 6px;
    font-weight: 700;
}

.article-nav-title { display: block; color: var(--ink); font-weight: 500; }

.page-links {
    margin: 1.4em 0;
    font-weight: 700;
    color: var(--crimson);
}

/* ===== Phân trang ===== */

.pagination-bar {
    max-width: 1180px;
    margin: 56px auto 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-block;
    min-width: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(20, 20, 20, 0.16);
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pagination-bar .page-numbers:hover,
.pagination-bar .page-numbers.current {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--paper);
}

/* ===== Dải kêu gọi hành động ===== */

.cta-band {
    background:
        radial-gradient(70% 90% at 50% 110%, rgba(240, 84, 79, 0.28), transparent 65%),
        var(--ink);
    padding: 96px 6vw;
    max-width: 100%;
    border-top: 1px solid var(--line);
}

.cta-band-slim { padding: 64px 6vw; }

.cta-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    min-width: 0;
}

.cta-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--paper);
    margin: 0 0 14px;
}

.cta-inner p { color: rgba(245, 243, 244, 0.7); margin: 0 0 28px; }

.cta-inner .hero-actions { justify-content: center; }

/* ===== Footer ===== */

.site-footer {
    background: var(--ink-deep);
    border-top: 1px solid var(--line);
    max-width: 100%;
}

.footer-top { padding: 72px 6vw 48px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.footer-col { min-width: 0; }

.footer-desc {
    color: rgba(245, 243, 244, 0.6);
    font-size: 0.92rem;
    margin: 18px 0 22px;
}

.footer-title {
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--paper);
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--crimson);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a { color: rgba(245, 243, 244, 0.6); font-size: 0.92rem; }
.footer-links a:hover { color: var(--crimson); }

.footer-dmca-note {
    color: rgba(245, 243, 244, 0.45);
    font-size: 0.8rem;
    margin-top: 14px;
}

.footer-warning {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(240, 84, 79, 0.08);
    padding: 22px 6vw;
    text-align: center;
}

.footer-warning p {
    max-width: 900px;
    margin: 4px auto;
    font-size: 0.86rem;
    color: rgba(245, 243, 244, 0.85);
}

.footer-warning p:first-child {
    color: var(--crimson);
    font-weight: 700;
}

.footer-bottom {
    padding: 22px 6vw;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(245, 243, 244, 0.45);
    letter-spacing: 0.06em;
}
