/* Line of Sight public pages + player (makanilab.dev/line-of-sight/). Tokens come from feedlib/ui.py BASE_CSS. */
body { padding-bottom: 120px; }
.sh { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sh-k { font-family: var(--fm); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cyan); }
.sh-rule { flex: 1; min-width: 40px; height: 1px; background: linear-gradient(90deg, rgba(94,224,242,.5), transparent); }
.sh-r { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.empty { color: var(--muted); padding: 18px 0; }
section + section, .epg { margin-top: 32px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--fm); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 16px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--cyan-btn); color: var(--ink-on-accent); font-weight: 700; }
.btn.primary:hover { background: #67e8f9; transform: translateY(-1px); }
:root[data-theme="light"] .btn.primary:hover { background: #0e7490; }
.btn.outline { border-color: var(--border-4); }
.btn.outline:hover { border-color: var(--cyan); background: rgba(94,224,242,.08); }
.btn.ghost { color: var(--nav); }
.btn.ghost:hover { color: var(--text); background: rgba(160,190,230,.08); }
.btn.big { padding: 14px 22px; font-size: 13px; }

/* show band */
.show { display: flex; gap: 28px; align-items: flex-start; }
.show-art { width: 220px; height: 220px; border-radius: 14px; flex-shrink: 0; box-shadow: 0 10px 40px rgba(0,0,0,.35); display: block; }
.show-tx { min-width: 0; }
.show-s { font-family: var(--fd); font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; line-height: 1.1; color: var(--text); }
.show-d { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-3); max-width: 720px; text-wrap: pretty; }
.subs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sub { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); border: 1px solid var(--border-4); border-radius: 999px; padding: 8px 14px 8px 10px; background: none; cursor: pointer; text-decoration: none; }
.sub svg { width: 18px; height: 18px; color: var(--cyan); }
.sub:hover { border-color: var(--cyan); background: rgba(94,224,242,.08); }
.sub.ghost { border-color: transparent; color: var(--nav); }
.ai-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 720px; }
.ai-note a { text-decoration: underline; text-underline-offset: 3px; }

