/* ══════════════════════════════════════════════════════════════
   FREEFIRE INDIA — main.css  ·  Dark Red Theme
   Shared styles for all templates (index + single + pages)
══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
    --brand:        #D0001E;
    --brand-dark:   #A8001A;
    --brand-bright: #FF1A3C;
    --brand-light:  rgba(208,0,30,0.12);
    --brand-border: rgba(208,0,30,0.28);
    --brand-glow:   rgba(208,0,30,0.35);

    --bg-page:  #080808;
    --bg-card:  #101010;
    --bg-hover: #161616;
    --bg-muted: #1a1a1a;
    --bg-head:  rgba(8,8,8,0.92);

    --border:      rgba(255,255,255,0.07);
    --border-dark: rgba(255,255,255,0.13);
    --border-red:  rgba(208,0,30,0.22);

    /* ── VIBRANT TEXT COLOURS ── */
    --text-1: #FFFFFF;
    --text-2: #E8E2E2;
    --text-3: #AAAAAA;
    --text-4: #777777;

    /* ── TAGS ── */
    --tag-news:   #60AAFF;
    --tag-code:   #3DDBA8;
    --tag-event:  #B48EFF;
    --tag-update: #FF6B6B;
    --tag-apk:    #FFCC44;

    --shadow-sm: 0 1px 4px rgba(0,0,0,.5);
    --shadow-md: 0 4px 18px rgba(0,0,0,.6);
    --shadow-lg: 0 8px 36px rgba(0,0,0,.7);

    --radius:    12px;
    --radius-sm: 8px;
    --font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
    background: var(--bg-page);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--brand-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes ticker    { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
@keyframes pulseDot  { 0%,100%{opacity:1;} 50%{opacity:.3;} }
@keyframes skelPulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
@keyframes heartBurst { 0%{transform:scale(1);} 50%{transform:scale(1.4);} 100%{transform:scale(1);} }

.ticker-inner           { animation: ticker 60s linear infinite; white-space:nowrap; display:inline-flex; align-items:center; gap:36px; }
.ticker-inner:hover     { animation-play-state: paused; }
.live-dot               { animation: pulseDot 1.5s ease-in-out infinite; }
.news-card              { animation: fadeUp .4s cubic-bezier(0.22,1,0.36,1) both; }
.news-card:nth-child(1) { animation-delay:.04s; }
.news-card:nth-child(2) { animation-delay:.08s; }
.news-card:nth-child(3) { animation-delay:.12s; }
.news-card:nth-child(4) { animation-delay:.16s; }
.news-card:nth-child(5) { animation-delay:.20s; }
.news-card:nth-child(n+6) { animation-delay:.24s; }
.animate-burst { animation: heartBurst .3s ease-out; }

/* ── TAGS ────────────────────────────────────────────────────── */
.tag {
    display: inline-flex; align-items: center;
    font-size: 10px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
    border: 1px solid currentColor;
}
.tag-news   { background: rgba(96,170,255,.1);  color: var(--tag-news);   }
.tag-code   { background: rgba(61,219,168,.1);  color: var(--tag-code);   }
.tag-event  { background: rgba(180,142,255,.1); color: var(--tag-event);  }
.tag-update { background: rgba(255,107,107,.1); color: var(--tag-update); }
.tag-apk    { background: rgba(255,204,68,.1);  color: var(--tag-apk);    }

/* ── HEADER ──────────────────────────────────────────────────── */
#site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-head);
    border-bottom: 1px solid var(--border-red);
    box-shadow: 0 2px 20px rgba(0,0,0,.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.header-inner {
    max-width: 1380px; margin: 0 auto;
    padding: 0 16px; height: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
@media (min-width: 640px) { .header-inner { padding: 0 24px; } }

.logo      { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
    width: 40px; height: 40px;
    background: var(--brand-light);
    border: 2px solid var(--brand-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    transition: border-color .2s, box-shadow .2s;
}
.logo:hover .logo-icon { border-color: var(--brand); box-shadow: 0 0 14px var(--brand-glow); }
.logo-icon img  { width: 100%; height: 100%; object-fit: cover; }
.logo-name      { font-size: 15px; font-weight: 800; color: var(--text-1); letter-spacing: -.01em; line-height: 1; }
.logo-sub       { font-size: 10px; font-weight: 600; color: var(--brand-bright); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

.desktop-nav    { display: none; }
@media (min-width: 1024px) { .desktop-nav { display: flex; align-items: center; gap: 2px; } }
.nav-link {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-3); transition: all .18s;
}
.nav-link:hover  { color: var(--text-1); background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--brand-bright); background: var(--brand-light); }
.nav-link i      { font-size: 11px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-search, .btn-back {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px; height: 36px;
    background: var(--bg-muted); border: 1px solid var(--border); border-radius: 9px;
    color: var(--text-3); cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 500;
    transition: all .18s;
}
.btn-search:hover, .btn-back:hover { border-color: var(--brand); color: var(--text-1); box-shadow: 0 0 12px var(--brand-glow); }
.search-label, .btn-back-label { display: none; }
@media (min-width: 640px) { .search-label, .btn-back-label { display: inline; } }
.btn-icon-sq {
    width: 36px; height: 36px;
    background: var(--bg-muted); border: 1px solid var(--border); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3); font-size: 13px; transition: all .18s;
}
.btn-icon-sq:hover { border-color: var(--brand); color: var(--brand-bright); box-shadow: 0 0 10px var(--brand-glow); }

/* ── SEARCH OVERLAY ──────────────────────────────────────────── */
#searchOverlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.8); backdrop-filter: blur(14px);
    z-index: 999; align-items: flex-start; justify-content: center; padding-top: 120px;
}
#searchOverlay.open { display: flex; }
.search-box         { width: 100%; max-width: 620px; padding: 0 16px; }
.search-input-wrap  {
    position: relative; background: var(--bg-card);
    border: 1.5px solid var(--brand); border-radius: 14px;
    box-shadow: 0 0 40px rgba(208,0,30,.25), var(--shadow-lg);
}
.search-input-wrap .s-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 15px; }
#searchInput {
    width: 100%; background: transparent; border: none; outline: none;
    padding: 17px 48px; font-size: 17px; color: var(--text-1); font-family: var(--font);
    caret-color: var(--brand-bright);
}
#searchInput::placeholder { color: var(--text-4); }
.search-close {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: var(--bg-muted); border: 1px solid var(--border); border-radius: 50%;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    color: var(--text-3); cursor: pointer; font-size: 13px; transition: all .18s;
}
.search-close:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-esc { text-align: center; margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .08em; }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker-bar {
    background: var(--bg-card); border-bottom: 1px solid var(--border-red);
    overflow: hidden; height: 36px; display: flex; align-items: stretch;
}
.ticker-label {
    flex-shrink: 0; background: var(--brand); padding: 0 16px;
    display: flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .14em;
}
.live-dot  { display: inline-block; width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-item  { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.ticker-item a { color: var(--text-3); transition: color .18s; }
.ticker-item a:hover { color: var(--brand-bright); }
.ticker-dot   { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.page-wrap { max-width: 1380px; margin: 0 auto; padding: 20px 12px; }
@media (min-width: 640px)  { .page-wrap { padding: 24px 20px; } }
@media (min-width: 1024px) { .page-wrap { padding: 28px 24px; } }

.content-grid { display: grid; grid-template-columns: 1fr; gap: 24px; min-width: 0; }
@media (min-width: 1024px) { .content-grid { grid-template-columns: 1fr 300px; gap: 28px; } }
@media (min-width: 1240px) { .content-grid { grid-template-columns: 1fr 320px; } }
main { min-width: 0; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-head  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--text-1);
    text-transform: uppercase; letter-spacing: .06em;
}
.section-bar  { width: 3px; height: 18px; background: linear-gradient(180deg,var(--brand-bright),var(--brand)); border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 8px var(--brand-glow); }
.section-title i { color: var(--brand-bright); font-size: 13px; }
.section-count {
    font-size: 11px; font-weight: 700; color: var(--brand-bright);
    background: var(--brand-light); border: 1px solid var(--brand-border);
    padding: 3px 11px; border-radius: 20px; letter-spacing: .06em;
}
.section-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--text-1);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
}
.section-label-bar { width: 3px; height: 18px; background: linear-gradient(180deg,var(--brand-bright),var(--brand)); border-radius: 2px; flex-shrink: 0; }
.section-label i   { color: var(--brand-bright); font-size: 13px; }

