/* ============================================================
   Moban 8-10-45 · main.css
   Data-desk layout: content column + sticky stats rail
   ============================================================ */

html, body {
    overflow-x: hidden;
}

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

:root {
    --night: #0D1B2A;
    --night-soft: #14263C;
    --night-edge: #1E3350;
    --coral: #E0AFAF;
    --coral-deep: #C98A8A;
    --ivory: #F8F5F2;
    --ivory-soft: #FFFFFF;
    --ink: #17263B;
    --ink-soft: #4A5B73;
    --line: rgba(23, 38, 59, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--coral);
    color: var(--night);
    padding: 8px 16px;
    z-index: 999;
}
.skip-link:focus {
    left: 8px;
}

/* ---------- Buttons ---------- */
.btn-coral {
    display: inline-block;
    background: var(--coral);
    color: var(--night);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 14px rgba(224, 175, 175, 0.35);
}
.btn-coral:hover {
    background: #EBBFBF;
    color: var(--night);
    transform: translateY(-2px);
}
.btn-coral-block {
    display: block;
    text-align: center;
}
.btn-ghost {
    display: inline-block;
    border: 1px solid rgba(248, 245, 242, 0.35);
    color: var(--ivory);
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 6px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover {
    border-color: var(--coral);
    color: var(--coral);
}

/* ---------- Sticky header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(13, 27, 42, 0.35);
}
.header-topbar {
    background: var(--night-edge);
    color: rgba(248, 245, 242, 0.75);
    font-size: 12px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar-signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}
.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    animation: signal-pulse 1.6s ease-in-out infinite;
}
@keyframes signal-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(224, 175, 175, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(224, 175, 175, 0); }
}
.header-main {
    background: var(--night);
    border-bottom: 2px solid var(--coral);
}
.header-main-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand-logo {
    max-height: 44px;
    width: auto;
}
.site-nav {
    flex: 1;
    min-width: 0;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-menu li {
    position: relative;
}
.nav-menu a {
    display: block;
    color: var(--ivory);
    font-weight: 500;
    font-size: 15px;
    padding: 9px 15px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background: rgba(224, 175, 175, 0.14);
    color: var(--coral);
}
.nav-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--night-soft);
    border: 1px solid var(--night-edge);
    border-radius: 8px;
    padding: 8px;
    list-style: none;
    display: none;
    z-index: 910;
}
.nav-menu li:hover > ul.sub-menu {
    display: block;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(248, 245, 242, 0.3);
    border-radius: 6px;
    padding: 10px 11px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ivory);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero-slider {
    position: relative;
    background: var(--night);
}
.hero-slider-viewport {
    position: relative;
    height: 340px;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}
.hero-slide.is-active {
    opacity: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    color: var(--ivory);
    text-shadow: 0 2px 18px rgba(13, 27, 42, 0.8);
}
.hero-kicker {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--coral);
}
.hero-title {
    margin: 0 0 14px;
    color: var(--ivory);
    font-size: 38px;
    font-weight: 900;
    max-width: 640px;
}
.hero-dots {
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 26px;
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: rgba(248, 245, 242, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.hero-dot.is-active {
    background: var(--coral);
}

/* ---------- Two-column layout (grid-template-areas lives here only) ---------- */
.site-main {
    min-height: 40vh;
}
.layout-grid {
    display: grid;
    grid-template-areas: "content rail";
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 56px;
}
.content-col {
    grid-area: content;
    min-width: 0;
}
.stats-rail {
    grid-area: rail;
    min-width: 0;
}
.rail-sticky {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---------- Tabs ---------- */
.tab-board {
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(23, 38, 59, 0.06);
}
.tab-bar {
    display: flex;
    gap: 4px;
    background: var(--night);
    padding: 8px;
    border-radius: 12px 12px 0 0;
}
.tab-btn {
    flex: 1;
    border: 0;
    background: transparent;
    color: rgba(248, 245, 242, 0.7);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.tab-btn:hover {
    color: var(--ivory);
}
.tab-btn.is-active {
    background: var(--coral);
    color: var(--night);
}
.tab-panel {
    display: none;
    padding: 8px 20px 16px;
}
.tab-panel.is-active {
    display: block;
    animation: panel-in 0.35s ease;
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- List rows ---------- */
.list-row {
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--line);
}
.list-row:last-child {
    border-bottom: 0;
}
.list-thumb {
    flex: 0 0 168px;
    min-width: 0;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--night);
}
.list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.list-row:hover .list-thumb img {
    transform: scale(1.05);
    opacity: 0.9;
}
.list-body {
    flex: 1;
    min-width: 0;
}
.list-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}
.list-title a:hover {
    color: var(--coral-deep);
}
.list-excerpt {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 14px;
}
.list-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-soft);
}
.meta-tag {
    background: rgba(224, 175, 175, 0.28);
    color: #8F4F4F;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}
.meta-tag-hot {
    background: var(--night);
    color: var(--coral);
}
.meta-tag-dl {
    background: rgba(13, 27, 42, 0.08);
    color: var(--night);
}
.meta-download {
    margin-left: auto;
    color: var(--coral-deep);
    font-weight: 700;
}
.meta-download:hover {
    text-decoration: underline;
}

/* ---------- Section titles ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 20px;
    font-size: 24px;
    font-weight: 900;
}
.title-bar {
    width: 6px;
    height: 24px;
    background: var(--coral);
    border-radius: 3px;
}

/* ---------- Game grid ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.game-card {
    position: relative;
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(13, 27, 42, 0.16);
}
.game-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.game-name {
    display: block;
    padding: 12px 14px 2px;
    font-weight: 700;
    color: var(--ink);
}
.game-dl {
    display: block;
    padding: 0 14px 14px;
    font-size: 13px;
    color: var(--coral-deep);
    font-weight: 700;
}

/* ---------- Stats rail cards ---------- */
.rail-card {
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 22px rgba(23, 38, 59, 0.06);
}
.rail-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
}
.rail-live {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral-deep);
    animation: signal-pulse 1.6s ease-in-out infinite;
}
.rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}
.rank-row:last-child {
    border-bottom: 0;
}
.rank-num {
    flex: 0 0 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--night);
    color: var(--coral);
    font-weight: 900;
    font-size: 15px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
}
.rank-row:first-of-type .rank-num {
    background: var(--coral);
    color: var(--night);
}
.rank-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}
.rank-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.rank-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-count {
    font-size: 12px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.rating-score {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.rating-big {
    font-size: 42px;
    font-weight: 900;
    color: var(--night);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.rating-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.rating-stars {
    color: var(--coral-deep);
    letter-spacing: 2px;
}
.rating-total {
    font-size: 12px;
    color: var(--ink-soft);
}
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rating-bar-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.bar-track {
    height: 7px;
    background: rgba(23, 38, 59, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: block;
}
.bar-track b {
    display: block;
    height: 100%;
    background: var(--coral);
    border-radius: 4px;
}
.rail-note {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--ink-soft);
}
.rail-download .btn-coral {
    margin-bottom: 10px;
}
.rail-login {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--night);
}
.rail-login:hover {
    color: var(--coral-deep);
}

/* ---------- Page heads / single / archive ---------- */
.page-head {
    margin-bottom: 18px;
    border-left: 5px solid var(--coral);
    padding-left: 18px;
}
.page-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--coral-deep);
}
.page-title {
    margin: 0;
    font-size: 32px;
}
.page-desc {
    margin-top: 10px;
    color: var(--ink-soft);
}
.post-list {
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 22px;
    box-shadow: 0 6px 22px rgba(23, 38, 59, 0.06);
}
.pagination-nav {
    margin-top: 26px;
    text-align: center;
}
.pagination-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination-nav a,
.pagination-nav span {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    color: var(--ink);
}
.pagination-nav .current {
    background: var(--night);
    color: var(--coral);
    border-color: var(--night);
}
.single-post,
.single-page {
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px 34px;
    box-shadow: 0 6px 22px rgba(23, 38, 59, 0.06);
}
.single-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.single-title {
    margin: 0 0 12px;
    font-size: 30px;
}
.single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 14px;
}
.meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--coral-deep);
}
.single-thumb {
    margin: 0 0 22px;
    border-radius: 10px;
    overflow: hidden;
}
.single-thumb img {
    width: 100%;
    display: block;
}
.single-content {
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: break-word;
}
.single-content h2,
.single-content h3 {
    margin-top: 1.4em;
}
.single-content p {
    margin: 0 0 1.1em;
}
.single-content img {
    border-radius: 8px;
}
.single-content a {
    color: var(--coral-deep);
    font-weight: 700;
}
.single-cta {
    margin-top: 26px;
    background: var(--night);
    color: var(--ivory);
    border-radius: 12px;
    padding: 24px 26px;
    text-align: center;
}
.single-cta h3 {
    color: var(--coral);
    margin: 0 0 8px;
    font-size: 20px;
}
.single-cta p {
    margin: 0 0 16px;
    color: rgba(248, 245, 242, 0.8);
}
.related-block .related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.related-card {
    background: var(--ivory-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
}
.related-card .list-thumb {
    flex: none;
    margin-bottom: 10px;
}
.related-card .list-title {
    font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--night);
    color: rgba(248, 245, 242, 0.82);
    margin-top: 20px;
}
.footer-ticker {
    overflow: hidden;
    background: var(--coral);
    color: var(--night);
    padding: 8px 0;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.ticker-track {
    display: inline-flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker-move 26s linear infinite;
}
.ticker-sep {
    opacity: 0.55;
}
@keyframes ticker-move {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.footer-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-top: 46px;
    padding-bottom: 34px;
}
.footer-title {
    color: var(--ivory);
    margin: 0 0 14px;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.footer-about p {
    font-size: 14px;
    margin: 0 0 16px;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--coral);
}
.footer-col p {
    font-size: 14px;
    margin: 0 0 12px;
}
.footer-warning {
    background: var(--night-soft);
    border-top: 1px solid var(--night-edge);
    border-bottom: 1px solid var(--night-edge);
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
}
.footer-warning p {
    margin: 4px 0;
}
.footer-bottom {
    padding: 16px 0;
    font-size: 13px;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
