/* ============================================================
   CoinHub — Cointelegraph layout clone
   Dark top bar (logo / socials / theme pill) + signature yellow
   nav bar + black live ticker. Open Sans everywhere, 3:2 image
   cards, hero with a dark info card overlapping the cover.
   Light/dark via [data-theme]; yellow #fabc2d stays in both.
   ============================================================ */
:root{
  --bg:#eff5f6; --bg-2:#e6edf0; --surface:#ffffff;
  --ink:#10171b; --ink-2:#1a2329; --ink-soft:#33404a; --muted:#69737d;
  --line:#dbe3e6; --line-2:#c7d3d8; --panel:#e6edf0;
  --yellow:#fabc2d; --yellow-2:#e7ac1c; --yellow-ink:#10171b;
  --topbar:#10171b; --topbar-ink:#9fb0bb;
  --accent:#10171b; --accent-dark:#10171b; --accent-ink:#10171b;
  --footer:#0b1013;
  --up:#00a86b; --down:#e0342f;
  --shadow:0 8px 28px rgba(16,23,27,.12);
  --wrap:100%;/* full-width edge-to-edge (was 1280px) — user request 2026-10-03 */
  --head:'Open Sans',Arial,'Helvetica Neue',sans-serif;
  --body:'Open Sans',arial,sans-serif;
}
html[data-theme="dark"]{
  --bg:#0e1418; --bg-2:#0a0f12; --surface:#161d23;
  --ink:#e9edf0; --ink-2:#dde3e7; --ink-soft:#b8c2c9; --muted:#8a97a0;
  --line:#232c33; --line-2:#2c3740; --panel:#141b21;
  --footer:#0a0e11;
  --shadow:0 8px 28px rgba(0,0,0,.55);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--body);color:var(--ink);background:var(--bg);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit}
