@import url('https://fonts.googleapis.com/css2?family=Paytone+One&family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   Moban 8-10-28 — Ngang cuộn gallery · Gạch nung ấm
   ============================================================ */

html, body { overflow-x: hidden; }

:root {
    --brick: #BF360C;
    --brick-deep: #8C2703;
    --brick-glow: #FF7043;
    --sand: #D7CCC8;
    --sand-deep: #BCAAA4;
    --cream: #FBEFE9;
    --cream-soft: #FFF8F4;
    --ink: #33201A;
    --ink-soft: #6D4C41;
    --gold: #F9A825;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow-warm: 0 14px 34px -14px rgba(140, 39, 3, 0.35);
    --font-display: 'Paytone One', 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 12% -6%, rgba(255, 112, 67, 0.14), transparent 42%),
        radial-gradient(circle at 92% 18%, rgba(215, 204, 200, 0.55), transparent 46%),
        repeating-linear-gradient(-38deg, rgba(191, 54, 12, 0.025) 0 2px, transparent 2px 26px);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brick-deep); }

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

.site-content { min-height: 60vh; }

/* ============================================================
   Nút bấm
   ============================================================ */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brick) 0%, var(--brick-deep) 100%);
    color: #FFF3EC;
    box-shadow: 0 6px 16px -6px rgba(140, 39, 3, 0.65);
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -8px rgba(140, 39, 3, 0.75);
}

.btn-login {
    background: transparent;
    color: var(--brick);
    border-color: var(--brick);
}

.btn-login:hover { background: rgba(191, 54, 12, 0.08); color: var(--brick-deep); }

.btn-register {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 6px 16px -6px rgba(249, 168, 37, 0.7);
}

.btn-register:hover {
    transform: translateY(-2px);
    color: var(--ink);
    box-shadow: 0 12px 22px -8px rgba(249, 168, 37, 0.8);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-xs { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 14px 34px; font-size: 17px; border-radius: 10px; }

/* ============================================================
   Header — thanh tiêu chuẩn: logo trái · menu giữa · nút phải
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(251, 239, 233, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--brick);
    box-shadow: 0 8px 24px -16px rgba(140, 39, 3, 0.5);
}

.header-inner {
    display: grid;
    grid-template-areas: "logo nav actions";
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.site-logo { grid-area: logo; min-width: 0; }
.logo-img { max-height: 48px; width: auto; }

.main-nav {
    grid-area: nav;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
    background: var(--brick);
    color: #FFF3EC;
    transform: translateY(-1px);
}

.header-actions {
    grid-area: actions;
    min-width: 0;
    display: flex;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--brick);
    border-radius: var(--radius);
    width: 44px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brick);
    transition: transform .2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; margin-top: 5px; }
.nav-toggle-icon::before { margin-top: 0; }

/* ============================================================
   Đầu gallery chung
   ============================================================ */
.gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 18px;
    padding: 42px 0 20px;
}

.gallery-kicker {
    display: inline-block;
    background: var(--brick);
    color: #FFF3EC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
}

.gallery-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    color: var(--ink);
    letter-spacing: -0.5px;
}

.gallery-title em {
    font-style: normal;
    color: var(--brick);
    position: relative;
}

.gallery-title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--brick-glow));
    opacity: .85;
}

.gallery-note {
    margin: 0 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* ============================================================
   Dải 1 — Poster lớn, trượt ngang + thị sai nhẹ
   ============================================================ */
.hero-gallery {
    min-width: 0;
    padding-bottom: 10px;
}

.poster-gallery {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: var(--brick) var(--sand);
    scrollbar-width: thin;
    padding: 10px 4vw 26px;
    -webkit-overflow-scrolling: touch;
}

.poster-gallery::-webkit-scrollbar { height: 10px; }
.poster-gallery::-webkit-scrollbar-track { background: var(--sand); border-radius: 999px; }
.poster-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--brick), var(--brick-glow));
    border-radius: 999px;
}

