/* TechHeadliner — dark neon dashboard theme */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: #0a0f1c;
  --panel-2: #0e1528;
  --line: #19233b;
  --line-2: #24314f;
  --grid: rgb(34 228 255 / .045);
  --text: #e6edf7;
  --muted: #8f9cb6;
  --dim: #8090b0;
  --cyan: #22e4ff;
  --magenta: #ff2bd6;
  --lime: #4dffa6;
  --cyan-soft: rgb(34 228 255 / .12);
  --mag-soft: rgb(255 43 214 / .12);
  --glow: 0 0 18px rgb(34 228 255 / .35);
  --display: "Chakra Petch", "Bai Jamjuree", system-ui, sans-serif;
  --body: "Bai Jamjuree", "Noto Sans Thai", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Bai Jamjuree", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden;
  font: 400 1rem/1.65 var(--body); color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 85% -120px, rgb(255 43 214 / .10), transparent 70%),
    radial-gradient(900px 480px at 0 -80px, rgb(34 228 255 / .10), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-attachment: scroll;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; box-shadow: var(--glow); }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; letter-spacing: .005em; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: .02em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: #001018; font-weight: 600; border-radius: 6px; }
.skip:focus { top: 12px; }

.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.panel-note { font-size: .7rem; color: var(--dim); letter-spacing: .14em; }
.kicker { margin: 0 0 6px; font-size: .74rem; color: var(--cyan); letter-spacing: .12em; }
.neon { color: var(--magenta); text-shadow: 0 0 16px rgb(255 43 214 / .55); }

.live { display: inline-flex; align-items: center; gap: 7px; font: 700 .72rem var(--mono); letter-spacing: .16em; color: var(--magenta); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 0 0 rgb(255 43 214 / .6); animation: beat 1.6s ease-out infinite; flex: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgb(255 43 214 / .7); } 70% { box-shadow: 0 0 0 9px rgb(255 43 214 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 43 214 / 0); } }