/* ══════════════════════════════════════════════════════════════
   NEWS GRID — Vertical cards with full 16:9 image
══════════════════════════════════════════════════════════════ */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 600px)  { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1240px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .22s, box-shadow .22s, transform .22s;
    position: relative;
}
.news-card:hover {
    border-color: rgba(208,0,30,.4);
    box-shadow: 0 8px 32px rgba(0,0,0,.55), 0 0 22px rgba(208,0,30,.14);
    transform: translateY(-4px);
}

/* FULL-WIDTH 16:9 THUMBNAIL */
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-muted);
    flex-shrink: 0;
    position: relative;
    /* remove any width constraints from old layout */
    min-width: unset; max-width: unset; height: unset;
    align-self: unset;
}
.news-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(0.22,1,0.36,1), filter .4s;
}
.news-card:hover .news-thumb img { transform: scale(1.05); filter: brightness(1.06); }
.news-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5) 100%);
    pointer-events: none;
}

.news-body   { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 15px 16px; }
.news-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.news-views  {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: var(--text-4); font-weight: 600;
    margin-left: auto; white-space: nowrap;
}
.news-views i { font-size: 9px; color: var(--brand-bright); }
.news-title {
    font-size: 14px; font-weight: 700; color: var(--text-1); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word; transition: color .18s;
}
@media (min-width: 640px) { .news-title { font-size: 14.5px; } }
.news-card:hover .news-title { color: var(--brand-bright); }
.news-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.news-date   {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--text-4); font-weight: 600; white-space: nowrap;
}
.news-date i { font-size: 9px; color: var(--brand-bright); }
.news-arrow {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-muted); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--text-4);
    transition: all .2s cubic-bezier(0.22,1,0.36,1);
}
.news-card:hover .news-arrow {
    background: var(--brand); color: #fff; border-color: var(--brand);
    transform: translateX(3px); box-shadow: 0 0 12px var(--brand-glow);
}

