/*
 * 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; background: #0e1511;
  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;
}
.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; }
