/*
 * Innova Player (web TV) - showcase home styles (reforma
 * 2026-12-02). Innova Player identity: deep green-black surfaces,
 * brand green #35d461 / #1f9d4d accents — the same tokens as
 * css/app.css. Layout is fluid (the web package lays out at
 * device width; the TV packages use the fixed 1920 canvas).
 * Original code, INNOVATVPLUS LLC.
 */

/* Full-bleed showcase home (owner orders, 2026-12-02): while
 * home.js marks #scr-home as .hs-fullbleed (showcase only; the
 * classic launcher keeps the normal screen frame), the screen
 * padding goes away entirely so the scroll root and the top
 * bar reach every viewport edge and the vertical scrollbar
 * sits on the screen's right edge. The reasonable insets move
 * inside: the top bar, hero, main column and footer carry the
 * horizontal margins themselves. */
#scr-home.hs-fullbleed { overflow: hidden; padding: 0; }
.hs {
  display: flex; flex-direction: column; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: #1f9d4d #10160f;
}
.hs::-webkit-scrollbar { width: 10px; }
.hs::-webkit-scrollbar-thumb { background: #1f9d4d; border-radius: 6px; }
.hs::-webkit-scrollbar-track { background: #10160f; }

@keyframes hs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hs-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 212, 97, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(53, 212, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 212, 97, 0); }
}

/* ---------------- top bar ---------------- */
/* Slim black bar: no green rule underneath (owner order,
 * 2026-12-02). It tucks away on scroll down and returns on
 * scroll up. The logo grows a little over the first slim cut
 * while the bar's padding shrinks, so the bar stays slim, and
 * the search box gives a little of its size back in proportion. */
.hs-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 3px 5vw 5px;
  background: #000;
  border-bottom: 1px solid #000;
  transition: transform 0.28s ease;
}
.hs-top.hs-top-hidden { transform: translateY(-100%); }
.hs-brand img { height: 50px; width: auto; display: block; }
.hs-searchwrap { flex: 0 1 470px; }
.hs-search {
  width: 100%; padding: 7px 18px; border-radius: 999px;
  border: 2px solid #33463a; background: #121a15; color: #f2f5f2;
  font-size: 19px;
}
.hs-search::placeholder { color: #9fb8a6; }
.hs-nav { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.hs-pill {
  padding: 8px 16px; border-radius: 999px; font-size: 19px; white-space: nowrap;
  background: #1c2620; border: 2px solid #33463a; color: #f2f5f2;
}
.hs-clockbox { text-align: right; flex: none; }
.hs-clock { font-size: 24px; font-weight: 700; line-height: 1.1; }
.hs-date { font-size: 14px; color: #9fb8a6; }

/* ---------------- hero ---------------- */
.hs-hero {
  position: relative; flex: none; height: 47vh; min-height: 330px;
  margin: 2.5vh 5vw 0;
  border-radius: 20px; overflow: hidden;
  /* Branded backdrop (perf pass, 2026-12-03): while the hero
   * image is still on its way the box reads as a designed
   * green stage, never a black void. */
  background: radial-gradient(120% 130% at 18% 0%, #1d3a28 0%, #12241a 46%, #0e1511 100%);
  border: 2px solid #26362c;
}
.hs-hero-blur {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(42px) brightness(0.45); transform: scale(1.25);
}
.hs-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  opacity: 0; transition: opacity 1.1s ease;
}
.hs-hero-img.is-poster {
  left: auto; right: 0; width: 44%; object-fit: cover; object-position: center 18%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.hs-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 6, 0.92) 30%, rgba(5, 9, 6, 0.35) 62%, rgba(5, 9, 6, 0.05)),
    linear-gradient(0deg, rgba(5, 9, 6, 0.88), rgba(5, 9, 6, 0) 46%);
}
.hs-hero-content { position: absolute; left: 46px; bottom: 40px; max-width: 56%; z-index: 2; }
.hs-hero-eyebrow {
  color: #35d461; font-size: 20px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px;
}
.hs-hero-title { font-size: 54px; font-weight: 800; line-height: 1.08; margin-bottom: 12px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6); }
.hs-hero-meta { font-size: 23px; color: #d8e4da; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.hs-hero-plot {
  font-size: 21px; line-height: 1.45; color: #cfe3d3; margin-bottom: 22px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hs-btn-play {
  padding: 15px 38px; border-radius: 12px; font-size: 25px; font-weight: 700;
  background: #1f9d4d; border: 2px solid #35d461; color: #fff;
}
.hs-btn {
  padding: 13px 26px; border-radius: 12px; font-size: 22px;
  background: rgba(28, 38, 32, 0.88); border: 2px solid #33463a; color: #f2f5f2;
}
/* Favorite state on the icon-only heart buttons (owner order
 * 2026-12-03 13:21 EST): filled heart, warm red. */
