/*
Theme Name: THG Dark
Description: Dark military-tech cyberpunk layout for Transhuman Genocide
Version: 2.0
*/

/* ===== CURTAIN DROP ===== */
.curtain {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000; overflow: hidden; pointer-events: none;
}
.curtain > img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    filter: brightness(0.5) contrast(1.2) saturate(1.3);
    animation: curtainDrop 2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               curtainFade 1.2s ease-out 3s forwards;
}
.curtain-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(6,10,18,0.6) 100%);
    animation: curtainFade 1.2s ease-out 3s forwards;
}
.curtain-text { text-align: center; opacity: 0; animation: textIn 0.8s ease-out 1.2s forwards; }
.curtain-logo {
    font-family: 'Roboto', sans-serif; font-size: 64px; font-weight: 900;
    letter-spacing: 14px; color: #ff2244;
    text-shadow: 0 0 40px rgba(255,34,68,0.4), 0 0 80px rgba(255,34,68,0.15);
    line-height: 1;
}
.curtain-logo2 {
    font-family: 'Roboto', sans-serif; font-size: 64px; font-weight: 900;
    letter-spacing: 14px; color: #ff2244;
    text-shadow: 0 0 40px rgba(255,34,68,0.4), 0 0 80px rgba(255,34,68,0.15);
    line-height: 1; margin-bottom: 16px;
}
.curtain-book-cover {
    max-height: 40vh; max-width: 280px; width: auto;
    border: 1px solid rgba(255,34,68,0.3);
    box-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,34,68,0.15);
    margin: 16px auto; opacity: 0;
    animation: textIn 0.8s ease-out 1.8s forwards;
}
.curtain-sub {
    font-family: 'Courier New', monospace; font-size: 13px;
    letter-spacing: 5px; color: rgba(255,255,255,0.5); margin-bottom: 12px;
}
.curtain-init {
    font-family: 'Courier New', monospace; font-size: 12px;
    letter-spacing: 3px; color: #00d4ff; opacity: 0;
    animation: textIn 0.5s ease-out 2.2s forwards;
}
.blinker { animation: blink 1s step-end infinite; }
@keyframes curtainDrop { 0%{transform:translateY(-100%)} 100%{transform:translateY(0)} }
@keyframes curtainFade { 0%{opacity:1} 100%{opacity:0;visibility:hidden} }
@keyframes textIn { 0%{opacity:0;transform:translateY(15px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes blink { 50%{opacity:0} }
.curtain.done { display: none; }

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #060a12;
    --bg-secondary: #0a0f1a;
    --bg-card: #0c1220;
    --bg-card-hover: #101828;
    --text-primary: #e0e6f0;
    --text-secondary: #6b7a94;
    --text-bright: #ffffff;
    --accent-cyan: #00d4ff;
    --accent-blue: #1a8cff;
    --accent-deep: #0044aa;
    --accent-red: #ff2244;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --border-color: #1a2238;
    --border-glow: rgba(0, 212, 255, 0.25);
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Roboto', sans-serif;
    --font-accent: 'Gantari', sans-serif;
    --font-mono: 'Courier New', monospace;
    --grid-line: rgba(0, 212, 255, 0.06);
}

html, body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background */
body {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-cyan);
}

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

/* ===== SCANLINE OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.008) 2px,
        rgba(0, 212, 255, 0.008) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-cyan) 30%, var(--accent-blue) 70%, transparent 100%);
    opacity: 0.5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 14px 0;
    white-space: nowrap;
}

.site-logo a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 0;
    align-items: center;
    padding: 0;
    margin-left: 24px;
}

.site-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: center;
}

.site-nav li,
.site-nav .menu-item {
    list-style: none;
}

.site-nav a,
.site-nav .menu-item a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 14px 16px;
    color: #ffffff;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav .menu-item a:hover {
    color: var(--accent-cyan);
    background: var(--accent-glow);
}

/* Menu: wrap on smaller screens */
.site-nav {
    flex-wrap: wrap;
}

/* Menu: DUMB GRID tab — red accent */
.menu-item-dumb-grid a {
    color: var(--accent-red) !important;
}
.menu-item-dumb-grid a:hover {
    background: rgba(255, 34, 68, 0.1) !important;
    text-shadow: 0 0 10px rgba(255, 34, 68, 0.5);
}

/* Responsive menu */
@media (max-width: 1200px) {
    .site-nav a,
    .site-nav .menu-item a {
        padding: 14px 10px;
        font-size: 16px;
        letter-spacing: 3px;
    }
    .site-logo {
        font-size: 16px;
        letter-spacing: 3px;
    }
}
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
    }
    .site-logo {
        text-align: center;
        font-size: 18px;
        letter-spacing: 3px;
        padding: 10px 0;
    }
    .site-nav {
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--border-color);
    }
    .site-nav a,
    .site-nav .menu-item a {
        padding: 10px 8px;
        font-size: 18px;
        letter-spacing: 3px;
    }
}

/* ===== EVE TWO-COLUMN STAGE ===== */
.eve-stage {
    display: flex;
    gap: 0;
    height: 512px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    background: #050810;
    overflow: hidden;
}

