/* NextGen TV apps: shared look. Sizes follow the screen so a TV (960x540 page) and a phone both read well. */
@font-face { font-family: Outfit; src: url(Outfit.woff2); font-weight: 300 900; }
:root {
  --bg: #14182B; --bg2: #1B2140; --card: #232A4D; --card2: #2C3460; --line: #3A4370;
  --text: #F5F1E8; --muted: #A9B1D1; --accent: #FF8A3D; --accent2: #4FC3B5; --good: #5BD08A; --warn: #F2C94C; --bad: #FF6B7A;
  --focus: #FFD166; --r: 0.9rem;
}
* { box-sizing: border-box; }
html { font-size: clamp(14px, min(3.3vh, 1.9vw), 40px); }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: Outfit, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; overflow: hidden; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.f { cursor: pointer; outline: none; transition: transform .12s, box-shadow .12s, background .12s; }
.f.focus { box-shadow: 0 0 0 0.22rem var(--focus), 0 0.4rem 1.4rem rgba(0,0,0,.45); transform: scale(1.04); position: relative; z-index: 2; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 99rem;
  background: var(--card2); color: var(--text); padding: .6rem 1.3rem; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #23140A; }
.btn.small { padding: .4rem .9rem; font-size: .85rem; }
.card { background: var(--card); border-radius: var(--r); padding: 1rem; }
.muted { color: var(--muted); }
.row { display: flex; gap: .8rem; align-items: center; }
.col { display: flex; flex-direction: column; gap: .8rem; }
.grow { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 6vh; transform: translateX(-50%); background: rgba(10,12,24,.92); color: var(--text);
  padding: .7rem 1.4rem; border-radius: 99rem; font-size: 1rem; z-index: 100; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.qr { background: #fff; border-radius: .6rem; padding: .4rem; display: inline-block; line-height: 0; }
.qr svg { display: block; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.6rem .4rem; }
.topbar h1 { font-size: 1.6rem; font-weight: 700; }
.clock { font-variant-numeric: tabular-nums; }
.scroll { overflow-y: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.overlay { position: fixed; inset: 0; background: rgba(8,10,20,.82); display: flex; align-items: center; justify-content: center; z-index: 50; }
.overlay[hidden] { display: none; }
.menu { background: var(--bg2); border-radius: 1.2rem; padding: 1.4rem; min-width: 22rem; max-width: 90vw; max-height: 90vh; }
.menu h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 0; border-radius: 99rem; background: var(--card); padding: .45rem 1rem; font-size: .95rem; color: var(--text); }
.chip.on { background: var(--accent2); color: #08201C; font-weight: 700; }
.spon { display: flex; align-items: center; gap: .6rem; height: 3.3rem; padding: .25rem .35rem .25rem .8rem; border-radius: .8rem;
  background: rgba(255,255,255,.07); max-width: 100%; overflow: hidden; animation: sponIn .6s ease; }
.spon .sby { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.spon .sby small { font-size: .5rem; letter-spacing: .08rem; color: var(--muted); white-space: nowrap; }
.spon .sby b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; }
.spon .sban { height: 2.8rem; width: auto; max-width: 22.4rem; border-radius: .4rem; background: #fff; object-fit: contain; }
.spon .spic { height: 2.8rem; width: 4.98rem; border-radius: .4rem; object-fit: cover; background: #000; }
.spon .sline { font-size: .72rem; color: var(--muted); max-width: 11rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spon .qr { padding: .14rem; border-radius: .35rem; }
.spon .qr svg { width: 2.5rem; height: 2.5rem; }
.spon .scan { font-size: .55rem; color: var(--muted); width: 3.4rem; line-height: 1.2; }
@keyframes sponIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-aspect-ratio: 1/1) { .spon { width: 100%; } .spon .sban { min-width: 0; flex: 1; } .spon .scan { display: none; } }