/* ── LOAD MORE ───────────────────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 28px 0 8px; }
.btn-load-more {
    font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .07em; color: #fff;
    background: var(--brand); border: none; padding: 13px 36px; border-radius: 10px;
    cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s;
    box-shadow: 0 3px 14px rgba(208,0,30,.4); text-transform: uppercase;
}
.btn-load-more:hover  { background: var(--brand-bright); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(208,0,30,.5); }
.btn-load-more:active { transform: scale(.98); }
#loader { color: var(--brand); padding: 20px; display: none; text-align: center; }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
    grid-column: 1/-1; text-align: center; padding: 60px 20px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.empty-icon { width: 64px; height: 64px; background: var(--brand-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--brand-bright); border: 1px solid var(--brand-border); }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; color: var(--text-3); }
.empty-link {
    display: inline-block; margin-top: 14px; color: #fff; font-size: 13px; font-weight: 700;
    background: var(--brand); padding: 9px 22px; border-radius: 8px; transition: background .18s, box-shadow .18s;
}
.empty-link:hover { background: var(--brand-bright); box-shadow: 0 4px 16px var(--brand-glow); }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .sidebar { display: none; } }

.widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.widget-head {
    padding: 13px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px; background: var(--bg-muted);
}
.widget-head i          { color: var(--brand-bright); font-size: 12px; }
.widget-head-title      { font-size: 12px; font-weight: 700; color: var(--text-1); letter-spacing: .06em; text-transform: uppercase; }
.widget-body            { padding: 8px; }

.trending-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); transition: background .16s, transform .16s; }
.trending-item:hover { background: var(--bg-hover); transform: translateX(2px); }
.trending-rank { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--text-3); background: var(--bg-muted); border: 1px solid var(--border); }
.trending-rank.first    { background: var(--brand); color: #fff; border-color: var(--brand); }
.trending-item-body     { flex: 1; min-width: 0; }
.trending-title { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s; }
.trending-item:hover .trending-title { color: var(--brand-bright); }
.trending-sub  { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.trending-views { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--text-4); font-weight: 600; }
.trending-views i { font-size: 8px; color: var(--brand-bright); }
.trending-img  { flex-shrink: 0; width: 50px; height: 40px; border-radius: 7px; overflow: hidden; background: var(--bg-muted); }
.trending-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s; }
.trending-item:hover .trending-img img { transform: scale(1.08); }

.quick-link { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: var(--radius-sm); color: var(--text-2); transition: all .16s; }
.quick-link:hover { background: var(--bg-hover); color: var(--text-1); transform: translateX(2px); }
.quick-link-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--bg-muted); font-size: 12px; flex-shrink: 0; border: 1px solid var(--border); }
.quick-link-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.quick-link-arrow { margin-left: auto; font-size: 10px; color: var(--text-4); opacity: 0; transition: opacity .16s; }
.quick-link:hover .quick-link-arrow { opacity: 1; color: var(--brand-bright); }

.widget-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); transition: background .16s, transform .16s; }
.widget-item:hover { background: var(--bg-hover); transform: translateX(2px); }
.widget-rank { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--text-3); background: var(--bg-muted); border: 1px solid var(--border); }
.widget-rank.first { background: var(--brand); color: #fff; border-color: var(--brand); }
.widget-item-title { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s; }
.widget-item:hover .widget-item-title { color: var(--brand-bright); }
.widget-item-img     { flex-shrink: 0; width: 50px; height: 40px; border-radius: 7px; overflow: hidden; background: var(--bg-muted); }
.widget-item-img img { width: 100%; height: 100%; object-fit: cover; }
.widget-skeleton     { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.skel                { background: rgba(255,255,255,.04); border-radius: 7px; animation: skelPulse 1.6s ease-in-out infinite; border: 1px solid var(--border); }

.disclaimer-widget { background: rgba(120,60,0,.1); border: 1px solid rgba(255,204,68,.18); border-radius: var(--radius); padding: 14px; }
.disclaimer-widget-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #FFCC44; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.disclaimer-widget p     { font-size: 11px; color: var(--text-3); line-height: 1.65; }
.disclaimer-widget strong { color: var(--tag-update); }

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb { display: none; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); margin-bottom: 14px; }
@media (min-width: 640px) { .breadcrumb { display: flex; } }
.breadcrumb a          { color: var(--text-4); transition: color .15s; }
.breadcrumb a:hover    { color: var(--brand-bright); }
.breadcrumb .sep       { font-size: 8px; }
.breadcrumb .crumb-current { color: var(--brand-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }

/* ── ARTICLE CARD ────────────────────────────────────────────── */
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
@media (max-width: 639px) { .article-card { border-radius: 0; border-left: none; border-right: none; margin-left: -12px; margin-right: -12px; } }