/* featured / episode hero */
.feat { display: flex; flex-wrap: wrap; border: 1px solid rgba(94,224,242,.3); border-radius: 12px; background: linear-gradient(135deg, rgba(24,39,65,.96), rgba(37,32,63,.8)); overflow: hidden; }
:root[data-theme="light"] .feat { background: var(--surface); border-color: var(--border); }
.feat-l { flex: 1 1 520px; min-width: 0; padding: 28px 32px; }
.feat-r { flex: 1 1 320px; min-width: 0; max-width: 100%; padding: 22px 20px; border-left: 1px solid rgba(160,190,230,.14); background: rgba(10,18,34,.35); }
:root[data-theme="light"] .feat-r { background: var(--surface-2); border-left-color: var(--border); }
.feat-r:empty { display: none; }
.feat-k { display: flex; align-items: center; gap: 12px; font-family: var(--fm); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.feat-k .rule { width: 28px; height: 1px; background: var(--cyan); flex-shrink: 0; }
.feat-t { font-family: var(--fd); font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: .02em; margin-top: 14px; color: var(--text); text-wrap: balance; }
.feat-t a { color: inherit; }
.feat-t a:hover { color: var(--cyan); }
.feat-b { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 760px; text-wrap: pretty; }
.feat-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* chapters */
.chaps { list-style: none; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
.chap { display: grid; grid-template-columns: 52px auto 1fr; align-items: baseline; gap: 4px 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text-2); font: inherit; font-size: 14px; line-height: 1.4; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.chap:hover { background: rgba(160,190,230,.08); color: var(--text); }
.chap.on { background: rgba(94,224,242,.12); color: var(--text); }
.ct { font-family: var(--fm); font-size: 12px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.cp { font-family: var(--fm); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-3); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.chap .cp:empty { display: none; }
.cp.p-posture, .sg-h.p-posture { color: var(--cyan); }
.cp.p-presence, .sg-h.p-presence { color: var(--violet); }
.cp.p-partnership, .sg-h.p-partnership { color: var(--amber); }
.cn { grid-column: 3; min-width: 0; }
.chap .cp + .cn { grid-column: 3; }
.chap:not(:has(.cp)) .cn { grid-column: 2 / 4; }

/* search */
.srch-box { position: relative; }
.srch-box input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-3); border-radius: 10px; padding: 13px 110px 13px 16px; }
.srch-box input:focus { outline: none; border-color: var(--cyan); }
.srch-n { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--fm); font-size: 11px; color: var(--muted); }
.hits { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.hits li a { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.hits li a:hover { background: rgba(160,190,230,.08); color: var(--text); }
.hits .hd { font-family: var(--fm); font-size: 12px; color: var(--cyan); white-space: nowrap; }
.hits mark { background: rgba(245,179,66,.28); color: inherit; border-radius: 2px; padding: 0 1px; }
.hits .more { font-family: var(--fm); font-size: 12px; color: var(--muted); padding: 8px 12px; }

/* episode list */
.eps { display: flex; flex-direction: column; border: 1px solid rgba(160,190,230,.16); border-radius: 12px; overflow: hidden; background: rgba(24,39,65,.8); }
:root[data-theme="light"] .eps { background: var(--surface); border-color: var(--border); }
.ep { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-2); }
.ep:last-child { border-bottom: 0; }
.ep:hover { background: var(--hover); }
.ep.cur { box-shadow: inset 3px 0 0 var(--cyan); }
.ep-play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(94,224,242,.5); background: rgba(94,224,242,.08); color: var(--cyan); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ep-play svg { width: 20px; height: 20px; }
.ep-play:hover { background: var(--cyan-btn); color: var(--ink-on-accent); }
.ep-m { min-width: 0; flex: 1; }
.ep-d { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ep-d .new { color: var(--cyan); }
.ep-st:empty { display: none; }
.ep-st { color: var(--online); }
.ep-t { font-family: var(--fd); font-size: 20px; font-weight: 600; line-height: 1.2; margin-top: 4px; letter-spacing: .01em; }
.ep-t a { color: var(--text); }
.ep-t a:hover { color: var(--cyan); }
.ep-bar { height: 3px; border-radius: 2px; background: var(--surface-3); margin-top: 10px; overflow: hidden; max-width: 520px; }
.ep-bar i { display: block; height: 100%; width: 0; background: var(--cyan); }

/* episode page */
.epnav { display: flex; justify-content: space-between; gap: 12px; font-family: var(--fm); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.epnav a { color: var(--nav); }
.epnav a:hover { color: var(--cyan); }
.epg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.follow { display: inline-flex; gap: 6px; align-items: center; font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tr-box { max-height: 620px; overflow: auto; border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; background: var(--surface-2); scroll-behavior: smooth; }
.cue { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; font-size: 15.5px; line-height: 1.6; color: var(--text-3); padding: 4px 10px 4px 64px; border-radius: 6px; cursor: pointer; position: relative; }
.cue:hover { background: rgba(160,190,230,.08); color: var(--text); }
.cue.on { background: rgba(94,224,242,.12); color: var(--text); }
.cue .ts { position: absolute; left: 10px; top: 7px; font-family: var(--fm); font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cue.on .ts { color: var(--cyan); }
.tr-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.side .sh + * { margin-bottom: 28px; }
.sg + .sg { margin-top: 14px; }
.sg-h { font-family: var(--fm); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.sg ul, ul.wl { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sg li, ul.wl li { font-size: 14px; line-height: 1.5; color: var(--text-2); padding-left: 14px; position: relative; }
.sg li::before, ul.wl li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--border-4); }

/* sticky player */
.lp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(15,24,41,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(94,224,242,.35); box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
:root[data-theme="light"] .lp { background: rgba(255,255,255,.96); border-top-color: var(--border-3); box-shadow: 0 -6px 24px rgba(15,23,42,.10); }
.lp[hidden] { display: none; }
.lp-in { max-width: 1280px; margin: 0 auto; padding: 12px clamp(16px, 3vw, 40px); display: grid; grid-template-columns: auto minmax(160px, 1.1fr) auto minmax(220px, 2fr) auto; align-items: center; gap: 12px 18px; }
.lp-art { width: 52px; height: 52px; border-radius: 8px; display: block; }
.lp-id { min-width: 0; }
.lp-k { font-family: var(--fm); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.lp-t { display: block; font-family: var(--fd); font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-t:hover { color: var(--cyan); }
.lp-ch { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1em; }
.lp-c { display: flex; align-items: center; gap: 6px; }
.lp-b { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lp-b:hover { background: rgba(160,190,230,.12); }
.lp-b svg { width: 22px; height: 22px; }
.lp-b span { position: absolute; bottom: 1px; font-family: var(--fm); font-size: 9px; color: var(--muted); }
.lp-pp { width: 50px; height: 50px; background: var(--cyan-btn); color: var(--ink-on-accent); }
.lp-pp:hover { background: #67e8f9; }
.lp-pp .i-pause, .lp.playing .lp-pp .i-play { display: none; }
.lp.playing .lp-pp .i-pause { display: block; }
.lp-s { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-tm { font-family: var(--fm); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
.lp-track { position: relative; flex: 1; height: 24px; display: flex; align-items: center; }
.lp-ticks { position: absolute; left: 0; right: 0; top: 50%; height: 0; pointer-events: none; }
.lp-ticks i { position: absolute; top: -6px; width: 2px; height: 12px; background: var(--border-4); border-radius: 1px; }
#lp-seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan) var(--p, 0%), var(--surface-3) var(--p, 0%)); cursor: pointer; position: relative; }
#lp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 2px solid var(--cyan); }
#lp-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 2px solid var(--cyan); }
.lp-x { display: flex; gap: 6px; }
.lp-pill { font-family: var(--fm); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nav); border: 1px solid var(--border-3); border-radius: 999px; background: none; padding: 7px 11px; cursor: pointer; white-space: nowrap; min-width: 44px; }
.lp-pill:hover { color: var(--text); border-color: var(--cyan); }
.lp-pill[aria-pressed="true"] { color: var(--ink-on-accent); background: var(--cyan-btn); border-color: var(--cyan-btn); }
.toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(10px); z-index: 50; font-family: var(--fm); font-size: 12px; letter-spacing: .06em; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.totop { bottom: 104px !important; }

@media (max-width: 1000px) {
  .lp-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lp-s { grid-column: 1 / -1; order: 4; }
  .lp-x { grid-column: 1 / -1; order: 5; justify-content: center; }
  .epg { grid-template-columns: 1fr; }
  body { padding-bottom: 190px; }
  .totop { bottom: 180px !important; }
  .toast { bottom: 190px; }
}
@media (max-width: 700px) {
  .show { gap: 16px; }
  .show-art { width: 112px; height: 112px; border-radius: 10px; }
  .show-d { font-size: 14.5px; }
  .feat-l { padding: 22px 20px; }
  .feat-r { border-left: 0; border-top: 1px solid rgba(160,190,230,.14); padding: 14px 10px; }
  .ep { padding: 14px 16px; gap: 12px; }
  .ep-t { font-size: 17px; }
  .hits li a { grid-template-columns: 1fr; }
  .lp-in { padding: 10px 16px; gap: 8px 10px; }
  .lp-art { width: 40px; height: 40px; }
  .lp-c { gap: 2px; }
  .lp-x .lp-pill { padding: 6px 10px; }
  .tr-box { max-height: 460px; }
  .cue { padding-left: 56px; font-size: 15px; }
}
@media (max-width: 420px) { .lp-art { display: none; } .lp-in { grid-template-columns: minmax(0, 1fr) auto; } }