.eve-col-video {
    flex: 0 0 512px;
    position: relative;
    background: #000;
}

.eve-col-video video {
    width: 512px;
    height: 512px;
    display: block;
}

.eve-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
}

.eve-col-chat {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    background: var(--bg-card);
}

.gemi-eve-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gemi-eve-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
}

.gemi-eve-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.gemi-eve-name {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.gemi-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.gemi-chat-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.gemi-chat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.gemi-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gemi-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.gemi-msg-user {
    align-self: flex-end;
    background: #ffffff;
    color: #000000;
    border-radius: 8px 8px 2px 8px;
}

.gemi-msg-eve {
    align-self: flex-end;
    background: rgba(255, 34, 68, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 34, 68, 0.2);
    border-radius: 8px 8px 2px 8px;
}

.gemi-chat-controls {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid var(--border-color);
    align-items: center;
    margin-top: auto;
}

.gemi-chat-input {
    flex: 1;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    color: #000000;
    font-family: var(--font-primary);
    font-size: 13px;
    outline: none;
}

.gemi-chat-input::placeholder {
    color: #999;
}

.gemi-ctrl-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: #2ecc40;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gemi-ctrl-btn:hover {
    background: #27ae35;
}

.gemi-btn-send {
    background: #2ecc40;
}

.gemi-btn-send:hover {
    background: #27ae35;
}

@media (max-width: 1024px) {
    .eve-stage {
        flex-direction: column;
        height: auto;
    }
    .eve-col-video {
        flex: none;
        width: 100%;
        height: auto;
    }
    .eve-col-video video {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .eve-col-chat {
        flex: none;
        width: 100%;
        aspect-ratio: 1 / 1;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 320px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.55) contrast(1.2) saturate(1.3);
}

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent 0%, rgba(6, 10, 18, 0.7) 50%, var(--bg-primary) 100%);
}

.hero-overlay h1 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-cyan);
}

.hero-overlay p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    white-space: nowrap;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.section-header .count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== THREE COLUMN LAYOUT ===== */
.three-col-wrap {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    align-items: flex-start;
}

.col-left {
    flex: 0 0 22%;
    max-width: 22%;
    padding-bottom: 30px;
}

.col-center {
    flex: 0 0 52%;
    max-width: 52%;
    padding-bottom: 30px;
}

.col-left > .sidebar-widget:first-child,
.col-right > .sidebar-widget:first-child {
    border-top: none;
    background: transparent;
    padding: 0 0 16px 0;
}

.col-left > .sidebar-widget:first-child::before,
.col-right > .sidebar-widget:first-child::before {
    display: none;
}

.col-left > .sidebar-widget:first-child h3,
.col-right > .sidebar-widget:first-child h3 {
    font-size: 18px;
    margin-bottom: 18px;
    padding-bottom: 10px;
}

.col-right > .sidebar-widget:first-child h3 {
    text-align: left;
}

.col-right {
    flex: 0 0 22%;
    max-width: 22%;
    padding-bottom: 30px;
    position: sticky;
    top: 60px;
    align-self: flex-start;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), transparent);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(26, 34, 56, 0.5);
    font-size: 12px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a:hover {
    color: var(--accent-cyan);
}

/* ===== POST CARDS (numbered video feed) ===== */
.alm-listing {
    list-style: none;
    counter-reset: video-counter;
}

.alm-listing .alm-item {
    counter-increment: video-counter;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

.post-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05), inset 0 0 20px rgba(0, 212, 255, 0.02);
}

/* Number badge */
.post-card .video-number {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 30px;
    height: 30px;
    background: rgba(6, 10, 18, 0.85);
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    backdrop-filter: blur(8px);
}

.post-card .post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #080c16;
    position: relative;
}

.post-card .post-thumb::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.post-card .post-thumb video,
.post-card .post-thumb img,
.post-card .post-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video embed area */
.post-card .video-embed {
    width: 100%;
    aspect-ratio: 16/9;
    background: #050810;
    position: relative;
}

.post-card .video-embed video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.post-card .post-content {
    padding: 10px 0 12px;
}

.post-card .post-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
}

.post-card .post-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0;
    color: var(--text-bright);
}

.post-card .post-title a {
    color: inherit;
}

.post-card .post-title a:hover {
    color: var(--accent-cyan);
}

.post-card .post-meta {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.post-card .post-meta .author {
    color: var(--accent-blue);
    font-weight: 600;
}

.post-card .post-meta .date {
    margin-left: 8px;
}

.post-card .post-meta .idx {
    color: var(--accent-cyan);
    margin-right: 6px;
}

.post-card .post-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 10px;
}

/* ===== SMALL POST CARD (sidebar) ===== */
.post-card-small {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 34, 56, 0.5);
}

.post-card-small:last-child {
    border-bottom: none;
}

.post-card-small .thumb-small {
    flex: 0 0 70px;
    height: 52px;
    overflow: hidden;
    background: #080c16;
    border: 1px solid var(--border-color);
}