/* ── ARTICLE HERO ────────────────────────────────────────────── */
.article-hero { position: relative; width: 100%; aspect-ratio: 16/9; background: #0a0a0a; overflow: hidden; }
@media (min-width: 640px) and (max-width: 1023px) { .article-hero { aspect-ratio: unset; height: 340px; } }
@media (min-width: 1024px)                        { .article-hero { aspect-ratio: unset; height: 420px; } }
.article-hero img   { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.article-hero:hover img { transform: scale(1.02); }
.article-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.06) 45%, transparent 70%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; pointer-events: none;
}
.hero-tag-row  { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hero-meta-row { display: flex; align-items: center; gap: 14px; font-size: 12px; color: rgba(255,255,255,.8); font-weight: 600; }
.hero-meta-row span { display: flex; align-items: center; gap: 5px; }
.hero-meta-row i    { font-size: 10px; color: var(--brand-bright); }

/* ── ARTICLE BODY ────────────────────────────────────────────── */
.article-body { padding: 20px 16px 26px; }
@media (min-width: 640px)  { .article-body { padding: 28px 28px 32px; } }
@media (min-width: 1024px) { .article-body { padding: 32px 36px 36px; } }
.article-title { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; color: var(--text-1); line-height: 1.22; letter-spacing: -.02em; margin-bottom: 14px; }
.article-meta-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.meta-item   { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.meta-item i { color: var(--brand-bright); font-size: 10px; }
.meta-badge  { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 4px; box-shadow: 0 2px 8px var(--brand-glow); }

/* ── ARTICLE CONTENT ─────────────────────────────────────────── */
.article-content { font-size: 16px; line-height: 1.9; color: var(--text-2); }
@media (min-width: 1024px) { .article-content { font-size: 17px; } }
.article-content p      { margin-bottom: 1.2rem; }
.article-content strong { color: var(--text-1); font-weight: 700; }
.article-content em     { color: var(--text-3); font-style: italic; }
.article-content h2     { font-weight: 700; font-size: 1.25rem; margin-top: 2.2rem; margin-bottom: .7rem; color: var(--text-1); border-left: 3px solid var(--brand); padding-left: 12px; line-height: 1.3; }
@media (max-width: 639px) { .article-content h2 { font-size: 1.15rem; } }
.article-content h3     { font-weight: 700; font-size: 1rem; margin-top: 1.6rem; margin-bottom: .5rem; color: var(--text-1); }
.article-content a      { color: var(--brand-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }
.article-content a:hover { color: #fff; }
.article-content img    { width: 100%; border-radius: var(--radius); margin: 1.4rem 0; border: 1px solid var(--border); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.article-content li     { margin-bottom: .45rem; color: var(--text-2); }
.article-content blockquote { border-left: 3px solid var(--brand); margin: 1.5rem 0; padding: 14px 18px; background: var(--brand-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-style: italic; }
.article-content blockquote p { margin-bottom: 0; }
.table-wrapper { overflow-x: auto; margin: 1.4rem 0; border-radius: var(--radius-sm); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.article-content th { background: var(--bg-muted); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .06em; color: var(--brand-bright); white-space: nowrap; }
.article-content td    { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:hover td      { background: var(--bg-hover); }
.article-content code  { background: var(--bg-muted); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12px; color: var(--brand-bright); font-family: monospace; }
.article-content pre   { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; margin: 1.4rem 0; }
.article-content pre code { background: none; border: none; padding: 0; color: var(--text-2); font-size: 13px; }

/* ── INTERACT BAR ────────────────────────────────────────────── */
.interact-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--border); }
.interact-left { display: flex; align-items: center; gap: 8px; }
.btn-like { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 30px; font-size: 12px; font-weight: 700; color: var(--text-3); cursor: pointer; transition: all .2s; }
.btn-like:hover   { border-color: rgba(255,107,107,.45); color: #ff6b6b; background: rgba(255,107,107,.08); }
.btn-like i       { font-size: 14px; transition: transform .2s; }
.btn-like:hover i { transform: scale(1.15); }
.btn-liked        { border-color: rgba(255,107,107,.5)!important; color: #ff6b6b!important; background: rgba(255,107,107,.1)!important; }
.btn-dislike { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-muted); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-4); cursor: pointer; transition: all .2s; font-size: 13px; }
.btn-dislike:hover { color: var(--text-2); border-color: var(--border-dark); }
.share-label  { font-size: 11px; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; display: none; }
@media (min-width: 480px) { .share-label { display: inline; } }
.share-btns   { display: flex; align-items: center; gap: 8px; }
.btn-share    { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; font-size: 15px; border: 1px solid transparent; }
.btn-share-wa   { background: rgba(37,211,102,.1); color: #25d366; border-color: rgba(37,211,102,.25); }
.btn-share-wa:hover   { background: #25d366; color: #fff; }
.btn-share-fb   { background: rgba(24,119,242,.1); color: #1877F2; border-color: rgba(24,119,242,.25); }
.btn-share-fb:hover   { background: #1877F2; color: #fff; }
.btn-share-copy { background: var(--brand-light); color: var(--brand-bright); border-color: var(--brand-border); }
.btn-share-copy:hover { background: var(--brand); color: #fff; }

/* ── COMMENTS ────────────────────────────────────────────────── */
.comments-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .comments-card { padding: 24px 28px; } }
@media (max-width: 639px) { .comments-card { border-radius: 0; border-left: none; border-right: none; margin-left: -12px; margin-right: -12px; } }
.comment-form        { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-avatar-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-muted); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-4); flex-shrink: 0; font-size: 14px; }
.comment-inputs     { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.comment-field      { width: 100%; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--text-1); font-family: var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.comment-field::placeholder { color: var(--text-4); }
.comment-field:focus { border-color: var(--brand-border); box-shadow: 0 0 0 3px rgba(208,0,30,.1); background: var(--bg-hover); }
textarea.comment-field { resize: vertical; min-height: 80px; }
.comment-submit-row  { display: flex; justify-content: flex-end; }
.btn-comment-submit  { background: var(--brand); border: none; border-radius: var(--radius-sm); padding: 9px 22px; color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: all .2s; box-shadow: 0 2px 10px var(--brand-glow); }
.btn-comment-submit:hover { background: var(--brand-bright); box-shadow: 0 4px 18px var(--brand-glow); }
#commentList          { display: flex; flex-direction: column; gap: 12px; }
.comment-item         { display: flex; gap: 10px; align-items: flex-start; }
.comment-item-avatar  { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-muted); }
.comment-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-bubble       { flex: 1; min-width: 0; background: var(--bg-muted); border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 10px 14px; }
.comment-meta  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.comment-name  { font-size: 12px; font-weight: 700; color: var(--text-1); }
.comment-date  { font-size: 10px; color: var(--text-4); }
.comment-text  { font-size: 13px; color: var(--text-2); line-height: 1.55; }
.comment-empty { text-align: center; padding: 20px; font-size: 12px; color: var(--text-4); font-style: italic; }

/* ── READ NEXT ───────────────────────────────────────────────── */
.read-next-wrap  { background: var(--bg-card); border-top: 1px solid var(--border); padding: 28px 16px; margin-top: 8px; }
@media (min-width: 640px) { .read-next-wrap { padding: 32px 24px; } }
.read-next-inner { max-width: 1380px; margin: 0 auto; }
#relatedGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { #relatedGrid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.related-card { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.related-card:hover { border-color: var(--brand-border); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-img        { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-muted); }
.related-img img    { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.related-card:hover .related-img img { transform: scale(1.06); }
.related-badge      { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); padding: 2px 7px; border-radius: 4px; font-size: 9px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.related-body  { padding: 10px 12px; }
.related-title { font-size: 12px; font-weight: 600; color: var(--text-1); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .18s; }
.related-card:hover .related-title { color: var(--brand-bright); }

/* ── FOOTER ──────────────────────────────────────────────────── */
#site-footer  { background: var(--bg-card); border-top: 1px solid var(--border-red); margin-top: 56px; }
.footer-inner { max-width: 1380px; margin: 0 auto; padding: 44px 20px 0; }
.footer-grid  { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand-top  { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-icon  { width: 40px; height: 40px; background: var(--brand-light); border: 2px solid var(--brand-border); border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-name  { font-size: 14px; font-weight: 800; color: var(--text-1); }
.footer-logo-sub   { font-size: 9px; font-weight: 600; color: var(--brand-bright); letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
.footer-desc       { font-size: 13px; color: var(--text-3); line-height: 1.7; max-width: 280px; }
.footer-email      { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand-bright); font-size: 12px; font-weight: 600; transition: opacity .18s; }
.footer-email:hover { opacity: .75; }
.footer-col-title  { font-size: 11px; font-weight: 700; color: var(--text-1); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.footer-col-title i { font-size: 10px; color: var(--brand-bright); }
.footer-links      { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a    { font-size: 13px; color: var(--text-3); font-weight: 500; transition: color .16s, transform .16s; display: inline-block; }
.footer-links a:hover { color: var(--brand-bright); transform: translateX(3px); }
.footer-divider    { height: 1px; background: var(--border); margin: 32px 0 24px; }
.footer-disclaimer { background: rgba(208,0,30,.06); border: 1px solid var(--brand-border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.footer-disclaimer p { font-size: 11px; color: var(--text-3); line-height: 1.75; }
.footer-disclaimer .warn { color: #FFCC44; font-weight: 700; }
.footer-disclaimer .deny { color: var(--tag-update); font-weight: 700; }
.footer-bottom     { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 24px; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copy  { font-size: 12px; color: var(--text-4); }
.footer-made  { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-4); }
.footer-made i { color: var(--brand); font-size: 10px; }

/* ── MOBILE BOTTOM NAV ───────────────────────────────────────── */
#mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10,10,10,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-red); box-shadow: 0 -2px 20px rgba(0,0,0,.6); z-index: 90; padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 1024px) { #mobile-nav { display: none; } }
.mobile-nav-inner { display: grid; grid-template-columns: repeat(3, 1fr); height: 56px; max-width: 400px; margin: 0 auto; }
.mobile-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-4); font-size: 17px; cursor: pointer; transition: color .18s; border: none; background: transparent; position: relative; text-decoration: none; }
.mobile-nav-btn:hover { color: var(--text-2); }
.mobile-nav-btn.active { color: var(--brand-bright); }
.mobile-nav-btn.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-bright), transparent); border-radius: 0 0 3px 3px; }
.mobile-nav-label { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mobile-spacer    { height: 56px; }
@media (min-width: 1024px) { .mobile-spacer { display: none; } }

/* ── PAGE TEMPLATE ───────────────────────────────────────────── */
.page-content-wrap { max-width: 860px; margin: 0 auto; padding: 28px 20px 56px; }
.page-hero { background: linear-gradient(135deg, #1a0008 0%, var(--bg-muted) 100%); border-bottom: 1px solid var(--border-red); color: #fff; padding: 48px 20px; text-align: center; margin-bottom: 32px; }
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 8px; color: var(--text-1); }
.page-hero p  { font-size: 14px; color: rgba(255,255,255,.55); }
.page-body    { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.page-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-1); border-left: 3px solid var(--brand); padding-left: 10px; margin: 28px 0 10px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p  { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.page-body ul, .page-body ol { padding-left: 1.4rem; margin-bottom: 14px; }
.page-body li { font-size: 14px; color: var(--text-2); margin-bottom: 6px; line-height: 1.7; }
.page-body a  { color: var(--brand-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-body a:hover { color: #fff; }
.page-body strong { color: var(--text-1); font-weight: 700; }

/* ── SEARCH RESULTS ──────────────────────────────────────────── */
.search-header { margin-bottom: 20px; }
.search-header h1 { font-size: 1.3rem; font-weight: 800; color: var(--text-1); }
.search-header p  { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.no-results { text-align: center; padding: 60px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.no-results i   { font-size: 36px; color: var(--text-4); margin-bottom: 14px; display: block; }
.no-results h3  { font-size: 16px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; }
.no-results p   { font-size: 13px; color: var(--text-3); }

/* ── DIVIDERS ────────────────────────────────────────────────── */
.section-divider { height: 1px; background: var(--border); margin: 0 0 24px; }
