/* NRF Stream Player Web - guia de programacao (estilo operadora de TV) */
.guide { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background: #0b1218; color: #eef3f8; }
html.guide-open .toast { z-index: 1000; }

/* destaque do programa selecionado */
.g-hero { display: flex; gap: 18px; padding: 14px 18px; border-radius: 14px; border: 1px solid #1f3142;
  background: linear-gradient(90deg, #10202e, #0b1218); min-height: 150px; }
.g-logo { flex: 0 0 150px; height: 104px; border-radius: 12px; background: #142330; display: flex;
  align-items: center; justify-content: center; overflow: hidden; color: #9db0c2; font-size: 28px; }
.g-logo img { max-width: 130px; max-height: 88px; object-fit: contain; }
.g-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.g-over { color: #2ea8ff; font-size: 12px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-title { font-size: 24px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-meta { color: #a9bbcc; font-size: 13px; }
.g-prog { width: 320px; max-width: 100%; height: 4px; border-radius: 2px; background: #22384b; overflow: hidden; }
.g-prog i { display: block; height: 100%; background: #2ea8ff; }
.g-desc { color: #d3dde6; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-btns { display: flex; gap: 8px; margin-top: 4px; }
.g-btns .btn { min-height: 34px; border-radius: 17px; padding: 0 18px; }
.g-btns .btn:disabled { opacity: .45; cursor: default; }

/* filtros */
.g-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-bar .chip { min-height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid #2a4256; background: #142230;
  color: #cfe0ee; font-weight: 700; cursor: pointer; }
.g-bar .chip.on { background: #eef3f8; color: #0b1218; border-color: #eef3f8; }
.g-bar select, .g-bar input, .g-cfg input { min-height: 34px; border-radius: 10px; border: 1px solid #2a4256;
  background: #0f1923; color: #eef3f8; padding: 0 10px; }
.g-bar #gSearch { flex: 1; min-width: 160px; }
.g-bar #gGroup { max-width: 220px; }
.g-bar .btn { min-height: 34px; border-radius: 17px; }
.g-cfg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #a9bbcc; }
.g-cfg input { flex: 1; min-width: 240px; }

/* grade */
.g-grid { position: relative; flex: 1; min-height: 200px; border-radius: 12px; overflow: hidden; background: #0b1218;
  border: 1px solid #172633; --chw: 240px; --headh: 44px; }
.g-corner { position: absolute; left: 0; top: 0; width: var(--chw); height: var(--headh); background: #0a1016;
  display: flex; align-items: center; padding-left: 14px; font-weight: 800; font-size: 13px;
  border-bottom: 1px solid #24384a; border-right: 1px solid #24384a; z-index: 3; }
.g-head { position: absolute; left: var(--chw); right: 0; top: 0; height: var(--headh); overflow: hidden;
  background: #0a1016; border-bottom: 1px solid #24384a; z-index: 2; }
.g-head-in { position: relative; height: 100%; will-change: transform; }
.g-tick { position: absolute; top: 0; height: 100%; padding: 6px 0 0 8px; font-weight: 800; font-size: 13px;
  border-left: 1px solid #3a5266; white-space: nowrap; color: #dfe8f0; }
.g-nowpill { position: absolute; bottom: 3px; transform: translateX(-50%); background: #e53935; color: #fff;
  font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 9px; white-space: nowrap; }
.g-chans { position: absolute; left: 0; top: var(--headh); bottom: 0; width: var(--chw); overflow: hidden;
  background: #121d27; border-right: 1px solid #24384a; z-index: 2; }
.g-chans-in { position: relative; will-change: transform; }
.g-ch { position: absolute; left: 0; right: 0; height: 64px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; border-bottom: 1px solid #1f2e3b; cursor: pointer; }
.g-ch.on { background: #173049; box-shadow: inset 3px 0 0 #2ea8ff; }
.g-ch .n { flex: 0 0 30px; text-align: right; color: #9db0c2; font-weight: 800; font-size: 12px; }
.g-ch .lg { flex: 0 0 58px; height: 44px; border-radius: 6px; background: #1e2e3c; display: flex;
  align-items: center; justify-content: center; overflow: hidden; color: #9db0c2; font-size: 13px; }
.g-ch .lg img { max-width: 56px; max-height: 42px; object-fit: contain; }
.g-ch .tx { min-width: 0; display: flex; flex-direction: column; }
.g-ch .tx b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ch .tx small { color: #9db0c2; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-body { position: absolute; left: var(--chw); right: 0; top: var(--headh); bottom: 0; overflow: auto;
  -webkit-overflow-scrolling: touch; outline: none; overscroll-behavior: contain; }
.g-canvas { position: relative;
  background-image: repeating-linear-gradient(90deg, transparent 0 149px, #1a2834 149px 150px),
    repeating-linear-gradient(180deg, #0f1820 0 64px, #111c25 64px 128px); }
.g-tile { position: absolute; height: 56px; margin-top: 4px; padding: 7px 10px 0; border-radius: 6px;
  background: #1a2733; border: 2px solid transparent; overflow: hidden; cursor: pointer; box-sizing: border-box;
  box-shadow: inset -2px 0 0 #0b1218; }
.g-tile:hover { background: #223444; }
.g-tile .tt { font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-tile .ts { color: #9db0c2; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.g-tile.live { background: #1d3b57; }
.g-tile.live:hover { background: #24486a; }
.g-tile.past { background: #131c25; }
.g-tile.past .tt, .g-tile.past .ts { color: #6f8193; }
.g-tile.sel { background: #2c6a9e; border-color: #fff; }
.g-tile.sel .tt { color: #fff; } .g-tile.sel .ts { color: #d6e6f3; }
.g-tile .pg { position: absolute; left: 8px; bottom: 5px; height: 3px; background: #2ea8ff; border-radius: 2px; max-width: calc(100% - 16px); }
.g-nowline { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(229, 57, 53, .85); z-index: 1; pointer-events: none; }
.g-layer { position: absolute; inset: 0; }
.g-msg { position: absolute; inset: var(--headh) 0 0 0; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #a9bbcc; font-size: 15px; background: #0b1218; z-index: 4; padding: 20px; }
.g-msg small { color: #6f8193; }
.g-foot { display: flex; justify-content: space-between; gap: 12px; color: #6f8193; font-size: 12px; }
.g-foot .g-hint { text-align: right; }

/* telas estreitas (iPad em pe, celular) */
@media (max-width: 1400px) {
  .g-bar #gGroup { max-width: 150px; }
  .g-bar #gSearch { min-width: 80px; }
  .g-bar { gap: 6px; }
  .g-bar .chip, .g-bar .btn { padding: 0 11px; }
}
@media (max-width: 820px) {
  .g-hero { min-height: 0; padding: 10px 12px; gap: 12px; }
  .g-logo { flex-basis: 84px; height: 64px; }
  .g-logo img { max-width: 76px; max-height: 56px; }
  .g-title { font-size: 19px; }
  .g-desc { -webkit-line-clamp: 1; }
  .g-bar #gGroup { max-width: 150px; }
  .g-ch .lg { display: none; }
  .g-foot .g-hint { display: none; }
}
@media (max-height: 620px) { .g-desc, .g-prog { display: none; } .g-hero { min-height: 0; } }

/* link de download na tela de login */
.auth-dl { display: block; margin-top: 14px; color: #7de7ff; font-size: 13px; text-decoration: none; text-align: center; }
.auth-dl:hover { text-decoration: underline; }
.list-row .t2.link { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 11px; opacity: .85; }

/* avisos de inicio de programa */
.g-rem { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: #a9bbcc; font-size: 13px; }
.g-rem .chip { min-height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #2a4256; background: #142230; color: #cfe0ee; font-weight: 700; cursor: pointer; }
.g-rem .chip:hover { background: #1d3b57; }
.g-remi { display: inline-flex; align-items: center; gap: 6px; margin: 4px 10px 0 0; padding: 4px 4px 4px 10px; border-radius: 10px; background: #142230; color: #eef3f8; }
.g-remi small { color: #9db0c2; }
.g-remi .btn { min-height: 26px; padding: 0 9px; border-radius: 13px; }
.rem-bar { position: fixed; z-index: 2147483000; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; width: min(560px, calc(100vw - 32px)); }
.rem-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #10202e;
  border: 1px solid #2ea8ff; color: #eef3f8; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
.rem-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rem-tx b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-tx small { color: #a9bbcc; }
.rem-item .btn { min-height: 34px; border-radius: 17px; }