.hs-btn.is-fav { color: #ff5c7a; border-color: #ff5c7a; }
.hs-hero-dots { position: absolute; right: 38px; bottom: 34px; display: flex; gap: 8px; z-index: 2; }
.hs-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); transition: all 0.4s; }
.hs-dot.on { width: 28px; background: #35d461; }

/* ---------------- stars ---------------- */
.hs-stars { position: relative; display: inline-block; font-size: 19px; line-height: 1; letter-spacing: 2px; }
.hs-stars-bg { color: #54655a; }
.hs-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #35d461; white-space: nowrap; }
.hs-rating-num { color: #f2f5f2; font-weight: 700; margin-left: 2px; }
.hs-card-meta .hs-stars { font-size: 14px; }
.hs-card-meta .hs-rating-num { font-weight: 600; }

/* ---------------- shelves ---------------- */
.hs-main { flex: none; padding: 0 5vw; }
.hs-row { margin-top: 36px; animation: hs-rise 0.5s ease both; }
.hs-row-title { font-size: 30px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 12px; }
.hs-rail {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden;
  padding: 14px 6px 18px; scrollbar-width: none;
  scroll-behavior: smooth;
}
.hs-rail::-webkit-scrollbar { display: none; }
/* Web pointer navigation for the shelves (owner order,
 * 2026-12-02): home.js wraps each rail and adds these arrows
 * only on the web output. They fade in while the pointer is
 * over the row; the TV/keyboard focus flow never sees them. */
.hs-railwrap { position: relative; }
.hs-rail-arrow {
  position: absolute; top: 50%; z-index: 6;
  width: 52px; height: 64px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  border-radius: 999px; border: 2px solid rgba(53, 212, 97, 0.75);
  background: rgba(11, 15, 12, 0.84); color: #fff;
  font-size: 50px; line-height: 1; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.hs-rail-prev { left: 10px; }
.hs-rail-next { right: 10px; }
.hs-railwrap:hover .hs-rail-arrow:not(:disabled),
.hs-railwrap:focus-within .hs-rail-arrow:not(:disabled) {
  opacity: 1; pointer-events: auto;
}
.hs-rail-arrow:hover { background: rgba(31, 157, 77, 0.92); }
.hs-rail-arrow:disabled { opacity: 0; pointer-events: none; }
.hs-card {
  flex: none; width: 178px; padding: 0; text-align: left;
  background: #141d17; border: 2px solid #26362c; border-radius: 14px;
  overflow: hidden; transition: transform 0.18s ease;
}
.hs-card:hover, .hs-card.focused { transform: scale(1.07); z-index: 2; position: relative; }
.hs-card-img { display: block; height: 261px; background: #0e1511; position: relative; }
.hs-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-card-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 800; color: #35d461;
}
.hs-card-body { display: block; padding: 10px 12px 12px; }
.hs-card-title {
  display: block; font-size: 20px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-card-meta { display: block; font-size: 16px; color: #9fb8a6; margin-top: 4px; min-height: 20px; }
.hs-card-left { display: block; font-size: 15px; color: #35d461; margin-top: 3px; }
.hs-card-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #9fb8a6; font-size: 20px; min-height: 200px;
}
.hs-more-arrow { font-size: 46px; color: #35d461; line-height: 1; }

/* ---------------- live TV (star section) ---------------- */
.hs-live {
  margin-top: 42px; padding: 26px 30px 30px; border-radius: 20px;
  border: 2px solid #2c4636;
  background: linear-gradient(160deg, rgba(31, 157, 77, 0.16), rgba(16, 24, 19, 0.85) 55%);
  animation: hs-rise 0.5s ease both;
}
.hs-live-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.hs-live-title { font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.hs-live-dot {
  width: 15px; height: 15px; border-radius: 50%; background: #35d461; flex: none;
  animation: hs-pulse 2s infinite;
}
.hs-live-count { color: #9fb8a6; font-size: 21px; }
.hs-guide-btn { margin-left: auto; }
.hs-live-body { display: flex; gap: 30px; align-items: stretch; }
.hs-live-left { width: 45%; flex: none; min-width: 0; }
.hs-live-right { flex: 1; min-width: 0; position: relative; }

.hs-vwrap {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  border: 2px solid #26362c;
}
.hs-vwrap video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: none; background: #000;
}
.hs-vempty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #16241b, #070a08);
}
.hs-vempty img { max-width: 46%; max-height: 72%; object-fit: contain; }
.hs-vwrap.has-video .hs-vempty { display: none; }
.hs-live-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #1f9d4d; color: #fff; font-size: 17px; font-weight: 700;
  padding: 4px 13px; border-radius: 999px; letter-spacing: 1px;
}
/* Owner order, 2026-12-02: no LIVE badge over the expanded
 * picture — it hides in native fullscreen and in the CSS
 * expansion fallback alike; the small preview keeps it. */
.hs-vwrap:fullscreen .hs-live-badge,
.hs-vwrap-expanded .hs-live-badge { display: none; }
/* AVPlay (Tizen): the video plane sits under the app plane, so
 * every surface over the pane rect must go transparent while a
 * preview is tuned — same pattern as browse-pane.css .pv-av. */
#scr-home.hs-av .hs-live { background: transparent; }
#scr-home.hs-av .hs-vwrap { background: transparent; border-color: transparent; }
#scr-home.hs-av .hs-vempty { display: none; }

.hs-pinfo { margin-top: 16px; }
.hs-pname { font-size: 28px; font-weight: 700; }
.hs-pnow { font-size: 22px; color: #e6f2e8; margin-top: 6px; }
.hs-ptime { color: #9fb8a6; font-size: 19px; }
.hs-live-tag {
  background: #1f9d4d; color: #fff; font-size: 15px; font-weight: 700;
  padding: 2px 9px; border-radius: 6px; letter-spacing: 0.5px; white-space: nowrap;
}
.hs-pbar { height: 8px; background: #26362c; border-radius: 5px; margin-top: 10px; overflow: hidden; }
#hs-pbar-fill { height: 100%; width: 0; background: #35d461; border-radius: 5px; transition: width 0.6s; }
.hs-pnext { font-size: 20px; color: #9fb8a6; margin-top: 8px; min-height: 24px; }
.hs-pactions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.hs-pactions .hs-btn { padding: 10px 20px; font-size: 20px; }

/* EPG strip */
.hs-epg {
  margin-top: 18px; background: rgba(9, 13, 10, 0.6);
  border: 2px solid #26362c; border-radius: 12px; padding: 14px 18px;
}
.hs-epg-head { font-size: 20px; font-weight: 700; color: #35d461; margin-bottom: 8px; }
.hs-epg-row { display: flex; align-items: center; gap: 16px; padding: 7px 10px; border-radius: 8px; }
.hs-epg-row.is-now { background: rgba(53, 212, 97, 0.13); }
.hs-epg-time { flex: none; width: 185px; color: #9fb8a6; font-size: 18px; }
.hs-epg-ttl { flex: 1; font-size: 20px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-epg-prog { flex: none; width: 110px; height: 6px; background: #26362c; border-radius: 4px; overflow: hidden; }
.hs-epg-prog i { display: block; height: 100%; background: #35d461; }
.hs-epg-none { color: #9fb8a6; font-size: 19px; padding: 6px 2px; }

/* Seamless preview expansion (owner order, 2026-12-02): the
 * same video element grows — native fullscreen on the wrapper,
 * or the fixed-position fallback class — and shrinks back. */
.hs-vwrap:fullscreen {
  width: 100%; height: 100%; aspect-ratio: auto;
  border: none; border-radius: 0; background: #000;
}
.hs-vwrap:fullscreen video { object-fit: contain; }
.hs-vwrap-expanded {
  position: fixed !important; inset: 0; z-index: 200;
  width: auto; height: auto; aspect-ratio: auto;
  border: none; border-radius: 0; background: #000;
}
.hs-vwrap-expanded video { object-fit: contain; }

/* Expanded-preview controls (owner report, 2026-12-02): the
 * overlay lives INSIDE the wrapper, so native fullscreen (and
 * the fixed-position fallback) renders it over the picture —
 * the preview's own action buttons sit outside the wrapper
 * and never make it into fullscreen. Displayed only while the
 * wrapper is expanded AND the overlay carries .on: home.js
 * raises it on mouse movement / touch and fades it on a
 * timer, mirroring the fullscreen player's OSD behavior. */
.hs-vctl {
  position: absolute; inset: 0; z-index: 3; display: none;
  pointer-events: none;
}
.hs-vwrap:fullscreen .hs-vctl.on,
.hs-vwrap-expanded .hs-vctl.on { display: block; }
.hs-vctl button { pointer-events: auto; cursor: pointer; }
.hs-vctl-back {
  position: absolute; top: 20px; left: 20px;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(7, 10, 8, 0.72); border: 2px solid #33463a;
  display: flex; align-items: center; justify-content: center;
}
.hs-vctl-back.focused { border-color: #35d461; }
.hs-vctl-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 20px 22px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.66));
}
.hs-vctl-bar .hs-btn { padding: 10px 20px; font-size: 20px; }

/* Guide reminders (owner order, 2026-12-02): future rows are
 * buttons; a set reminder shows a bell. */
button.hs-epg-row {
  width: 100%; text-align: left; color: inherit; font: inherit;
  background: none; cursor: pointer;
}
button.hs-epg-row:hover { background: rgba(53, 212, 97, 0.08); }
.hs-epg-bell { flex: none; font-size: 18px; }
.hs-dialog {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.62);
}
.hs-dialog-card {
  min-width: 420px; max-width: 86vw; padding: 28px 32px;
  background: #10160f; border: 2px solid #1f9d4d; border-radius: 16px;
}
.hs-dialog-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.hs-dialog-sub { font-size: 21px; color: #9fb8a6; margin-bottom: 22px; }
.hs-dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hs-remind-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 300;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 86vw; padding: 16px 20px;
  background: #10160f; border: 2px solid #35d461; border-radius: 14px;
  font-size: 21px;
}

/* categories + channel list */
.hs-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hs-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 20px; white-space: nowrap;
  background: #1c2620; border: 2px solid #33463a; color: #f2f5f2;
}
.hs-chip.chip-on { background: #1f9d4d; border-color: #35d461; color: #fff; }
/* The list is EXACTLY as tall as the left column (preview +
 * info line + guide strip) and scrolls internally (owner
 * correction, 2026-12-02, supersedes the fill-down version of
 * the same day): the list is absolutely positioned inside the
 * right column, so its content contributes no height to the
 * row — the row ends up exactly as tall as the preview side,
 * the list box matches it pixel for pixel, and the channels
 * that do not fit are reached with the list's own scroll,
 * with no blank band under the list and no stretched block.
 * The earlier flex: 1 1 auto version let the list's content
 * (thousands of pixels with a full category) drive the row
 * height and stretch the whole block with it. */
.hs-chans {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; padding: 4px 6px 4px 2px;
  scrollbar-width: thin; scrollbar-color: #1f9d4d #10160f;
}
.hs-chans::-webkit-scrollbar { width: 8px; }
.hs-chans::-webkit-scrollbar-thumb { background: #1f9d4d; border-radius: 5px; }
.hs-chan {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 10px 14px; background: #141d17; border: 2px solid #26362c; border-radius: 10px;
}
.hs-chan.is-sel { border-color: #35d461; background: rgba(53, 212, 97, 0.10); }
.hs-chan-num { flex: none; width: 46px; color: #35d461; font-weight: 700; font-size: 20px; }
.hs-chan-logo { flex: none; width: 58px; height: 34px; object-fit: contain; }
.hs-chan-main { flex: 1; min-width: 0; display: block; }
.hs-chan-name { display: block; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-chan-now { display: block; font-size: 17px; color: #9fb8a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.hs-chan-prog { display: block; height: 5px; background: #26362c; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.hs-chan-prog i { display: block; height: 100%; background: #35d461; }
.hs-chan-fav { flex: none; color: #35d461; font-size: 20px; }
.hs-chan-more { justify-content: space-between; color: #9fb8a6; }

/* ---------------- live events ---------------- */
.hs-events .hs-live-dot { display: inline-block; }
.hs-evchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hs-evlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hs-ev {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 16px; background: #141d17; border: 2px solid #26362c; border-radius: 12px;
}
.hs-ev-logo { flex: none; width: 62px; height: 38px; object-fit: contain; }
.hs-ev-main { flex: 1; min-width: 0; display: block; }
.hs-ev-name { display: block; font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-ev-prog { display: block; font-size: 17px; color: #9fb8a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---------------- footer ---------------- */
.hs-foot {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 40px 5vw 6px; color: #9fb8a6; font-size: 20px;
}
.hs-premium { color: #35d461; }
.hs-foot-menu { display: flex; gap: 10px; margin-left: auto; }
.hs-version { margin-left: 8px; }

/* ---------------- small screens (web package) ---------------- */
@media (max-width: 1100px) {
  .hs-live-body { flex-direction: column; }
  .hs-live-left { width: 100%; }
  /* Stacked layout: the list goes back in flow under the
   * preview, capped as before (the absolute positioning above
   * only applies to the side-by-side layout). */
  .hs-live-right { display: flex; flex-direction: column; }
  .hs-chans { position: static; max-height: 430px; }
  .hs-hero-content { max-width: 88%; }
  .hs-hero-title { font-size: 38px; }
  .hs-evlist { grid-template-columns: 1fr; }
  .hs-clockbox { display: none; }
}
.hs-ev-more { margin-top: 12px; }

/* ---------------- phones (web package, <= 860px) ----------------
 * Mobile parity round (owner order, 2026-12-03): on phones the
 * showcase home still laid out at desktop scale — the top bar
 * wrapped its seven nav pills into a 363px tower that ate half
 * the first screen and squeezed the search box into a truncated
 * pill, the hero kept near-desktop type, the Live TV head pushed
 * its Guide button off the right edge, EPG strip rows overflowed
 * their box (time column + title + progress bar wider than the
 * strip) and the reminder dialog card (min-width 420px) was
 * wider than the phone. The browse pane's phone layout (web.css)
 * also clipped the fullscreen button's label and shrank the Live
 * preview to a 138px float. Below, every section and function of
 * the desktop layout stays — same order, same features — only
 * the layout adapts to the phone. This block lives in home.css
 * (loaded last in the web package, so it wins the cascade over
 * web.css) and can never match the TV packages, whose canvas is
 * a fixed 1920px: it only takes effect in phone browsers. */
@media (max-width: 860px) {
  /* top bar: brand row, full-width search, sideways nav rail —
   * no more seven-pill tower (was 363px tall). */
  .hs-top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .hs-brand { order: 1; }
  .hs-brand img { height: 34px; }
  .hs-clockbox { order: 2; }
  .hs-searchwrap { order: 3; flex: 1 1 100%; }
  .hs-search { font-size: 16px; padding: 9px 16px; }
  .hs-nav {
    order: 4; flex: 1 1 100%; margin-left: 0;
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hs-nav::-webkit-scrollbar { display: none; }
  .hs-pill { font-size: 15.5px; padding: 8px 14px; min-height: 40px; flex: none; }
  /* The top bar never hides on phones (owner report,
   * 2026-12-03 16:10 EST): hide-on-scroll is disabled at this
   * width in wireTopBar, and this net keeps the bar put even
   * if the hidden class lands here from a wider layout. */
  .hs-top.hs-top-hidden { transform: none; }

  /* hero: phone type scale, content flows over the backdrop
   * instead of a 47vh desktop stage. */
  .hs-hero { height: auto; min-height: 0; margin: 12px 12px 0; border-radius: 16px; }
  .hs-hero-content {
    position: relative; left: 0; bottom: 0; max-width: 100%;
    padding: 104px 16px 34px;
  }
  .hs-hero-eyebrow { font-size: 12.5px; letter-spacing: 1.8px; margin-bottom: 6px; }
  .hs-hero-title { font-size: 27px; margin-bottom: 8px; }
  .hs-hero-meta { font-size: 15px; margin-bottom: 8px; gap: 8px; }
  .hs-hero-plot { font-size: 14.5px; line-height: 1.4; margin-bottom: 14px; }
  .hs-hero-actions { gap: 10px; }
  .hs-btn-play { padding: 11px 22px; font-size: 17px; border-radius: 10px; }
  .hs-btn { padding: 10px 16px; font-size: 15.5px; border-radius: 10px; }
  .hs-stars { font-size: 15px; }
  .hs-hero-dots { right: 14px; bottom: 14px; }

  /* shelves: phone-size cards, ~3 across the rail */
  .hs-main { padding: 0 14px; }
  .hs-row { margin-top: 22px; }
  .hs-row-title { font-size: 21px; margin-bottom: 2px; }
  .hs-rail { gap: 12px; padding: 10px 2px 12px; }
  .hs-rail-arrow { display: none; }
  .hs-card { width: 126px; border-radius: 12px; }
  .hs-card-img { height: 186px; }
  .hs-card-noimg { font-size: 34px; }
  .hs-card-body { padding: 8px 9px 10px; }
  .hs-card-title { font-size: 15px; }
  .hs-card-meta { font-size: 12.5px; min-height: 16px; margin-top: 3px; }
  .hs-card-meta .hs-stars { font-size: 12px; }
  .hs-card-left { font-size: 12px; margin-top: 2px; }
  .hs-card-more { font-size: 15px; min-height: 120px; }
  .hs-more-arrow { font-size: 32px; }

  /* Live TV block: the head fits the phone (title no longer
   * wraps into three lines, the Guide button wraps whole to
   * its own row instead of sliding off-screen), the preview
   * keeps its full 16:9 width, info type compacts and the EPG
   * strip truncates its titles instead of overflowing. */
  .hs-live { margin-top: 24px; padding: 16px 14px 18px; border-radius: 16px; }
  .hs-live-head { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
  .hs-live-title { font-size: 23px; gap: 10px; white-space: nowrap; }
  .hs-live-dot { width: 11px; height: 11px; }
  .hs-live-count { font-size: 15px; }
  .hs-guide-btn { flex: none; }
  .hs-live-badge { font-size: 13.5px; padding: 3px 10px; top: 10px; left: 10px; }
  .hs-pinfo { margin-top: 12px; }
  .hs-pname { font-size: 21px; }
  .hs-pnow { font-size: 16px; margin-top: 4px; }
  .hs-ptime { font-size: 14px; }
  .hs-live-tag { font-size: 12.5px; padding: 2px 8px; }
  .hs-pbar { margin-top: 8px; }
  .hs-pnext { font-size: 15px; margin-top: 6px; min-height: 0; }
  .hs-pactions { gap: 8px; margin-top: 10px; }
  .hs-pactions .hs-btn { padding: 9px 14px; font-size: 15px; min-height: 44px; }
  .hs-epg { margin-top: 14px; padding: 10px 12px; }
  .hs-epg-head { font-size: 16px; margin-bottom: 6px; }
  .hs-epg-row { gap: 10px; padding: 7px 6px; }
  .hs-epg-time { width: 108px; font-size: 13.5px; }
  .hs-epg-ttl { font-size: 15px; }
  .hs-epg-prog { display: none; }
  /* the «En vivo ahora» tag is an inline child of the strip's
   * title span: on a phone it is shoved past the row's edge and
   * shows as a green stub over the ellipsis. The strip's now
   * row is already highlighted and the preview above carries
   * the same tag, so the strip drops it on phones. */
  .hs-epg .hs-live-tag { display: none; }
  .hs-epg-bell { font-size: 15px; }
  .hs-epg-none { font-size: 14.5px; }

  /* categories + channel list */
  .hs-cats { gap: 8px; margin-bottom: 12px; }
  .hs-chip { padding: 8px 14px; font-size: 15px; min-height: 40px; }
  /* Exactly FOUR channels visible on phones (owner order,
   * 2026-12-03 15:40 EST): 4 rows x 52px + 3 gaps x 6px +
   * 4px of vertical padding = 230px; the rest of the list
   * scrolls inside this box and never pushes the page. */
  .hs-chans { max-height: 230px; gap: 6px; padding: 2px 2px 2px 0; }
  .hs-chan { gap: 10px; padding: 8px 10px; min-height: 52px; }
  .hs-chan-num { width: 32px; font-size: 16px; }
  .hs-chan-logo { width: 46px; height: 27px; }
  .hs-chan-name { font-size: 16.5px; }
  .hs-chan-now { font-size: 13.5px; }
  .hs-chan-fav { font-size: 17px; }

  /* live events: one column that cannot blow out sideways —
   * the grid track is minmax(0,1fr) and the live tag keeps its
   * size instead of pushing the row off-screen. */
  .hs-evchips { gap: 8px; margin-bottom: 12px; }
  .hs-evlist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hs-ev { gap: 10px; padding: 10px 12px; border-radius: 10px; min-width: 0; }
  .hs-ev-logo { width: 48px; height: 30px; }
  .hs-ev-name { font-size: 16.5px; }
  .hs-ev-prog { font-size: 13.5px; }
  .hs-ev .hs-live-tag { flex: none; }
  .hs-ev-more { margin-top: 10px; }

  /* footer */
  .hs-foot { margin: 26px 14px 8px; font-size: 14px; gap: 10px 14px; }
  .hs-foot-menu { gap: 8px; margin-left: 0; }
  .hs-foot .hs-pill { font-size: 14px; padding: 7px 12px; min-height: 38px; }
  .hs-version { margin-left: 0; }

  /* reminder dialog + toast fit the phone (the card's desktop
   * min-width was 420px, wider than the screen). */
  .hs-dialog-card { min-width: 0; width: 92vw; max-width: 92vw; padding: 20px; }
  .hs-dialog-title { font-size: 21px; }
  .hs-dialog-sub { font-size: 15.5px; margin-bottom: 16px; }
  .hs-remind-toast {
    left: 12px; right: 12px; bottom: 12px; max-width: none;
    font-size: 15.5px; padding: 12px 14px;
  }
  .hs-vctl-back { width: 48px; height: 48px; top: 14px; left: 14px; }
  .hs-vctl-bar { padding: 14px; gap: 8px; }
  .hs-vctl-bar .hs-btn { padding: 9px 14px; font-size: 15px; }

  /* browse pane: the Live preview goes full-width 16:9 (it was
   * a 138px float) with the info under it — description back on
   * — and the action row wraps into two rows of full, readable
   * labels instead of clipping «Pantalla com…». */
  #scr-browse.wb .screen-head h1 { font-size: 24px; }
  .wb-top { padding: 12px; }
  .wb-top[data-state="live"] .wb-pv { display: block; }
  .wb-vwrap {
    float: none; width: 100%; max-width: 100%; height: auto;
    aspect-ratio: 16 / 9; margin: 0 0 10px;
  }
  .wb-pinfo { display: block; }
  .wb-pname { font-size: 20px; }
  .wb-pnow { font-size: 15px; min-height: 0; }
  .wb-pnext { font-size: 14px; min-height: 0; }
  .wb-pdesc { display: -webkit-box; font-size: 13.5px; -webkit-line-clamp: 2; }
  .wb-actions { flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .wb-actions .btn {
    padding: 10px 14px; font-size: 15px; min-height: 46px;
    white-space: nowrap;
  }
  .wb-actions #wb-pause { flex: none; width: 52px; padding: 10px 0; }
  .wb-vol { flex: 1 1 130px; }
  .wb-vol-slider { flex: 1; width: auto; min-width: 56px; }
  .wb-actions #wb-full { flex: 1 1 42%; overflow: visible; }
  .wb-actions #wb-fav { flex: 1 1 42%; overflow: visible; font-size: 20px; }
  /* info pane (movies / series): a poster worth seeing */
  .wb-iposter { width: 84px; height: 124px; }
  .wb-ititle { font-size: 20px; }
  .wb-imeta { font-size: 14px; }
  .wb-iplot { font-size: 13.5px; }

  /* detail (new ficha): the title stacks full width under the
   * poster + cast rail, and the two icon buttons (Play ▶ and
   * Favorites ♥, owner order 2026-12-03 13:21 EST) ride SMALL
   * in a compact column at the poster's RIGHT — never under
   * the title. The actions node is positioned against
   * .detail-wrap (position: relative), whose top-left corner
   * is the poster's corner: poster is 148px wide starting at
   * the 14px padding, so the column starts at 176px. */
  .detail-wrap { flex-direction: column; gap: 14px; padding: 16px 14px 22px; }
  /* Stacked phone order (owner order 2026-12-03 15:43 EST):
   * poster (icon buttons at its right, anchored to the wrap
   * as before), then TITLE, then the TRAILER, then the info
   * (synopsis), episodes, and the CAST LAST. Both columns
   * dissolve (display:contents) so every block is a direct
   * flex item of the wrap and the order values interleave.
   * Desktop keeps its own layout; this block is phones only. */
  .detail-left { display: contents; }
  .detail-poster { width: 148px; order: 0; }
  .detail-cast { order: 5; }
  .detail-title-row { order: 1; margin-top: 10px; }
  .detail-body { display: contents; }
  .detail-info { order: 3; }
  .detail-stage { order: 2; }
  .detail-eps { order: 4; }
  .detail-eps .episode-list { max-height: none; overflow-y: visible; }
  .detail-left h1 { font-size: 24px; }
  .detail-title-row h1 { min-width: 0; }
  .detail-title-actions {
    position: absolute; top: 16px; left: 176px;
    flex-direction: column; flex-wrap: nowrap; gap: 10px; padding-top: 0;
  }
  .detail-title-actions .btn {
    flex: none; width: 48px; min-width: 48px; min-height: 48px;
    padding: 10px 0; font-size: 20px; white-space: nowrap;
  }
  .detail-title-actions #d-back {
    width: auto; min-width: 48px; padding: 10px 12px; font-size: 15px;
  }
  .detail-meta, .detail-plot { font-size: 14.5px; }
  /* Same synopsis-lowered rule as the desktop sheet, scaled
   * to the stacked mobile layout (owner order 2026-12-03). */
  .detail-plot { margin: 12px 0 16px; display: block; -webkit-line-clamp: none; overflow: visible; }
  .detail-cast .cast-card { width: 84px; }
  .detail-cast .cast-card-photo { width: 84px; height: 84px; }
  .detail-cast .cast-card-name { -webkit-line-clamp: 2; }
  /* Trailer stage on mobile: same clear-of-text layout, the
   * stage keeps its 16:9 frame capped to the small screen. */
  .detail-stage { max-height: 46vh; }

  /* settings prose: break-all shredded ordinary words into
   * single letters on narrow screens; wrap at spaces and only
   * break the long pairing URL when it has to. */
  .set-text { word-break: normal; overflow-wrap: anywhere; }
}