.poster-track {
    display: flex;
    gap: 26px;
    min-width: 0;
    width: max-content;
}

.poster-slide {
    min-width: 0;
    flex: 0 0 auto;
    width: clamp(280px, 52vw, 560px);
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cream-soft);
    border: 3px solid var(--sand);
    box-shadow: var(--shadow-warm);
    position: relative;
    transition: transform .3s ease, border-color .3s ease;
}

.poster-slide:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    border-color: var(--brick-glow);
}

.poster-slide:nth-child(even):hover { transform: translateY(-6px) rotate(0.4deg); }

.poster-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: translateY(var(--parallax-y, 0px)) scale(1.08);
    will-change: transform;
    transition: transform .1s linear;
}

.poster-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--cream-soft), var(--cream));
    border-top: 2px dashed var(--sand-deep);
}

.poster-caption h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--brick-deep);
}

/* ============================================================
   Dải 2 — Biểu tượng game cuộn ngang
   ============================================================ */
.icon-gallery {
    min-width: 0;
    background: linear-gradient(180deg, var(--cream), #F6E3D8 55%, var(--cream));
    border-top: 3px dashed var(--sand);
    border-bottom: 3px dashed var(--sand);
    padding-bottom: 34px;
}

.icon-strip {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--brick-deep) var(--sand);
    padding: 8px 4vw 18px;
    -webkit-overflow-scrolling: touch;
}

.icon-strip::-webkit-scrollbar { height: 8px; }
.icon-strip::-webkit-scrollbar-track { background: var(--sand); border-radius: 999px; }
.icon-strip::-webkit-scrollbar-thumb {
    background: var(--brick-deep);
    border-radius: 999px;
}

.icon-track {
    display: flex;
    gap: 18px;
    min-width: 0;
    width: max-content;
}

.game-tile {
    min-width: 0;
    flex: 0 0 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    background: var(--cream-soft);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 18px -12px rgba(140, 39, 3, 0.4);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.game-tile:hover {
    transform: translateY(-8px);
    border-color: var(--brick);
    box-shadow: 0 18px 28px -14px rgba(140, 39, 3, 0.55);
}

.game-tile-img {
    width: 118px;
    height: 118px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--sand-deep);
    background: var(--sand);
}

.game-tile-img img { width: 100%; height: 100%; object-fit: cover; }

.game-tile-name {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.game-tile-rating {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 1px 0 rgba(140, 39, 3, 0.25);
}

/* ============================================================
   Bố cục nội dung — grid areas (chỉ khai báo tại đây)
   ============================================================ */
.content-layout,
.single-layout {
    display: grid;
    grid-template-areas: "main side";
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    padding: 46px 0 60px;
    align-items: start;
}

.main-col { grid-area: main; min-width: 0; }
.sidebar-col { grid-area: side; min-width: 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    color: var(--ink);
    padding-left: 16px;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 7px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--brick-glow), var(--brick-deep));
}

.link-more { font-weight: 700; font-size: 14px; }
.link-more:hover { letter-spacing: 0.4px; }

/* ---- Danh sách tin ---- */
.news-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.news-item {
    min-width: 0;
    background: var(--cream-soft);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    border-color: var(--brick-glow);
    box-shadow: var(--shadow-warm);
}

.news-link { display: flex; min-width: 0; }

.news-thumb {
    flex: 0 0 220px;
    min-width: 0;
    overflow: hidden;
    background: var(--sand);
}

.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-item:hover .news-thumb img { transform: scale(1.07); }

.news-body { flex: 1 1 auto; min-width: 0; padding: 18px 22px; }

.news-date {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brick);
    background: rgba(191, 54, 12, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.news-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
}

.news-excerpt { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; }

.news-readmore { font-weight: 700; font-size: 13.5px; color: var(--brick); }
.empty-note { color: var(--ink-soft); font-style: italic; }