/* ---------- phone vocabulary: glyphs, app icons, status icons ---------- */
.sico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-ico {
  position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--cyan);
  background: linear-gradient(145deg, #13203d, #070b16); border: 1px solid rgb(34 228 255 / .35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 0 14px rgb(34 228 255 / .18);
}
.app-ico .sico { width: 26px; height: 26px; filter: drop-shadow(0 0 4px rgb(34 228 255 / .7)); }
.app-ico-sm { width: 30px; height: 30px; border-radius: 9px; }
.app-ico-sm .sico { width: 17px; height: 17px; }
.app-ico-lg { width: 58px; height: 58px; border-radius: 16px; }
.app-ico-lg .sico { width: 32px; height: 32px; }
.app-badge { position: absolute; top: -7px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font-size: .68rem; color: #fff; background: #c4129f; border: 2px solid var(--panel); }
.app-link { display: inline-flex; align-items: center; gap: 10px; }
.sys-icons { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.sys-icons b { font-size: .7rem; letter-spacing: .04em; color: var(--lime); }
.sys-icons svg { height: 11px; width: auto; }
.sig rect { fill: currentColor; }
.sig rect:last-child { opacity: .35; }
.wifi { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.batt { position: relative; display: inline-block; width: 24px; height: 12px; padding: 1.5px; border: 1.5px solid currentColor; border-radius: 3.5px; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.batt i { display: block; height: 100%; width: 100%; border-radius: 1.5px; background: var(--lime); transform-origin: 0 50%; }
.island { display: inline-block; width: 96px; height: 24px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); position: relative; }
.island i { position: absolute; right: 9px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3f6b, #05070d 70%); box-shadow: 0 0 0 1.5px #111a2e; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgb(5 7 13 / .85); }
.statusbar { border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.statusbar-row { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.tagline { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys { font-size: .7rem; color: var(--dim); letter-spacing: .12em; }
.sb-clock { font-size: .8rem; font-weight: 700; color: var(--text); }
.sb-clock:empty { display: none; }
@media (max-width: 560px) { .sys { display: none; } .statusbar-row { gap: 10px; } }

.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 6px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { filter: drop-shadow(0 0 8px rgb(34 228 255 / .45)); }
.logo-text { font: 700 1.5rem/1 var(--display); letter-spacing: .02em; color: var(--text); }
.logo-text b { color: var(--cyan); text-shadow: var(--glow); }
.nav { flex: 1; min-width: 0; }
.nav ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; font: 600 .92rem var(--display); color: var(--muted); background: var(--panel);
}
.nav a:hover { color: var(--text); border-color: var(--line-2); }
.nav a[aria-current="page"] { color: #001018; background: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow); }
.nav a .sico { color: var(--cyan); }
.nav a[aria-current="page"] .sico { color: #001018; }
@media (min-width: 960px) { .nav ul { justify-content: flex-end; } }
@media (max-width: 759px) { .header-row { gap: 10px; } .nav { flex-basis: 100%; } }

.pulse { display: block; width: 100%; height: 34px; }
.pulse path { fill: none; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: var(--line); stroke-width: 1; }
.pulse-line {
  stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgb(34 228 255 / .8));
  stroke-dasharray: 240 2400; animation: trace 5s linear infinite;
}
@keyframes trace { from { stroke-dashoffset: 2640; } to { stroke-dashoffset: 0; } }

/* ticker */
.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: #070b16; font-size: .9rem; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
  font: 700 .78rem var(--display); color: #fff; background: linear-gradient(90deg, #8f107a, #c4129f);
}
.ticker-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker-list li { display: flex; align-items: center; gap: 10px; padding: 9px 28px 9px 0; white-space: nowrap; }
.ticker-list li::before { content: "◆"; color: var(--magenta); font-size: .55rem; }
.ticker-list .mono { color: var(--cyan); font-size: .78rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 18px auto 0; padding: 0; font-size: .82rem; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

main { padding-bottom: 56px; }
main > section, main > div, main > header, main > .wrap:not(.crumbs) { margin-top: 24px; }
.hero .chip { background: rgb(5 7 13 / .8); }

/* ---------- shared bits ---------- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.chip .sico { width: 14px; height: 14px; }
.chip {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 4px;
  font: 600 .76rem var(--display); color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgb(34 228 255 / .3);
}
.type { padding: 2px 8px; border-radius: 4px; font: 600 .72rem var(--display); color: var(--muted); border: 1px solid var(--line-2); }
.type-review { color: var(--magenta); border-color: rgb(255 43 214 / .4); background: var(--mag-soft); }
.flag { padding: 2px 8px; border-radius: 4px; font-size: .7rem; font-weight: 700; color: #fff; background: #c4129f; letter-spacing: .1em; }
.dur { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 3px; border-radius: 999px; font-size: .72rem; color: var(--text); white-space: nowrap; border: 1px solid var(--line-2); background: var(--panel); }
.spec-k { padding: 0 6px; border-radius: 999px; font: 600 .66rem var(--display); color: #001018; background: var(--cyan); }
.meta { margin: 8px 0 0; font-size: .76rem; color: var(--dim); }
.sub { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.feed-sec { display: inline-block; margin-right: 6px; font: 600 .72rem var(--display); color: var(--magenta); letter-spacing: .02em; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-title { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 4px; height: 1.1em; background: var(--cyan); box-shadow: var(--glow); border-radius: 2px; }
.section-note { margin: 0; font-size: .72rem; color: var(--dim); letter-spacing: .12em; }

/* ---------- home ---------- */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.dash-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { min-width: 110px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.kpi-label { display: block; font-size: .72rem; color: var(--dim); }
.kpi b { display: block; font-size: 1.45rem; line-height: 1.2; color: var(--cyan); text-shadow: 0 0 12px rgb(34 228 255 / .35); }
.kpi-hot b { color: var(--magenta); text-shadow: 0 0 12px rgb(255 43 214 / .4); }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .kpi { min-width: 0; } }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.hero { grid-column: span 8; display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: center; gap: 30px; padding: 26px 34px 26px 30px; border-color: var(--line-2); overflow: hidden;
  background: radial-gradient(420px 420px at 24% 45%, rgb(34 228 255 / .2), transparent 70%), radial-gradient(420px 380px at 90% 95%, rgb(255 43 214 / .16), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.phone { position: relative; width: 100%; aspect-ratio: 336 / 690; max-height: 690px; padding: 10px; border-radius: 52px;
  background: linear-gradient(145deg, #24304f, #070b16 40%, #16203a); border: 1px solid var(--cyan);
  box-shadow: inset 0 0 0 2px #000, 0 0 26px rgb(34 228 255 / .4), 0 0 70px rgb(255 43 214 / .2); }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; right: -5px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--cyan), var(--magenta)); }
.phone::before { top: 22%; height: 74px; }
.phone::after { left: -5px; right: auto; top: 19%; height: 42px; border-radius: 3px 0 0 3px; box-shadow: 0 58px 0 #7f87f0; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 42px; background: #000; }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 7 13 / .88), rgb(5 7 13 / .5) 34%, rgb(5 7 13 / .05) 55%, rgb(5 7 13 / .55)); pointer-events: none; }
.screen-bar { position: absolute; z-index: 2; top: 12px; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 20px; font-size: .8rem; font-weight: 700; color: #fff; }
.screen-bar .island { width: 88px; }
.screen-bar .sys-icons { justify-self: end; gap: 5px; color: #fff; }
.screen-bar .sys-icons b { display: none; }
@media (min-width: 960px) and (max-width: 1180px) { .screen-bar { padding: 0 14px; } .screen-bar .island { width: 58px; } .screen-bar .sys-icons { gap: 3px; } }
.lock { position: absolute; z-index: 2; top: 62px; left: 0; right: 0; margin: 0; text-align: center; color: #fff; line-height: 1; }
.lock span { display: block; font: 600 .95rem var(--display); }
.lock b { display: block; margin-top: 8px; font-size: 4.1rem; letter-spacing: -.04em; color: var(--cyan); text-shadow: 0 0 24px rgb(34 228 255 / .7); }
.lock-note { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 34px; margin: 0; display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 20px; font-size: .84rem; line-height: 1.4; color: #dbe4f3; background: rgb(8 12 24 / .86); border: 1px solid rgb(255 43 214 / .5); }
.lock-note span:last-child b { display: block; color: #fff; font-family: var(--display); }
.home-ind { position: absolute; z-index: 2; bottom: 10px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgb(255 255 255 / .8); }
.hero .tags { margin-bottom: 14px; }
.hero h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.34; }
.hero .sub { margin-top: 12px; font-size: 1rem; color: #c4cde0; }
.hero .meta { margin-top: 16px; color: var(--muted); }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero:hover { border-color: var(--cyan); box-shadow: var(--glow); }

.feed { grid-column: span 4; display: flex; flex-direction: column; }
.feed-list { list-style: none; margin: 0; padding: 12px; flex: 1; display: grid; gap: 8px; align-content: start; }
.notif { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 10px 12px; border-radius: 16px; font-size: .9rem; line-height: 1.45;
  background: rgb(230 237 247 / .045); border: 1px solid rgb(230 237 247 / .08); box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.notif:first-child { border-color: rgb(255 43 214 / .45); box-shadow: 0 0 16px rgb(255 43 214 / .18); }
.notif:hover { border-color: rgb(34 228 255 / .5); }
.notif-text { min-width: 0; }
.notif-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 2px; }
.notif-top .feed-sec { margin: 0; text-transform: none; }
.notif-top time { font-size: .68rem; color: var(--dim); white-space: nowrap; }
.notif a { display: block; font-weight: 500; }
.feed .ad-slot { margin: 0 16px 16px; }

.top { grid-column: span 4; overflow: hidden; display: flex; flex-direction: column; }
.top:hover { border-color: rgb(34 228 255 / .5); }
.top-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.top-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.top:hover .top-img img { transform: scale(1.04); }
.top-body { padding: 14px 16px 16px; }
.top-no { margin: 0 0 4px; font-size: .7rem; color: var(--magenta); letter-spacing: .14em; }
.top h3 { font-size: 1.05rem; }

@media (max-width: 959px) {
  .hero, .feed { grid-column: span 12; }
}
@media (max-width: 719px) {
  .top { grid-column: span 12; flex-direction: row; }
  .top-img { flex: none; width: 112px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .top-body { padding: 10px 12px; }
  .top h3 { font-size: .96rem; }
  /* phone width: the headline moves onto the lock screen itself */
  .hero { display: block; min-height: 0; padding: 0; border: 0; background: none; overflow: visible; }
  .hero:hover { box-shadow: none; }
  .phone { aspect-ratio: auto; height: 620px; max-width: 420px; margin: 0 auto; }
  .screen::after { background: linear-gradient(180deg, rgb(5 7 13 / .88), rgb(5 7 13 / .35) 32%, rgb(5 7 13 / .8) 56%, rgb(5 7 13 / .97) 74%); }
  .lock-note { display: none; }
  .hero-body { position: absolute; z-index: 3; bottom: 40px; left: 50%; width: 100%; max-width: 420px; transform: translateX(-50%); padding: 0 32px; }
  .hero .stretch::after { top: auto; height: 540px; }
  .hero .sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}

/* section widgets */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
@media (min-width: 1000px) {
  .widgets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .widget { grid-column: span 2; }
  .widget:first-child:nth-last-child(5), .widget:first-child:nth-last-child(5) + .widget,
  .widget:first-child:nth-last-child(4), .widget:first-child:nth-last-child(4) ~ .widget,
  .widget:first-child:nth-last-child(2), .widget:first-child:nth-last-child(2) ~ .widget { grid-column: span 3; }
  .widget:only-child { grid-column: span 6; }
}
.widget { padding: 16px; display: flex; flex-direction: column; }
.widget::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); border-radius: 2px; }
.widget-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }

.widget-head h3 { font-size: 1.1rem; }
.stat { margin: 0; text-align: right; line-height: 1; }
.stat b { display: block; font-size: 1.9rem; color: var(--cyan); text-shadow: 0 0 14px rgb(34 228 255 / .4); }
.stat span { font-size: .7rem; color: var(--dim); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); overflow: hidden; }
.bars i { flex: 1; max-width: 14px; min-width: 3px; height: min(100%, calc(var(--h, 1) * 3px + 40%)); background: linear-gradient(180deg, var(--cyan), rgb(34 228 255 / .25)); border-radius: 2px 2px 0 0; }
.bars i:nth-child(2n) { height: min(100%, calc(var(--h, 1) * 3px + 70%)); }
.bars i:nth-child(5n+1) { height: 95%; }
.bars i:nth-child(3n) { background: linear-gradient(180deg, var(--magenta), rgb(255 43 214 / .25)); }
.widget-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.widget-list li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 8px 0; font-size: .9rem; line-height: 1.45; border-bottom: 1px dashed var(--line); }
.widget-list time { color: var(--cyan); font-size: .76rem; padding-top: 2px; }
.more { display: inline-block; margin-top: 12px; font: 600 .86rem var(--display); letter-spacing: 0; color: #ff5fe0; }

/* reviews */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.review { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; align-items: center; border-color: rgb(255 43 214 / .25); }
.review img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.review h3 { font-size: .95rem; }

/* tiles grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.tile:hover { border-color: rgb(34 228 255 / .5); }
.tile-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 12px 14px 16px; }
.tile h3 { font-size: 1rem; }

.empty { padding: 48px 20px; text-align: center; }
.empty h2 { font-size: 1.3rem; }
.empty p { color: var(--muted); }
.flat { width: min(100%, 420px); height: 50px; margin: 0 auto 14px; display: block; }
.flat path { fill: none; stroke: var(--magenta); stroke-width: 2; filter: drop-shadow(0 0 4px var(--magenta)); }

/* ---------- list ---------- */
.channel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 22px; overflow: hidden; }
.channel-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--magenta), transparent); }
.channel-info { flex: 1 1 420px; min-width: 0; }
.channel-head h1 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.channel-head h1 small { font-size: .8rem; color: var(--magenta); }
.notify-toggle { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin: 0; font-size: .8rem; color: var(--muted); }
.switch { width: 38px; height: 22px; padding: 2px; border-radius: 999px; background: var(--cyan); box-shadow: var(--glow); display: flex; justify-content: flex-end; }
.switch i { width: 18px; height: 18px; border-radius: 50%; background: #001018; }
.deco-phone { position: absolute; right: 3%; top: 14px; width: 92px; height: auto; transform: rotate(14deg); opacity: .55; pointer-events: none; }
.deco-phone * { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.deco-phone .fill { fill: var(--cyan); stroke: none; }
.deco-phone .key { stroke: var(--magenta); stroke-width: 4; }
.deco-phone .beat { stroke: var(--magenta); filter: drop-shadow(0 0 4px var(--magenta)); }
.channel-head .kpis { position: relative; z-index: 1; }
@media (min-width: 760px) { .channel-head { padding-right: 150px; } }
@media (max-width: 759px) { .deco-phone { width: 46px; top: 12px; right: 14px; opacity: .45; } .channel-head .kicker { padding-right: 60px; } .channel-head h1 { padding-right: 44px; } }
.channel-desc { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.channel-desc a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.kpis-sm { grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); grid-template-columns: none; }
@media (max-width: 640px) { .kpis-sm { width: 100%; } }

.stream { margin-top: 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 40px 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgb(34 228 255 / .035); }
.row-no { font-size: .9rem; color: var(--dim); }
.row:hover .row-no { color: var(--cyan); }
.row img { width: 150px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; border: 5px solid #16203a; box-shadow: 0 0 0 1px rgb(34 228 255 / .45); }
.row h3 { font-size: 1.08rem; }
.row .meta .type { margin-right: 6px; }
@media (max-width: 719px) {
  .row { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .row-no, .row > .dur { display: none; }
  .row img { width: 96px; }
  .row h3 { font-size: .98rem; }
  .row .sub { display: none; }
}

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; font-size: .85rem; color: var(--muted); }
.pager a { padding: 8px 16px; border: 1px solid var(--cyan); border-radius: 6px; color: var(--cyan); }
.pager a:hover { background: var(--cyan); color: #001018; }

/* ---------- article ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 10px var(--cyan); transform: scaleX(0); transform-origin: 0 50%; }
.read { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }
.post { min-width: 0; max-width: 760px; }
.post-head { padding-top: 8px; }
.post-head h1 { font-size: clamp(1.6rem, 4vw, 2.45rem); line-height: 1.28; }
.post-sub { margin: 12px 0 0; font-size: 1.12rem; color: var(--muted); }
.cat { font-size: .74rem; color: var(--dim); }
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline p { margin: 0; font-size: .9rem; line-height: 1.5; }
.byline a { font-weight: 600; color: var(--cyan); }
.byline time { font-size: .76rem; color: var(--dim); }
.avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 8px; font: 700 1.1rem var(--display); color: #001018; background: linear-gradient(135deg, var(--cyan), var(--magenta)); }
.post-cover { position: relative; margin: 22px 0; padding: 9px; border-radius: 30px; background: linear-gradient(145deg, #1a2540, #070b16 45%, #111a30); border: 1px solid rgb(34 228 255 / .4); box-shadow: 0 0 22px rgb(34 228 255 / .2); }
.post-cover img { width: 100%; border-radius: 22px; }
/* landscape phone: the island sits on the short edge */
.post-cover .island { position: absolute; z-index: 1; left: 20px; top: 50%; width: 24px; height: 88px; margin-top: -44px; }
.post-cover .island i { right: 7px; top: 9px; }
.post-cover .home-ind { bottom: 16px; width: 150px; margin-left: -75px; }
.post-cover::before { content: ""; position: absolute; top: -5px; left: 18%; width: 64px; height: 4px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
@media (max-width: 559px) { .post-cover { padding: 6px; border-radius: 22px; } .post-cover img { border-radius: 16px; } .post-cover .island { left: 12px; width: 15px; height: 52px; margin-top: -26px; } .post-cover .island i { width: 7px; height: 7px; top: 6px; right: 4px; } .post-cover .home-ind { bottom: 11px; width: 96px; height: 4px; margin-left: -48px; } }
.typing { display: inline-flex; gap: 4px; padding: 6px 9px; margin-right: auto; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: dots 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.post-foot > span:not(.typing) { align-self: center; }

.post-body { font-size: 1.08rem; line-height: 1.85; color: #d5deec; overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2 { margin: 1.8em 0 .6em; font-size: 1.45rem; color: var(--text); padding-left: 12px; border-left: 3px solid var(--cyan); }
.post-body h3 { margin: 1.5em 0 .5em; font-size: 1.2rem; color: var(--cyan); }
.post-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(34 228 255 / .4); }
.post-body a:hover { text-decoration-color: var(--cyan); }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-body li { margin: .3em 0; }
.post-body li::marker { color: var(--magenta); }
.post-body blockquote { margin: 1.5em 0; padding: 14px 18px; border-left: 3px solid var(--magenta); background: var(--mag-soft); border-radius: 0 8px 8px 0; color: var(--text); }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body img { border-radius: 8px; margin: 1.2em auto; }
.post-body figure { margin: 1.5em 0; }
.post-body figcaption { margin-top: 6px; font-size: .84rem; color: var(--dim); text-align: center; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; }
.post-body th, .post-body td { padding: 9px 12px; border: 1px solid var(--line-2); text-align: left; }
.post-body th { background: var(--panel-2); color: var(--cyan); font-family: var(--display); }
.post-body tr:nth-child(even) td { background: rgb(255 255 255 / .02); }
.post-body code { font-family: var(--mono); font-size: .88em; padding: 1px 5px; border-radius: 4px; background: var(--panel-2); color: var(--lime); }
.post-body hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }
.post-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .78rem; color: var(--dim); letter-spacing: .08em; }
.post-foot a { color: var(--magenta); }

.side { position: sticky; top: 16px; display: grid; gap: 14px; }
.stats { margin: 0; padding: 6px 16px; }
.stats::before { content: "SPEC SHEET"; display: block; padding: 10px 0 8px; font: 700 .7rem var(--mono); letter-spacing: .18em; color: var(--dim); border-bottom: 1px solid var(--line); }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.stat-row:last-child { border-bottom: 0; }
.stat-row dt { color: var(--dim); }
.stat-row dd { margin: 0; text-align: right; }
.stat-row b { font-size: 1.3rem; color: var(--cyan); }
.stat-row time { font-size: .8rem; color: var(--text); }
.stat-row a { color: var(--magenta); }
.batt-row { display: inline-flex; align-items: center; gap: 10px; }
.batt-lg { width: 40px; height: 18px; padding: 2px; color: var(--muted); border-radius: 5px; }
.batt-lg::after { top: 5px; height: 5px; right: -5px; width: 3px; }
.batt-lg i { transform: scaleX(0); background: linear-gradient(90deg, var(--magenta), var(--lime)); }
@media (max-width: 959px) {
  .read { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post { max-width: none; }
  .side { position: static; margin: 24px 0 0; }
  .side .ad-slot { display: none; }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 20px; }
  .stats::before { grid-column: 1 / -1; }
  .stat-row { border-bottom: 1px dashed var(--line); }
}

.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.related .meta { margin: 0 0 6px; }
.related .top { grid-column: auto; }

/* ---------- 404 ---------- */
.lost { padding: 36px 24px; text-align: center; }
.lost .flat { width: 100%; max-width: 600px; height: 60px; }
.nosig { width: 72px; height: 54px; margin: 0 auto 8px; display: block; }
.nosig rect { fill: var(--cyan); filter: drop-shadow(0 0 4px rgb(34 228 255 / .7)); }
.nosig .off { fill: var(--line-2); filter: none; }
.nosig .x { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-linecap: round; }
.lost h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.lost .channel-desc { margin: 10px auto 0; }

/* ---------- legal ---------- */
.legal-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.legal-toc { position: sticky; top: 16px; padding: 14px 16px; }
.legal-toc ol { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; border-top: 1px dashed var(--line); }
.legal-toc a { display: flex; gap: 10px; padding: 8px 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font: 700 .74rem var(--mono); color: var(--cyan); padding-top: 2px; }
.legal-toc a:hover { color: var(--text); }
.legal-body { padding: 28px clamp(18px, 4vw, 40px); font-size: 1.02rem; line-height: 1.85; color: #d5deec; max-width: 860px; overflow-wrap: anywhere; }
.legal-body .legal-updated { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 4px; font: 500 .8rem var(--mono); color: var(--magenta); background: var(--mag-soft); border: 1px solid rgb(255 43 214 / .3); }
.legal-body h2 { margin: 1.8em 0 .6em; font-size: 1.25rem; color: var(--text); padding-left: 12px; border-left: 3px solid var(--cyan); scroll-margin-top: 20px; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.legal-body li { margin: .35em 0; }
.legal-body li::marker { color: var(--cyan); }
.legal-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text); }
@media (max-width: 859px) { .legal-page { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; } }

/* ---------- ads ---------- */
.ad-slot { margin: 22px auto; max-width: 1240px; padding: 0 16px; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }
.wrap .ad-slot, .panel .ad-slot, .side .ad-slot { padding: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #04060b; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-brand p { margin: 12px 0 0; max-width: 42ch; }
.footer-brand .footer-sig { max-width: none; }
.footer-sig { font-size: .7rem; color: var(--dim); letter-spacing: .1em; }
.footer-title { margin: 0 0 12px; font: 700 .9rem var(--display); color: var(--cyan); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-latest li { display: grid; gap: 2px; line-height: 1.45; }
.footer-latest time { font-size: .72rem; color: var(--dim); }
.footer-col a:hover { color: var(--cyan); }
.footer-col .app-link { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); font-size: .82rem; }
.footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal-links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.to-top { font-size: .76rem; color: var(--cyan); }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.img-fallback { object-fit: contain !important; background: var(--panel-2); padding: 12%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-view { overflow-x: auto; mask-image: none; }
  .pulse-line { stroke-dasharray: none; }
}