::selection{background:var(--yellow);color:#10171b}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--yellow-2);outline-offset:2px}
.dot{margin:0 6px;color:var(--line-2)}
.muted{color:var(--muted)}

/* =================== HEADER: TOP BAR + YELLOW NAV (CT) =================== */
.ct-head{position:sticky;top:0;z-index:80}
/* dark top bar */
.ct-topbar{background:var(--topbar)}
.topbar-in{max-width:var(--wrap);margin:0 auto;min-height:106px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 32px}
/* wide leaderboard ad slot (970×90) — demo crypto animation inside;
   swap .ad-banner for real ad code when ready */
.top-ad{flex:1;min-width:0;display:flex;align-items:center;justify-content:center}
/* real self-hosted ad (managed at /admin/ads) fills the leaderboard slot */
.ad-real{width:100%;max-width:970px;height:90px;display:flex;align-items:center;gap:10px;padding:0 12px;background:#0a0f13;border:1px solid #1c262e;border-radius:6px;overflow:hidden;text-decoration:none}
/* HTML-code ad: the admin's own markup fills the slot, centered as a block */
.ad-real.ad-html{justify-content:center;gap:0;padding:0}
.ad-real img{width:100%;max-height:78px;object-fit:contain;border-radius:4px}
.ad-banner{width:100%;max-width:970px;height:90px;position:relative;display:flex;align-items:center;gap:28px;padding:0 26px;background:#0a0f13;border:1px solid #1c262e;border-radius:6px;overflow:hidden}
.ad-banner::before{content:'';position:absolute;inset:0;background-image:linear-gradient(rgba(250,188,45,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(250,188,45,.045) 1px,transparent 1px);background-size:34px 34px;animation:ab-grid 16s linear infinite;pointer-events:none}
.ad-mark{position:absolute;top:6px;left:6px;z-index:2;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#10171b;background:var(--yellow);padding:1px 5px;border-radius:3px;line-height:1.4}
.ab-chart{flex:none;width:220px;height:56px}
.ab-chart svg{width:100%;height:100%;display:block}
.ab-candles rect{transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(.15);animation:ab-grow 4.6s ease-out infinite}
.ab-candles rect:nth-child(2){animation-delay:.12s}
.ab-candles rect:nth-child(3){animation-delay:.24s}
.ab-candles rect:nth-child(4){animation-delay:.36s}
.ab-candles rect:nth-child(5){animation-delay:.48s}
.ab-candles rect:nth-child(6){animation-delay:.6s}
.ab-candles rect:nth-child(7){animation-delay:.72s}
.ab-candles rect:nth-child(8){animation-delay:.84s}
.ab-candles rect:nth-child(9){animation-delay:.96s}
.ab-candles .up{fill:#0f8a5c}
.ab-candles .down{fill:#b0332e}
.ab-line{fill:none;stroke:var(--yellow);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:320;stroke-dashoffset:320;animation:ab-draw 4.6s ease-in-out infinite;filter:drop-shadow(0 0 3px rgba(250,188,45,.5))}
.ab-text{flex:1;min-width:0}
.ab-title{font-family:var(--head);font-weight:800;font-size:21px;letter-spacing:.03em;color:#fff;white-space:nowrap}
.ab-title b{background:linear-gradient(90deg,var(--yellow),#fff 45%,var(--yellow) 70%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:ab-shine 3s linear infinite}
.ab-sub{margin-top:4px;font-size:11.5px;font-weight:600;color:#8fa0ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ab-sub .up{color:#2fbf83}
.ab-sub .down{color:#e5655f}
.ab-coins{position:absolute;right:20px;top:0;bottom:0;display:flex;align-items:center;gap:12px;pointer-events:none}
.ab-coin{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-family:var(--head);font-weight:800;font-size:17px;color:var(--yellow);border:2px solid rgba(250,188,45,.55);background:rgba(250,188,45,.08);box-shadow:0 0 14px rgba(250,188,45,.15)}
.ab-coin.c1{animation:ab-bob 3.4s ease-in-out infinite}
.ab-coin.c2{width:28px;height:28px;font-size:13px;animation:ab-bob 3.4s ease-in-out .9s infinite reverse}
@keyframes ab-bob{0%,100%{transform:translateY(-6px)}50%{transform:translateY(6px)}}
@keyframes ab-grid{to{background-position:34px 34px}}
@keyframes ab-grow{0%{transform:scaleY(.15)}45%{transform:scaleY(1)}100%{transform:scaleY(1)}}
@keyframes ab-draw{0%{stroke-dashoffset:320}60%{stroke-dashoffset:0}100%{stroke-dashoffset:0}}
@keyframes ab-shine{to{background-position:-220% 0}}
@media(prefers-reduced-motion:reduce){.ad-banner::before,.ab-candles rect,.ab-line,.ab-title b,.ab-coin{animation:none}.ab-candles rect{transform:none}.ab-line{stroke-dashoffset:0}}
.topbar-tools{display:flex;align-items:center;gap:16px}
.tb-social{display:flex;align-items:center;gap:4px}
.tb-social a{width:32px;height:32px;border-radius:6px;display:grid;place-items:center;color:var(--topbar-ink);transition:color .15s,background .15s}
.tb-social a:hover{color:#10171b;background:var(--yellow)}
.tb-social svg{width:15px;height:15px}
/* dark mode pill */
.theme-toggle{position:relative;width:56px;height:28px;flex:none;border:1px solid #2a353d;border-radius:999px;background:#0a0f13;cursor:pointer;padding:0;transition:border-color .2s}
.theme-toggle:hover{border-color:var(--yellow)}
.tt-ball{position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:var(--yellow);box-shadow:0 1px 4px rgba(0,0,0,.4);transition:transform .22s ease,background .22s ease;z-index:1}
html[data-theme="dark"] .tt-ball{transform:translateX(28px);background:#fff}
.tt-sun,.tt-moon{position:absolute;top:50%;width:13px;height:13px;transform:translateY(-50%);color:#5c6b75}
.tt-sun{left:7px}
.tt-moon{right:7px}
html[data-theme="dark"] .tt-sun{color:rgba(255,255,255,.4)}
html[data-theme="dark"] .tt-moon{color:#10171b}
/* signature yellow nav bar */
.ct-navbar{background:var(--yellow);position:relative}
.navbar-in{max-width:var(--wrap);margin:0 auto;display:flex;align-items:center;gap:10px;padding:0 32px;height:48px}
.main-nav{display:flex;align-items:center;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.main-nav::-webkit-scrollbar{display:none}
.main-nav a{display:flex;align-items:center;gap:6px;color:var(--yellow-ink);font-weight:700;font-size:13px;white-space:nowrap;padding:6px 12px;border-radius:4px;transition:background .15s,color .15s}
.main-nav a:hover{background:rgba(16,23,27,.14)}
.main-nav a.active{background:var(--yellow-ink);color:var(--yellow)}
.main-nav .live-dot{background:var(--down)}
.main-nav .live-link .live-dot{animation:pulse 1.4s infinite}
/* search inside the yellow bar */
.hdr-search{display:flex;align-items:stretch;background:rgba(255,255,255,.92);border-radius:6px;overflow:hidden;flex:none;transition:box-shadow .15s}
.hdr-search:focus-within{box-shadow:0 0 0 2px var(--yellow-ink)}
.hdr-search input{border:none;background:none;color:#10171b;padding:7px 10px;font-size:13px;font-family:var(--body);width:150px;min-width:0;outline:none}
.hdr-search input::placeholder{color:#8a97a0}
.hdr-search button{border:none;background:none;color:#10171b;width:34px;display:grid;place-items:center;cursor:pointer;flex:none;transition:color .15s}
.hdr-search button svg{width:15px;height:15px}
.hdr-search button:hover{color:var(--yellow-2)}
/* mobile: hamburger lives in the yellow bar */
.nav-dropdown{display:none}
.nav-drop-btn{display:flex;align-items:center;gap:7px;background:none;border:none;color:var(--yellow-ink);font-family:var(--head);font-weight:800;font-size:14px;text-transform:uppercase;letter-spacing:.02em;cursor:pointer;padding:4px 6px}
.nav-drop-btn svg{width:20px;height:20px}

.page-shell{min-height:100vh}

/* =================== LIVE STRIP (black price-style ticker) =================== */
.live-strip-wrap{background:var(--topbar);padding:6px 32px}
.live-strip{display:flex;align-items:center;gap:14px;background:var(--topbar);padding:4px 0;overflow:hidden}
.live-strip-head{display:inline-flex;align-items:center;background:var(--yellow);color:#10171b;font-family:var(--head);font-size:11px;font-weight:800;letter-spacing:.08em;white-space:nowrap;text-decoration:none;padding:4px 10px;border-radius:4px;flex:none}
.live-strip-head:hover{background:#fff}
.live-strip-head .live-dot{background:#10171b;margin-right:6px;animation:none}
.live-strip-track{display:flex;align-items:center;overflow:hidden;white-space:nowrap;flex:1;-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.strip-item{font-size:12.5px;color:#c9d3d9;padding:0 14px;border-left:1px solid #2a353d}
.strip-item:first-child{padding-left:0;border-left:none}
.strip-item:hover{color:var(--yellow)}
.strip-item .live-dot{display:none}
/* moving headline line: #stripMover holds two identical runs (real + clone)
   and is the ONLY animated element — translateX(-50%) = exactly one run width.
   One shared animation means both copies stay in phase forever; two separate
   animations drift apart and the clone slides over the run (doubled text). */
.strip-mover{display:flex;align-items:center;flex:none;white-space:nowrap;animation:strip-run 40s linear infinite}
/* both runs are pixel-identical boxes (same padding-left) so that
   translateX(-50%) of the mover is EXACTLY one run width -> perfect loop */
.strip-run{display:flex;align-items:center;flex:none;white-space:nowrap;padding-left:14px}
.live-strip:hover .strip-mover,.live-strip:focus-within .strip-mover{animation-play-state:paused}
@keyframes strip-run{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.strip-mover{animation:none}}

/* =================== SHARED =================== */
.container{max-width:var(--wrap);margin:0 auto;padding:26px 32px 64px}
.tag{display:inline-block;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:6px}
.tag:hover{color:var(--yellow-2)}
.tag.sm{font-size:10px;margin-bottom:3px}
.time{font-size:11px;font-weight:600;color:var(--muted);white-space:nowrap}
.card-meta{color:var(--muted);font-size:11.5px;font-weight:600}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--down);margin-right:5px;vertical-align:middle;animation:pulse 1.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(224,52,47,.4)}70%{box-shadow:0 0 0 6px rgba(224,52,47,0)}100%{box-shadow:0 0 0 0 rgba(224,52,47,0)}}

/* =================== HOMEPAGE HERO GRID (CT) =================== */
.hero{display:grid;grid-template-columns:300px minmax(0,1fr) 320px;gap:32px;padding-bottom:34px}
/* left: LIVE headline list */
.rail-h{font-family:var(--head);font-weight:800;font-size:15px;letter-spacing:.01em;text-transform:uppercase;color:var(--ink);display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:2px solid var(--ink);margin-bottom:4px}
.rail-h .live-dot{background:var(--down)}
.newslist{list-style:none}
.newslist li{padding:12px 0;border-bottom:1px solid var(--line)}
.newslist li:last-child{border-bottom:none}
.newslist li:hover .nl-title{color:var(--yellow-2)}
.nl-title{display:block;font-family:var(--head);font-weight:700;font-size:14px;line-height:1.35;color:var(--ink);transition:color .15s}
.nl-meta{display:flex;align-items:center;flex-wrap:wrap;margin-top:4px}
/* center: big story with an overlapping dark info card + row of three */
.col-hero{min-width:0}
.feature{position:relative}
/* 16:9 + height cap: after --wrap:100% the center column grew to ~1172px and a
   3:2 box became a 781px-tall poster that also cropped wide cover images at the
   sides; a wider, capped box keeps the feature proportionate and shows the full
   image width (user request 2026-10-03) */
.feature .feat-media{display:block;width:100%;aspect-ratio:16/9;max-height:540px;overflow:hidden;background:var(--panel)}
/* top-anchored cover: on wide screens the capped box is wider than 16:9 and
   cover crops top+bottom; anchoring top keeps the image's own headline intact
   and pushes the crop to the bottom, where the info card sits anyway */
.feature .feat-media img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .3s ease}
.feature:hover .feat-media img{transform:scale(1.02)}
/* card = full-bleed caption band: spans the photo's ENTIRE width (left/right 0
   — unambiguously equal on both sides) and sits flush on its bottom edge
   (bottom 0). Was 18px insets which read as uneven vs the photo, user asked
   to sit lower + stretch to the sides, 2026-10-03 */
.feature .feat-info{position:absolute;left:0;right:0;bottom:0;z-index:1;background:linear-gradient(to top,rgba(16,23,27,.97),rgba(16,23,27,.82));padding:16px 22px 14px}
.feature .feat-info .tag{color:var(--yellow)}
.feature .feat-info .tag:hover{color:#fff}
.feature h1{font-family:var(--head);font-weight:800;font-size:23px;line-height:1.25;margin:2px 0 7px;text-wrap:balance}
.feature h1 a{color:#fff;transition:color .15s}
.feature h1 a:hover{color:var(--yellow)}
.feature .feat-ex{color:#b9c6cd;font-size:13px;line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feature .feat-info .card-meta{color:#8fa0ab}
.feature .ph{height:100%}
/* no cover (same logic as CHAINTOPNEWS): the info block sits BELOW the
   placeholder — the dark overlap card only works over a real photo */
.feature.no-cover .feat-info{position:static;margin:14px 0 0;background:none;padding:0}
.feature.no-cover .feat-info .tag{color:var(--muted)}
.feature.no-cover .feat-info .tag:hover{color:var(--yellow-2)}
.feature.no-cover h1 a{color:var(--ink)}
.feature.no-cover h1 a:hover{color:var(--yellow-2)}
.feature.no-cover .feat-ex{color:var(--ink-soft)}
.feature.no-cover .feat-info .card-meta{color:var(--muted)}
.hero-row{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:26px}
/* right rail: numbered Most Read */
.col-side{min-width:0}
.col-side .newslist{counter-reset:mr}
.col-side .newslist li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:2px 10px;align-items:start;counter-increment:mr;position:relative}
.col-side .newslist li::before{content:counter(mr);font-family:var(--head);font-weight:800;font-size:19px;line-height:1.1;color:var(--yellow-2);grid-row:1 / span 2}
.col-side .newslist .nl-title,.col-side .newslist .nl-meta{grid-column:2}
.side-feature{padding-bottom:16px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.side-feature .sf-media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--panel);margin-bottom:10px}
.side-feature .sf-media img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.side-feature:hover .sf-media img{transform:scale(1.03)}
.side-feature h3{font-family:var(--head);font-weight:700;font-size:15.5px;line-height:1.3}
.side-feature h3 a:hover{color:var(--yellow-2)}
.side-feature .ph{height:100%}
/* Join Us on Social */
.social-block{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.social-block h2{font-family:var(--head);font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink);margin-bottom:12px}
.sb-row{display:flex;flex-wrap:wrap;gap:8px}
.sb-row a{width:38px;height:38px;border-radius:6px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--muted);transition:background .15s,color .15s,border-color .15s}
.sb-row a:hover{background:var(--yellow);border-color:var(--yellow);color:#10171b}
.sb-row svg{width:16px;height:16px}

/* placeholders — rich section tones + chart-line pattern (looks designed,
   not empty) */
.ph{width:100%;height:100%;display:grid;place-items:center;color:rgba(255,255,255,.85);font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.1em;text-transform:uppercase;background-color:#26262a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34'%3E%3Cpath d='M0 26 15 18 30 22 45 10 60 16 75 6 90 12 105 4 120 8' fill='none' stroke='rgba(250,188,45,.28)' stroke-width='2'/%3E%3C/svg%3E"),linear-gradient(135deg,rgba(255,255,255,.08),rgba(0,0,0,.22));background-repeat:repeat-x,no-repeat;background-size:auto 36%,auto;background-position:bottom,0 0}
.ph.big{font-size:19px}
.ph[data-cat="crypto"]{background-color:#6e1624}
.ph[data-cat="world"]{background-color:#2e3a46}
.ph[data-cat="business"]{background-color:#203048}
.ph[data-cat="technology"]{background-color:#17453a}
.ph[data-cat="policy"]{background-color:#54432a}

/* =================== SECTIONS (bold heads, yellow marker — CT) =================== */
.section{margin-top:40px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:20px;border-bottom:1px solid var(--line-2)}
.section-head h2{font-family:var(--head);font-weight:800;font-size:16px;letter-spacing:.02em;text-transform:uppercase;color:var(--ink);display:inline-flex;align-items:center;border-left:4px solid var(--yellow);padding-left:12px}
.sh-note{font-size:11.5px;font-weight:600;color:var(--muted)}
.section-head a{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--ink);display:inline-flex;align-items:center;gap:6px}
.section-head a:hover{color:var(--yellow-2)}
.section-head a svg{width:13px;height:13px;flex:none}

/* =================== CARD GRID (3:2 CT cards) =================== */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px 24px}
.card{display:flex;flex-direction:column;min-width:0}
.card-media{display:block;aspect-ratio:3/2;overflow:hidden;background:var(--panel);margin-bottom:10px}
.card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.card:hover .card-media img{transform:scale(1.04)}
.card-media .ph{height:100%}
.card-title{font-family:var(--head);font-weight:700;font-size:15px;line-height:1.32;margin-bottom:5px}
.card-title a{background-image:linear-gradient(var(--yellow),var(--yellow));background-repeat:no-repeat;background-size:0% 2px;background-position:0 100%;transition:background-size .18s ease,color .15s}
.card:hover .card-title a{background-size:100% 2px}
.card-excerpt{display:none}
.card .card-meta{margin-top:auto}

/* hero-row cards: tighter, smaller */
.hero-row .card-title{font-size:14px;line-height:1.3}

/* =================== VIDEOS (play cards) =================== */
.watch-scroll{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:28px 22px}
.watch-card{display:flex;flex-direction:column;min-width:0}
.wc-media{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background:var(--panel);margin-bottom:10px}
.wc-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.wc-media .ph{height:100%}
.wc-media::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(16,23,27,.4),transparent 45%);pointer-events:none}
.watch-card:hover .wc-media img{transform:scale(1.04)}
.wc-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:46px;height:46px;background:var(--yellow);border-radius:50%;display:grid;place-items:center;z-index:1;box-shadow:0 2px 10px rgba(16,23,27,.35);transition:background .15s,transform .15s}
.wc-play svg{width:18px;height:18px;color:#10171b;margin-left:2px}
.watch-card:hover .wc-play{background:#fff;transform:translate(-50%,-50%) scale(1.08)}
.wc-title{font-family:var(--head);font-weight:700;font-size:15px;line-height:1.3;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.watch-card:hover .wc-title{color:var(--yellow-2)}
.wc-meta{margin-top:auto;color:var(--muted);font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.wc-meta svg{width:12px;height:12px;color:var(--yellow-2);flex:none}

/* =================== PAGE HEAD / CATEGORY =================== */
.page-head{padding:4px 0 18px;margin-bottom:24px;border-bottom:1px solid var(--line-2)}
.kicker{color:var(--muted);font-weight:800;text-transform:uppercase;font-size:11px;letter-spacing:.08em}
.page-head h1{font-family:var(--head);font-size:30px;font-weight:800;letter-spacing:.01em;text-transform:capitalize;margin-top:4px}

/* =================== ARTICLE =================== */
.article-wrap{max-width:720px;margin:0 auto}
.article-head h1{font-family:var(--head);font-size:30px;line-height:1.2;font-weight:800;margin:8px 0 12px;text-wrap:balance}
.lede{font-size:17px;color:var(--ink-soft);line-height:1.55;margin-bottom:14px}
.byline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-weight:600;padding:12px 0;border-top:4px solid var(--yellow);border-bottom:1px solid var(--line)}
.byline b{color:var(--ink)}
.src-link{color:var(--ink);font-weight:800;border-bottom:2px solid var(--yellow)}
.src-link:hover{color:var(--yellow-2)}
.article-cover{margin:22px 0;overflow:hidden}
.article-body{font-size:16px;line-height:1.75;color:var(--ink-2)}
.article-body p{margin:0 0 20px}
.article-body h2{font-family:var(--head);font-size:22px;font-weight:800;margin:34px 0 12px}
.article-body h3{font-family:var(--head);font-size:18px;font-weight:700;margin:26px 0 10px}
.article-body ul{margin:0 0 20px 22px}
.article-body li{margin-bottom:8px}
.article-body a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:3px}
.article-body a:hover{color:var(--yellow-2)}
.article-body blockquote{border-left:4px solid var(--yellow);padding:4px 0 4px 18px;margin:22px 0;font-size:18px;font-style:italic;color:var(--ink-2)}
.article-body code{font-family:ui-monospace,Menlo,monospace;background:var(--panel);padding:2px 6px;border-radius:4px;font-size:.85em}
.article-body img{margin:22px 0;border-radius:6px;height:auto}

/* =================== LIVE =================== */
.live-list{list-style:none}
.live-list li{padding:12px 0;border-bottom:1px solid var(--line)}
.live-list .li-time{display:block;color:var(--muted);font-size:11px;margin-top:3px;font-weight:600}
.live-empty{color:var(--muted);font-size:13.5px;padding:12px 0}
.live-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.conn-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:5px 10px;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--muted);white-space:nowrap}
.conn-badge.live{color:var(--up);border-color:rgba(0,168,107,.4)}
.conn-badge.live .live-dot{background:var(--up);animation:none}
.conn-badge.connecting,.conn-badge.off{color:var(--down);border-color:rgba(224,52,47,.35)}
.live-feed{display:flex;flex-direction:column}
/* "N new updates" pill — FLOATS over the page (fixed, bottom center): showing
   or hiding it must never shift the feed under the visitor's cursor, which
   made clicks land on the wrong (older) item */
.live-new-pill{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:60;width:auto;max-width:92vw;margin:0;padding:12px 22px;border:none;border-radius:999px;background:var(--yellow);color:var(--yellow-ink);font-family:var(--head);font-weight:800;font-size:13px;letter-spacing:.02em;text-align:center;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.45);transition:background .15s}
.live-new-pill:hover{background:var(--yellow-2)}
.live-new-pill[hidden]{display:none}
.live-item{padding:16px 0;border-bottom:1px solid var(--line);scroll-margin-top:190px}
.live-item-meta{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);margin-bottom:5px}
.live-item-meta .li-cat{color:var(--ink);font-weight:800}
.live-item h3{font-family:var(--head);font-size:19px;font-weight:700;line-height:1.28}
.live-item h3 a:hover{color:var(--yellow-2)}
.live-item p{color:var(--ink-soft);font-size:14px;margin-top:5px}
.live-empty-big{text-align:center;padding:60px 20px;color:var(--muted)}
.live-empty-big a{color:var(--ink);font-weight:800;border-bottom:2px solid var(--yellow)}
.flash-in{animation:flash 1.5s ease-out}
@keyframes flash{0%{background:rgba(250,188,45,.22)}100%{background:transparent}}
.live-item.has-img{display:grid;grid-template-columns:170px 1fr;gap:18px;align-items:start}
.li-img{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--panel)}
.li-img img{width:100%;height:100%;object-fit:cover}
#liveStats{font-size:11.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}

/* =================== EMPTY / BTN =================== */
.empty-state{text-align:center;padding:70px 20px;color:var(--muted)}
.empty-state h1,.empty-state h2{font-family:var(--head);color:var(--ink);margin-bottom:10px;text-transform:capitalize}
.empty-state.big h1{font-size:72px}
.empty-state a{color:var(--ink);font-weight:800;border-bottom:2px solid var(--yellow)}
.btn{display:inline-block;background:var(--ink);color:#fff;font-weight:800;letter-spacing:.02em;padding:12px 24px;border-radius:4px;font-size:13px;border:none;cursor:pointer;transition:background .15s,color .15s}
.btn:hover{background:var(--yellow-ink);color:var(--yellow)}
html[data-theme="dark"] .btn{background:var(--yellow);color:#10171b}
html[data-theme="dark"] .btn:hover{background:#fff}
.more-wrap{display:flex;justify-content:center;margin-top:28px}
.more-wrap[hidden]{display:none}
/* wire flash page: source button + back link under the body */
.wire-actions{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0 8px}
/* embedded source video player, 16:9 */
.wire-video{position:relative;padding-top:56.25%;margin:22px 0;overflow:hidden;border-radius:8px;background:#000}
.wire-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.wire-video.is-facade iframe{opacity:0;pointer-events:none;transition:opacity .25s}
.wire-video.is-facade.is-playing iframe{opacity:1;pointer-events:auto}
.wire-video.is-facade.is-playing .wire-poster{display:none}
.wire-poster{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:#000;cursor:pointer;display:block}
.wire-poster img{width:100%;height:100%;object-fit:cover;display:block}
.wire-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(6,10,14,.32)}
.wire-play svg{width:64px;height:64px;fill:#fff;filter:drop-shadow(0 2px 6px rgba(0,0,0,.55));transition:transform .15s}
.wire-poster:hover .wire-play svg,.wire-poster:focus-visible .wire-play svg{transform:scale(1.1)}
/* loading: the poster STAYS (dimmed) and the triangle swaps for a spinner
   until the player document actually loads — the button visibly reacts and
   there is no black gap between poster and player */
.wire-video.is-facade.is-loading .wire-poster{cursor:default}
.wire-video.is-facade.is-loading .wire-poster img{opacity:.55}
.wire-video.is-facade.is-loading .wire-play svg{display:none}
.wire-video.is-facade.is-loading .wire-play::after{content:"";width:42px;height:42px;border-radius:50%;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;animation:wire-spin .8s linear infinite}
@keyframes wire-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.wire-video.is-facade.is-loading .wire-play::after{animation:none}}
/* source link under an embedded video — the honest escape hatch when the
   publisher's player can't load on the visitor's network */
.wire-src{margin:-12px 0 22px;font-size:12px;font-weight:600;color:var(--muted)}
.wire-src a{color:inherit;text-decoration:underline;text-decoration-color:var(--yellow);text-underline-offset:3px}
.wire-src a:hover{color:var(--yellow-2)}
.btn.primary{background:var(--yellow);color:#10171b}
.btn.primary:hover{background:var(--yellow-2);color:#10171b}
html[data-theme="dark"] .btn.primary{background:var(--yellow);color:#10171b}
html[data-theme="dark"] .btn.primary:hover{background:var(--yellow-2);color:#10171b}
.btn.more{background:var(--surface);border:1px solid var(--line-2);color:var(--ink);min-width:200px;border-radius:999px}
.btn.more:hover{border-color:var(--ink);background:var(--surface);color:var(--ink)}
html[data-theme="dark"] .btn.more{background:var(--surface);color:var(--ink)}
.btn.more[disabled]{opacity:.45;cursor:default}

/* =================== NEWSLETTER (dark promo block) =================== */
.newsletter{margin:48px 0 8px;background:var(--topbar);padding:36px 32px;display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:center;color:#fff}
.newsletter h2{font-family:var(--head);font-weight:800;font-size:25px;line-height:1.15;text-transform:capitalize}
.newsletter h2 b{color:var(--yellow)}
.newsletter p{margin-top:8px;font-size:13.5px;color:#9fb0bb;line-height:1.55}
.nl-form{display:flex;gap:10px}
.nl-form input{flex:1;min-width:0;border:none;border-radius:4px;padding:13px 14px;font-size:14px;font-family:var(--body);outline:none;background:#fff;color:#10171b}
.nl-form input::placeholder{color:#8a97a0}
.nl-form button{flex:none;background:var(--yellow);color:#10171b;border:none;border-radius:4px;padding:13px 24px;font-family:var(--head);font-weight:800;font-size:13px;letter-spacing:.05em;text-transform:uppercase;cursor:pointer;transition:background .15s}
.nl-form button:hover{background:#fff}
.nl-note{grid-column:1 / -1;font-size:11.5px;color:#75838d}
.nl-ok{grid-column:1 / -1;color:var(--yellow);font-weight:800;font-size:14px}
/* Telegram option (shown only when a bot is configured in .env) */
.nl-tg{grid-column:2;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.nl-tg-or{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#75838d}
.nl-tg-btn{display:inline-flex;align-items:center;gap:8px;background:#229ED9;color:#fff;font-family:var(--head);font-weight:800;font-size:13px;letter-spacing:.02em;padding:11px 20px;border-radius:4px;transition:background .15s}
.nl-tg-btn:hover{background:#1b87b8}
.nl-tg-btn svg{width:16px;height:16px;flex:none}
.nl-tg-note{font-size:11px;color:#75838d}
@media(max-width:820px){.nl-tg{grid-column:1}}

/* =================== FOOTER =================== */
.site-footer{background:var(--footer);color:#c9d3d9;margin-top:56px;padding:46px 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:44px;padding-bottom:30px}
.footer-brand .fb-name{font-family:var(--head);font-weight:800;font-size:22px;color:#fff;letter-spacing:.01em}
.fb-social{display:flex;gap:10px;margin:14px 0}
.fb-social a{width:36px;height:36px;border-radius:6px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:#c9d3d9;transition:background .15s,color .15s}
.fb-social a:hover{background:var(--yellow);color:#10171b}
.fb-social svg{width:16px;height:16px}
.footer-brand p{margin-top:6px;font-size:13px;max-width:360px;line-height:1.6;color:#8a97a0}
.footer-col h4{font-family:var(--head);color:#fff;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px}
.footer-col a{display:block;padding:5px 0;font-size:13.5px;color:#9fb0bb}
.footer-col a:hover{color:var(--yellow)}
.footer-disclaimer{border-top:1px solid rgba(255,255,255,.1);padding:16px 0;font-size:12px;line-height:1.6;color:#8a97a0}
.footer-disclaimer strong{color:#c9d3d9}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:15px 0;font-size:12px;color:#75838d}

/* =================== HEADLINES LIST (category) =================== */
.headlines-block{margin-top:40px}
.newslist.headlines{columns:3;column-gap:32px}
.newslist.headlines li{break-inside:avoid;padding:12px 0}

/* =================== DOCS =================== */
.docs{max-width:960px;margin:0 auto}
.docs h2{font-family:var(--head);font-size:21px;font-weight:800;margin:38px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line-2);text-transform:capitalize}
.docs h2,.docs h3{scroll-margin-top:150px}
.docs h3{font-family:var(--head);font-size:16px;font-weight:700;margin:24px 0 8px}
.docs p,.docs li{color:var(--ink-2);font-size:14px;line-height:1.65}
.docs ul{margin:0 0 14px 20px}
.docs pre{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px 16px;overflow:auto;font-size:13px;line-height:1.55;margin:10px 0 16px}
.docs code{font-family:ui-monospace,Menlo,monospace;font-size:.9em;background:var(--panel);padding:2px 6px;border-radius:4px}
.docs pre code{background:none;padding:0}
.docs table{width:100%;border-collapse:collapse;margin:10px 0 16px;font-size:13px}
.docs th,.docs td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.docs th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.docs .kbd{font-weight:800;font-size:10.5px;background:var(--yellow);color:#10171b;padding:2px 7px;border-radius:4px;margin-right:6px}
.docs-footer{background:var(--footer);color:#c9d3d9;margin-top:72px;padding:42px 0 0}
.df-top{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding-bottom:28px}
.df-brand .fb-name{display:block;font-family:var(--head);font-weight:800;font-size:21px;color:#fff}
.df-brand .df-tag{display:inline-block;margin-top:10px;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:#10171b;background:var(--yellow);padding:3px 8px;border-radius:4px;line-height:1.3}
.df-brand p{margin-top:14px;font-size:13px;max-width:300px;line-height:1.6;color:#8a97a0}
.df-col h4{font-family:var(--head);color:#fff;font-size:13px;font-weight:800;text-transform:uppercase;margin-bottom:12px}
.df-col a{display:block;padding:5px 0;font-size:13.5px;color:#9fb0bb}
.df-col a:hover{color:var(--yellow)}
.df-bottom{border-top:1px solid rgba(255,255,255,.1);padding:15px 0;display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:#75838d}

/* =================== RESPONSIVE =================== */
/* narrower content: LIVE list becomes a 3-column band above hero+side */
@media(max-width:1279px){
  .hero{grid-template-columns:minmax(0,1fr) 300px;gap:26px}
  .col-latest{grid-column:1 / -1;padding-bottom:6px}
  .col-latest .newslist{columns:3;column-gap:26px}
  .col-latest .newslist li{break-inside:avoid}
}
/* yellow bar keeps search only; nav drops into the burger panel */
@media(max-width:1119px){
  html{overflow-x:hidden;overflow-x:clip}
  body{max-width:100%}
  .topbar-in{min-height:76px;padding:6px 16px}
  .ad-banner{height:60px;gap:16px;padding:0 16px}
  .ad-real{height:60px}
  .ad-real img{max-height:48px}
  .ab-chart{width:150px;height:40px}
  .ab-title{font-size:15px}
  .ab-sub{font-size:10px}
  .ab-coins{right:12px;gap:8px}
  .ab-coin{width:28px;height:28px;font-size:13px}
  .ab-coin.c2{width:22px;height:22px;font-size:11px}
  .tb-social{display:none}
  .navbar-in{padding:0 16px;height:44px;gap:8px}
  .nav-dropdown{display:block}
  .main-nav{display:none}
  .main-nav.open{display:flex;flex-direction:column;align-items:stretch;position:absolute;top:100%;left:0;right:0;background:var(--surface);box-shadow:var(--shadow);padding:8px 0}
  .main-nav a{border-radius:0;padding:12px 20px;font-size:14px}
  .main-nav a:hover{background:var(--bg-2)}
  .main-nav a.active{background:var(--yellow);color:#10171b}
  .hdr-search{margin-left:auto}
  .hdr-search input{width:110px}
  .live-strip-wrap{padding:6px 16px}
  .container{padding:18px 16px 56px}
  .hero{grid-template-columns:1fr;gap:22px}
  .col-hero{order:-1}
  .col-latest .newslist{columns:2;column-gap:22px}
  .col-side{border-top:1px solid var(--line);padding-top:18px}
  .col-side .newslist{columns:2;column-gap:22px}
  .col-side .newslist li{break-inside:avoid}
  .grid{grid-template-columns:repeat(3,1fr);gap:24px 16px}
}
@media(max-width:820px){
  .container{padding:14px 16px 48px}
  .hero{padding-bottom:24px}
  .feature h1{font-size:20px}
  /* small screens: the 16:9 photo is too short for an overlay card — stack the
     info BELOW the photo with the plain (no-cover) palette */
  .feature .feat-info{position:static;margin:12px 0 0;background:none;padding:0}
  .feature .feat-info .tag{color:var(--muted)}
  .feature h1 a{color:var(--ink)}
  .feature h1 a:hover{color:var(--yellow-2)}
  .feature .feat-ex{color:var(--ink-soft)}
  .feature .feat-info .card-meta{color:var(--muted)}
  .hero-row{grid-template-columns:repeat(3,1fr);gap:12px}
  .hero-row .card-title{font-size:12.5px}
  .col-latest .newslist{columns:1}
  .col-side .newslist{columns:1}
  .section{margin-top:30px}
  .section-head{flex-wrap:wrap;gap:6px 12px}
  .section-head h2{font-size:15px}
  .section-head a,.sh-note{font-size:11px;white-space:nowrap}
  .grid{grid-template-columns:repeat(2,1fr);gap:22px 14px}
  .card-title{font-size:14px}
  .more-wrap .btn{width:100%}
  .watch-scroll{grid-template-columns:repeat(2,1fr);gap:18px 14px}
  .newsletter{grid-template-columns:1fr;padding:24px 18px}
  .nl-form{flex-direction:column}
  .page-head h1{font-size:24px}
  .article-head h1{font-size:24px}
  .lede{font-size:16px}
  .article-body{font-size:15.5px}
  .article-body h2{font-size:20px}
  .live-head{flex-direction:column;align-items:flex-start;gap:10px}
  .live-item.has-img{grid-template-columns:110px 1fr;gap:12px}
  .live-item h3{font-size:16.5px}
  .newslist.headlines{columns:1}
  .docs pre{white-space:pre;max-width:100%}
  .docs table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
  .docs-footer{margin-top:44px;padding:30px 0 0}
  .df-top{grid-template-columns:1fr 1fr;gap:20px 22px;padding-bottom:22px}
  .df-brand{grid-column:1 / -1;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.1)}
  .df-bottom{flex-direction:column;text-align:center;gap:6px}
  .site-footer{margin-top:40px;padding:30px 0 0}
  .footer-grid{grid-template-columns:1fr 1fr;gap:20px 22px;padding-bottom:22px}
  .footer-brand{grid-column:1 / -1;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.1)}
}
@media(max-width:560px){
  .grid{grid-template-columns:1fr}
  .hero-row{grid-template-columns:1fr}
  .hero-row .card-title{font-size:15px}
  .watch-scroll{grid-template-columns:1fr}
  .ad-banner{height:50px;justify-content:center}
  .ab-chart,.ab-coins,.ab-sub{display:none}
  .ab-title{font-size:13px}
  .feature h1{font-size:18px}
  .article-head h1{font-size:22px}
  .hdr-search input{width:70px}
}

/* =================== ARRIVING NEWS — CoinHub placement (2026-10-03) ====
   Same design as before; the difference is WHERE fresh stories land when
   they arrive from sources over the live socket: a breaking story first
   surfaces on the center stage row (hero-row, the 3 cards under Top News)
   with a yellow flash, then fills its regular slots (category block /
   latest grid). Text-only headlines drop into the left LIVE rail. */
.hero-row .card.flash-in{outline:2px solid var(--yellow);outline-offset:2px;border-radius:4px}