/* ---- Lưới tin (archive / index) ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.news-card {
    min-width: 0;
    background: var(--cream-soft);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--brick-glow);
    box-shadow: var(--shadow-warm);
}

.news-card .news-link { flex-direction: column; }
.news-card .news-thumb { flex: none; height: 170px; }
.news-card .news-title { font-size: 17px; }

.pagination-bar { margin: 40px 0 10px; text-align: center; }
.pagination-bar .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination-bar .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 2px solid var(--sand);
    background: var(--cream-soft);
    font-weight: 700;
    color: var(--ink);
}
.pagination-bar .page-numbers.current { background: var(--brick); border-color: var(--brick); color: #FFF3EC; }
.pagination-bar .page-numbers:hover { border-color: var(--brick); }

/* ---- Đầu trang tĩnh / lưu trữ ---- */
.page-head { margin: 34px 0 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(26px, 4.5vw, 44px);
    color: var(--ink);
    line-height: 1.2;
}
.page-desc { color: var(--ink-soft); max-width: 720px; margin: 0; }

/* ---- Bài viết đơn ---- */
.single-article { min-width: 0; }
.single-thumb {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--sand);
    margin-bottom: 26px;
    box-shadow: var(--shadow-warm);
}
.single-thumb img { width: 100%; }

.entry-content {
    background: var(--cream-soft);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    font-size: 16px;
}

.entry-content img { border-radius: var(--radius); }
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-family: var(--font-display); color: var(--brick-deep); }
.entry-content a { text-decoration: underline; }
.entry-content blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    border-left: 5px solid var(--brick);
    background: rgba(191, 54, 12, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- Băng CTA ---- */
.cta-band {
    margin-top: 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, rgba(249, 168, 37, 0.35), transparent 55%),
        linear-gradient(120deg, var(--brick) 0%, var(--brick-deep) 78%);
    box-shadow: var(--shadow-warm);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 36px;
}

.cta-text h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    color: #FFF3EC;
}

.cta-text p { margin: 0; color: #FFD9C4; font-size: 15px; max-width: 520px; }

/* ---- Sidebar ---- */
.sidebar-col { display: flex; flex-direction: column; gap: 22px; }

.sidebar-widget {
    background: var(--cream-soft);
    border: 2px solid var(--sand);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: 0 10px 22px -16px rgba(140, 39, 3, 0.4);
}

.widget-title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--brick);
    border-bottom: 2px dashed var(--sand-deep);
    padding-bottom: 10px;
}

.sidebar-search { display: flex; gap: 8px; }
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 2px solid var(--sand);
    border-radius: var(--radius);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
}
.search-input:focus { outline: none; border-color: var(--brick); }
.search-btn {
    border: none;
    border-radius: var(--radius);
    background: var(--brick);
    color: #FFF3EC;
    padding: 0 14px;
    font-size: 15px;
    cursor: pointer;
}
.search-btn:hover { background: var(--brick-deep); }

.sidebar-cat-list,
.sidebar-popular-list { margin: 0; padding: 0; list-style: none; }

.sidebar-cat-list li a,
.sidebar-popular-list li a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}

.sidebar-cat-list li a:hover,
.sidebar-popular-list li a:hover {
    background: rgba(191, 54, 12, 0.08);
    color: var(--brick);
    padding-left: 18px;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(180deg, #4E342E, #33201A);
    color: var(--sand);
    padding: 46px 0 30px;
    border-top: 5px solid var(--brick);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.site-footer .widget-title {
    color: var(--gold);
    border-color: rgba(215, 204, 200, 0.3);
}

.site-footer a { color: var(--sand); }
.site-footer a:hover { color: var(--brick-glow); }

.footer-bottom { text-align: center; border-top: 1px solid rgba(215, 204, 200, 0.2); padding-top: 26px; }

.disclaimer-text {
    max-width: 760px;
    margin: 18px auto 10px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #D7CCC8;
}

.footer-copy { margin: 8px 0 0; font-size: 12.5px; color: var(--sand-deep); }

/* ---- Hiệu ứng cuộn xuất hiện ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-reveal { opacity: 1; transform: none; transition: none; }
    .poster-slide img { transition: none; }
}