.post-card-small .thumb-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-small .post-info {
    flex: 1;
    min-width: 0;
}

.post-card-small .post-info h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
    color: var(--text-primary);
}

.post-card-small .post-info .date {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-deep), #001a55);
    color: var(--accent-cyan);
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--border-glow);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cta-button:hover {
    background: linear-gradient(135deg, #0055cc, #002266);
    color: var(--text-bright);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.cta-button-wrap {
    margin-bottom: 16px;
}

/* ===== STATUS WIDGET ===== */
.status-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    position: relative;
}

.status-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-red), transparent);
}

.status-widget .status-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-secondary);
}

.status-widget .status-line .val {
    color: var(--accent-cyan);
}

.status-widget .status-line .val.red {
    color: var(--accent-red);
}

/* ===== ALM LOAD MORE ===== */
.alm-btn-wrap {
    text-align: center;
    margin: 20px 0;
}

.alm-btn-wrap .alm-load-more-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alm-btn-wrap .alm-load-more-btn:hover {
    border-color: var(--border-glow);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.site-footer::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.2;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .curtain-logo, .curtain-logo2 { font-size: 61px; letter-spacing: 8px; }
    .curtain-text { transform: translateY(-100px); }
}
@media (max-width: 600px) {
    .curtain-logo, .curtain-logo2 { font-size: 44px; letter-spacing: 5px; }
    .curtain-text { transform: translateY(-100px); }
}

@media (max-width: 1024px) {
    .hero-banner { height: 200px; }
    .three-col-wrap {
        flex-wrap: wrap;
    }
    .col-left {
        flex: 0 0 100%;
        max-width: 100%;
        position: static;
        order: 3;
    }
    .col-center {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }
    .col-right {
        flex: 0 0 100%;
        max-width: 100%;
        position: static;
        order: 1;
    }
    .col-right > .sidebar-widget:first-child h3 {
        text-align: left;
    }
    .section-header {
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0;
    }
    .site-logo {
        text-align: center;
        font-size: 16px;
        padding: 10px 0;
    }
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }
    .site-nav a,
    .site-nav .menu-item a {
        padding: 8px 12px;
        font-size: 10px;
    }
    .post-card .post-title {
        font-size: 15px;
    }
    .hero-banner { height: 160px; }
}

/* ===== SHARE BAR ===== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}
.share-label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.share-btn:hover { color: #fff; border-color: var(--border-glow); }
.share-telegram:hover { background: #0088cc; border-color: #0088cc; }
.share-twitter:hover { background: #1d9bf0; border-color: #1d9bf0; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; }

/* ===== WP CORE OVERRIDES ===== */
.wp-block-post-content,
.entry-content {
    color: var(--text-primary);
}

body.page, body.single, body.archive, body.home {
    background: var(--bg-primary);
}

.ajax-load-more-wrap {
    margin: 0;
    padding: 0;
}

.ajax-load-more-wrap .alm-listing {
    margin: 0;
    padding: 0;
}

.alm-loading {
    text-align: center;
    padding: 20px;
}

/* Video block inside posts */
.wp-block-video {
    margin: 0;
}

.wp-block-video video {
    width: 100%;
    max-height: 400px;
    background: #000;
}

/* Sidebar ALM compact */
.col-left .post-card {
    margin-bottom: 12px;
}

.col-left .post-card .post-title {
    font-size: 13px;
}

.col-left .post-card .video-embed {
    aspect-ratio: 16/9;
}

.col-left .post-card .post-content {
    padding: 10px 12px 12px;
}

.col-left .post-card .video-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

/* ===== ARTICLE PAGE (70/30) ===== */
.article-wrap {
    display: flex;
    gap: 28px;
    padding: 24px 0 40px;
    align-items: flex-start;
}

.article-main {
    flex: 0 0 70%;
    max-width: 70%;
}

.article-sidebar {
    flex: 1;
    position: sticky;
    top: 80px;
}

.article-hero-img {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.article-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
    padding: 3px 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 18px;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin: 28px 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-body em {
    color: var(--text-secondary);
}

.article-body strong {
    color: var(--text-bright);
}

/* Book promo sidebar */
.book-promo {
    text-align: center;
}

.book-cover-img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 14px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.book-cover-img:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.book-promo h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-promo p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

.book-promo .cta-button {
    font-size: 11px;
    padding: 10px 16px;
}

/* Sidebar article links */
.sidebar-article-link {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 34, 56, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-article-link:last-child {
    border-bottom: none;
}

.sidebar-article-link:hover h4 {
    color: var(--accent-cyan);
}

.sidebar-article-thumb {
    flex: 0 0 65px;
    height: 48px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #080c16;
}

.sidebar-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-info {
    flex: 1;
    min-width: 0;
}

.sidebar-article-info h4 {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-info .date {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Article page responsive */
@media (max-width: 1024px) {
    .article-wrap {
        flex-direction: column;
    }
    .article-main {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .article-sidebar {
        position: static;
        width: 100%;
    }
    .article-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 18px;
    }
    .article-body {
        font-size: 14px;
    }
}
