:root{
  --navy:#0B1F3A; --red:#C8102E; --hot:#FF4B3E;
  --bg:#F3F5F9; --card:#FFFFFF; --text:#0B1F3A; --muted:#4A5568; --line:#E3E8EF; --chip:#FFFFFF; --chip-line:#CBD3DF;
  --ok-bg:#E3F4E8; --ok:#17602D; --one-bg:#FFF1D6; --one:#7A4F00; --rum-bg:#FDE2E2; --rum:#9B1218;
  --shadow:0 1px 2px rgba(11,31,58,.06),0 4px 16px rgba(11,31,58,.06);
  --radius:16px; --maxw:760px;
  font-size:16px;
}
:root[data-theme="dark"]{
  --bg:#08111F; --card:#111D30; --text:#EEF2F8; --muted:#A7B3C6; --line:#1F2D45; --chip:#111D30; --chip-line:#2A3B57;
  --ok-bg:#103A22; --ok:#8BE0A8; --one-bg:#3A2A08; --one:#F5CF7A; --rum-bg:#3D1216; --rum:#FFA3A8;
  --shadow:none;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
a{color:inherit}
button{font:inherit;color:inherit}
img{display:block;max-width:100%}
:focus-visible{outline:3px solid var(--hot);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.top{position:sticky;top:0;z-index:20;background:var(--navy);color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:calc(10px + env(safe-area-inset-top)) 16px 9px}
.slogan{flex:1 1 calc(100% - 110px);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:11.5px;font-weight:500;line-height:1.35;color:#C9D3E3;letter-spacing:.1px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;min-width:0}
.logo{width:36px;height:35px;flex-shrink:0}
.name .di{color:#FF8A1F}
.name{font-family:"Space Grotesk",Inter,sans-serif;font-weight:700;font-size:23px;letter-spacing:-.5px}
.live{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#FFB4AE;margin-left:2px;white-space:nowrap}
@media (max-width:400px){.live span{display:none}}
.live i{width:8px;height:8px;border-radius:50%;background:var(--hot);box-shadow:0 0 0 0 rgba(255,75,62,.7);animation:pulse 1.8s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,75,62,.7)}70%{box-shadow:0 0 0 8px rgba(255,75,62,0)}100%{box-shadow:0 0 0 0 rgba(255,75,62,0)}}
@media (prefers-reduced-motion:reduce){.live i{animation:none}}
.langs{display:flex;background:rgba(255,255,255,.1);border-radius:999px;padding:3px;flex-shrink:0}
.langs button{border:0;background:transparent;color:#DCE3EE;font-size:12px;font-weight:700;min-width:36px;height:30px;border-radius:999px;cursor:pointer;padding:0 8px}
.langs button[aria-pressed="true"]{background:#fff;color:var(--navy)}

/* layout */
main{max-width:var(--maxw);margin:0 auto;padding:0 0 24px;outline:none}
.pad{padding:0 16px}
h1,h2,h3{font-family:"Space Grotesk",Inter,sans-serif;letter-spacing:-.3px;margin:0}
.section-title{display:flex;align-items:center;gap:8px;font-size:19px;margin:22px 16px 10px}
.section-title .flame{width:18px;height:20px}

/* search + chips */
.searchbar{margin:14px 16px 0;position:relative}
.searchbar input{width:100%;height:46px;border-radius:14px;border:1px solid var(--line);background:var(--card);color:var(--text);padding:0 14px 0 42px;font:inherit;font-size:15px}
.searchbar svg{position:absolute;left:14px;top:13px;width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:2}
.chips{display:flex;gap:8px;overflow-x:auto;padding:12px 16px 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex-shrink:0;height:36px;padding:0 15px;border-radius:999px;border:1px solid var(--chip-line);background:var(--chip);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.chip[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text);font-weight:600}

/* hot carousel */
.hot{display:flex;gap:12px;overflow-x:auto;padding:0 16px 6px;scroll-snap-type:x mandatory;scrollbar-width:none}
.hot::-webkit-scrollbar{display:none}
.hotcard{flex:0 0 78%;max-width:320px;scroll-snap-align:start;background:var(--navy);color:#fff;border-radius:var(--radius);overflow:hidden;text-decoration:none;display:flex;flex-direction:column;position:relative;min-height:190px}
.hotcard .img{height:120px;background:#16294A center/cover no-repeat}
.hotcard .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.hotcard h3{font-size:16px;line-height:1.3}
.hotcard .meta{font-size:12px;color:#C9D3E3}
.hotcard .rank{position:absolute;top:10px;left:10px;background:var(--hot);color:#fff;font-weight:700;font-size:12px;border-radius:8px;padding:3px 8px}

/* story cards */
.list{display:flex;flex-direction:column;gap:12px;padding:0 16px}
.card{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px;text-decoration:none;box-shadow:var(--shadow);transition:transform .12s ease}
.card:active{transform:scale(.99)}
.card .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.card h3{font-size:16.5px;line-height:1.32;font-weight:700}
.card .thumb{width:92px;height:92px;border-radius:12px;object-fit:cover;flex-shrink:0;background:var(--line)}
.card.lead{flex-direction:column;padding:0;overflow:hidden}
.card.lead .thumb{width:100%;height:200px;border-radius:0}
.card.lead .txt{padding:14px 16px 16px}
.card.lead h3{font-size:21px}
.card.lead p{margin:0;color:var(--muted);font-size:14.5px;line-height:1.5}
.row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px}
.meta{font-size:12.5px;color:var(--muted)}
.srcs{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;padding:3px 8px;border-radius:7px;white-space:nowrap}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.one{background:var(--one-bg);color:var(--one)}
.badge.rumor{background:var(--rum-bg);color:var(--rum)}
.catlbl{font-size:11.5px;font-weight:700;color:var(--red);text-transform:uppercase;letter-spacing:.5px}
:root[data-theme="dark"] .catlbl{color:#FF8A80}

.more{display:block;margin:16px auto 0;height:44px;padding:0 22px;border-radius:999px;border:1px solid var(--chip-line);background:var(--card);font-weight:600;cursor:pointer}
.empty{margin:40px 24px;text-align:center;color:var(--muted);line-height:1.6}
.empty svg{width:48px;height:56px;margin:0 auto 12px;display:block}
.skel{height:110px;border-radius:var(--radius);background:linear-gradient(90deg,var(--card),var(--line),var(--card));background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

/* new pill */
.newpill{position:fixed;top:calc(84px + env(safe-area-inset-top));left:0;right:0;display:flex;justify-content:center;z-index:25;pointer-events:none}
.newpill button{pointer-events:auto;border:0;background:var(--red);color:#fff;font-weight:700;font-size:14px;height:38px;padding:0 16px;border-radius:999px;box-shadow:0 6px 20px rgba(200,16,46,.35);cursor:pointer}

/* story page */
.story{padding:0 0 10px}
.back{display:inline-flex;align-items:center;gap:4px;height:44px;margin:6px 8px 0;padding:0 10px;border:0;background:transparent;font-weight:600;cursor:pointer;color:var(--text)}
.back svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.hero{width:100%;max-height:300px;object-fit:cover;background:var(--line)}
.story .inner{padding:16px;display:flex;flex-direction:column;gap:14px}
.story h1{font-size:27px;line-height:1.2}
.story .summary{font-size:17px;line-height:1.65;margin:0}
.note{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--muted);line-height:1.5}
.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:48px;border-radius:12px;border:1px solid var(--chip-line);background:var(--card);font-weight:700;font-size:14px;padding:0 6px;cursor:pointer;text-decoration:none}
.btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.btn.primary{background:var(--red);border-color:var(--red);color:#fff}
.btn.wa{background:#1F8B4C;border-color:#1F8B4C;color:#fff}
.srclist{display:flex;flex-direction:column;gap:8px}
.srcitem{display:flex;flex-direction:column;gap:3px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;text-decoration:none}
.srcitem b{font-size:14.5px}
.srcitem span{font-size:13.5px;color:var(--muted);line-height:1.4}
.srcitem em{font-style:normal;font-size:13px;font-weight:600;color:var(--red)}
:root[data-theme="dark"] .srcitem em{color:#FF8A80}
.label{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}

/* panels */
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin:0 16px;overflow:hidden}
.panel .item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:10px 14px;border-bottom:1px solid var(--line);text-decoration:none;width:100%;background:transparent;border-left:0;border-right:0;border-top:0;text-align:left;cursor:pointer}
.panel .item:last-child{border-bottom:0}
.panel .item small{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.count{font-size:13px;color:var(--muted);font-weight:600}
.star{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;cursor:pointer;flex-shrink:0}
.star svg{width:22px;height:22px;stroke:var(--muted);fill:none;stroke-width:2}
.star[aria-pressed="true"] svg{fill:var(--hot);stroke:var(--hot)}
.switch{width:46px;height:28px;border-radius:999px;background:var(--chip-line);position:relative;flex-shrink:0;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
[aria-pressed="true"] .switch{background:var(--red)}
[aria-pressed="true"] .switch::after{left:21px}
.seg{display:flex;gap:6px;padding:12px 14px;flex-wrap:wrap}
.seg button{flex:1;min-width:70px;height:40px;border-radius:10px;border:1px solid var(--chip-line);background:transparent;font-weight:600;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.intro{margin:18px 16px 12px;display:flex;flex-direction:column;gap:6px}
.intro h1{font-size:24px}
.intro p{margin:0;color:var(--muted);line-height:1.55;font-size:15px}
.legend{display:flex;flex-direction:column;gap:8px;margin:0 16px}
.legend div{display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--muted)}

/* bottom tabs */
.tabs{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;background:var(--card);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
.tabs a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;text-decoration:none;font-size:11.5px;font-weight:600;color:var(--muted);border-radius:12px;min-height:48px;justify-content:center}
.tabs svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tabs a[aria-current="page"]{color:var(--red)}
:root[data-theme="dark"] .tabs a[aria-current="page"]{color:#FF8A80}

@media (min-width:760px){
  .hotcard{flex-basis:300px}
  .card.lead .thumb{height:300px}
}

/* logo placeholder when a story has no photo */
.ph{display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#FFB21A 0%,#FF6A00 55%,#F2380F 100%)}
.ph svg{height:46%;width:auto;max-height:110px}
.card .thumb.ph{background:linear-gradient(160deg,#FFB21A 0%,#FF6A00 55%,#F2380F 100%)}
.card .thumb.ph svg{height:52%}
.hotcard .img.ph{background:linear-gradient(160deg,#FFB21A 0%,#FF6A00 55%,#F2380F 100%)}
.hero.ph{height:200px}

/* install button + pop-up */
.fab{position:fixed;right:14px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:22;display:flex;align-items:center;gap:8px;height:46px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--red);color:#fff;font-weight:700;font-size:14.5px;box-shadow:0 8px 24px rgba(200,16,46,.38);cursor:pointer}
.fab svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.modal{position:fixed;inset:0;z-index:40;background:rgba(5,12,24,.6);display:flex;align-items:flex-end;justify-content:center;padding:0}
.sheet{position:relative;width:100%;max-width:480px;background:var(--card);color:var(--text);border-radius:22px 22px 0 0;padding:26px 22px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;animation:up .25s ease}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet{animation:none}}
.sheet h2{font-size:22px;padding-right:30px}
.sheet p{margin:0;color:var(--muted);line-height:1.55;font-size:15px}
.sheet .how{color:var(--text);font-weight:600}
.sheet ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.45}
.sheet .btn{width:100%}
.popicon img{width:64px;height:64px;border-radius:16px}
.x{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;background:transparent;font-size:28px;line-height:1;color:var(--muted);cursor:pointer}
@media (min-width:600px){.modal{align-items:center}.sheet{border-radius:22px}}

/* computer screens: tabs on the left side */
@media (min-width:900px){
  body{padding-bottom:0;padding-left:232px}
  .top{margin-left:-232px;padding-left:24px;padding-right:24px}
  .tabs{top:var(--hdr,96px);bottom:0;left:0;right:auto;width:232px;flex-direction:column;gap:4px;padding:18px 12px;border-top:0;border-right:1px solid var(--line);background:var(--card)}
  .tabs a{flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:14px;padding:0 16px;min-height:50px;font-size:15.5px;font-weight:600}
  .tabs a:hover{background:var(--bg)}
  .tabs a[aria-current="page"]{background:var(--bg)}
  main{padding-top:8px}
  .newpill{left:232px}
}

/* photo credit + contact form */
.credit{margin:6px 16px 0;font-size:12px;color:var(--muted)}
.form{padding:16px;display:flex;flex-direction:column;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:14px;font-weight:600}
.field input,.field select,.field textarea{font:inherit;font-size:16px;color:var(--text);background:var(--bg);border:1px solid var(--chip-line);border-radius:10px;padding:11px 12px;min-height:46px}
.field textarea{resize:vertical}
.ferr{margin:0;color:#B3261E;font-size:14px;min-height:1px}
:root[data-theme="dark"] .ferr{color:#FFA3A8}
.form .ok{margin:0;font-weight:600;color:var(--ok)}
.btn.read{height:54px;font-size:16px;text-align:center;padding:0 14px}

/* privacy & copyright page */
.legal{padding:4px 16px 24px;max-width:720px}
.legal h1{font-size:26px;margin:8px 0 4px}
.legal h2{font-size:18px;margin:22px 0 6px}
.legal p{margin:0 0 10px;line-height:1.65;font-size:15.5px;color:var(--text)}
.legal .meta{color:var(--muted);font-size:13px}

.pushnote{margin:0;padding:0 14px 12px;font-size:13px;color:var(--muted);line-height:1.45}

.shareapp{margin:20px 16px 0;padding:16px;border-radius:var(--radius);background:var(--card);border:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.shareapp b{font-family:"Space Grotesk",Inter,sans-serif;font-size:17px}
.shareapp span{font-size:14px;color:var(--muted);line-height:1.45}
.shareapp .actions{margin-top:8px}

/* arrows for the top-stories carousel (computers only) */
.hotbox{position:relative}
.hotnav{display:none}
@media (hover:hover) and (pointer:fine){
  .hotnav{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--text);box-shadow:0 4px 14px rgba(11,31,58,.18);cursor:pointer}
  .hotnav svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
  .hotnav.prev{left:6px}.hotnav.next{right:6px}
  .hotnav:disabled{opacity:0;pointer-events:none}
  .hotnav:hover{background:var(--bg)}
}

/* sponsored cards */
.adcard{border-style:dashed}
.adlabel{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.hotcard .adlabel{color:#C9D3E3}
.addesc{margin:0;font-size:14px;color:var(--muted);line-height:1.45}
.adcta{font-size:13.5px;font-weight:700;color:var(--red)}
:root[data-theme="dark"] .adcta{color:#FF8A80}
.card .adimg{width:92px;height:92px;border-radius:12px;object-fit:cover;flex-shrink:0}
.adname{display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;font-family:"Space Grotesk",Inter,sans-serif;font-weight:700;font-size:15px;padding:6px;line-height:1.15}
.hotcard .adimg{width:100%;height:120px;border-radius:0;object-fit:cover}
.hotcard .adname{font-size:26px}
.story .adcard{margin-top:6px}

/* right-hand ad column on big screens; inline ads stay for phones and tablets */
.adrail{display:none}
@media (min-width:1360px){
  :root{--railgap:max(24px, calc((100vw - 232px - var(--maxw) - 284px) / 2))}
  main{margin-left:var(--railgap);margin-right:auto}
  .adrail{display:flex;flex-direction:column;gap:14px;position:fixed;top:calc(var(--hdr,96px) + 16px);left:calc(232px + var(--railgap) + var(--maxw) + 24px);width:260px;z-index:5}
  .adrail:empty{display:none}
  main .adcard{display:none}
  .hot .adcard{display:none}
}
.railad{display:flex;flex-direction:column;background:var(--card);border:1px dashed var(--chip-line);border-radius:var(--radius);overflow:hidden;text-decoration:none;box-shadow:var(--shadow)}
.railad .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px}
.railad h3{font-size:16px;line-height:1.3}
.railimg{width:100%;height:150px;object-fit:cover}
.railimg.adname{font-size:26px}

/* sponsor posters: the image is the ad */
/* sponsor posters: same card look as the news, poster whole on a soft blurred copy of itself */
.adposter{display:flex;flex-direction:column;gap:0;padding:0;text-decoration:none;overflow:hidden}
.card.adposter{flex-direction:column;border-style:solid}
.adposter .adlabel{padding:8px 12px 7px;font-size:10.5px}
.adposter .stage{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;background:var(--bg)}
.adposter .pbg{position:absolute;inset:-20px;background-size:cover;background-position:center;filter:blur(18px) saturate(1.2);opacity:.55}
.posterimg{position:relative;display:block;width:auto;max-width:100%;height:auto;max-height:340px;margin:0 auto;object-fit:contain}
.adhot{background:var(--card);border:1px solid var(--line)}
.adhot .adlabel{color:var(--muted)}
.adhot .stage{flex:1}
.adhot .posterimg{max-height:164px}
.railad.adposter{border-style:solid}
.railad.adposter .posterimg{max-height:300px}
.adrail>a{transition:opacity .35s ease}
.adrail.swap>a{opacity:0}
@media (min-width:1360px) and (max-height:800px){.adrail>a:nth-child(2){display:none}}

/* small "share SakDi?" button in the header, on the slogan line */
.hshare{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px 0 8px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:#E6ECF5;font:600 11.5px/1 Inter,system-ui,sans-serif;cursor:pointer}
.hshare svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hshare:hover{background:rgba(255,255,255,.16)}
.hshare:active{transform:scale(.96)}
@media (max-width:479px){
  .slogan{flex-basis:calc(100% - 40px);font-size:11.5px;letter-spacing:0}
  .hshare{width:26px;height:24px;padding:0;justify-content:center}
  .hshare span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
