/* DAL RED — Smart TV & Web Portal
   Optimized for 720p/1080p/4K Smart TVs (LG webOS, Samsung Tizen, VIDAA, Fire TV, Android TV, Philips, Panasonic) */

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080a0f;
  color: #f4f5f7;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1800px) {
  html { font-size: 21px; }
}
@media (max-width: 1366px) {
  html { font-size: 14px; }
}

.is-hidden {
  display: none !important;
}

#msx-stage {
  position: relative;
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#msx-bg {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #080a0f url('../key-visual.jpg') right top/cover no-repeat;
  opacity: 0.68;
  z-index: 0;
  pointer-events: none;
}
#msx-bg:after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(90deg, #080a0f 2%, rgba(8, 10, 15, 0.9) 24%, rgba(8, 10, 15, 0.14) 85%),
    linear-gradient(0deg, #080a0f 0%, rgba(8, 10, 15, 0.78) 35%, transparent 78%);
}
.msx-tmdb-ambient {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}
html.msx-view-home.msx-tmdb-ambient-on .msx-tmdb-ambient {
  opacity: 0.42;
}
.msx-tmdb-ambient-scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 65% 25%, rgba(8, 10, 15, 0.22) 0%, rgba(8, 10, 15, 0.78) 65%, #080a0f 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.45) 0%, rgba(8, 10, 15, 0.58) 55%, rgba(8, 10, 15, 0.96) 100%);
}

/* Pause background compositing during fullscreen video or catalog browsing (vital for webOS 3/4 & Tizen 3/4 60fps) */
html.msx-view-catalog #msx-bg {
  display: none !important;
}
html.msx-v-full #msx-bg,
html.msx-v-full #msx-shell {
  visibility: hidden !important;
}
html.msx-v-full #msx-shell *,
html.msx-v-full #msx-bg * {
  animation-play-state: paused !important;
  -webkit-animation-play-state: paused !important;
}

/* Persistent Video Layer */
#msx-video-layer {
  position: fixed;
  z-index: 25;
  background: #000;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

html.msx-v-full #msx-video-layer {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  z-index: 40;
}

#msx-video-frame {
  width: 100%;
  height: 100%;
  background: #000;
}

#msx-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

#msx-video.aspect-cover { object-fit: cover; }
#msx-video.aspect-fill { object-fit: fill; }

.msx-brightness-dimmer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.msx-brightness-dimmer.is-hidden {
  display: none;
}

.msx-subtitles {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 10%;
  text-align: center;
  pointer-events: none;
  z-index: 46;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000;
}
.msx-subtitles.sub-lg { font-size: 1.95rem; }
.msx-subtitles.sub-xl { font-size: 2.35rem; }
.msx-subtitles span {
  display: inline-block;
  background: rgba(6, 8, 14, 0.68);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

#msx-video-hud {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(6, 9, 15, 0.55);
  z-index: 45;
  pointer-events: none;
}

.hud-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ed2d4d;
  border-radius: 50%;
  -webkit-animation: msxSpin 0.8s linear infinite;
  animation: msxSpin 0.8s linear infinite;
}

@-webkit-keyframes msxSpin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes msxSpin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.hud-text {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #dbe2f0;
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
}

/* Main Shell (/player/ edge-to-edge topbar & footer parity) */
#msx-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 0;
}

/* Fullscreen Boot State (hides topbar & footer during intro) */
html.msx-view-boot #msx-topbar,
html.msx-view-boot #msx-footer {
  display: none !important;
}
html.msx-view-boot #msx-shell {
  padding: 0 !important;
}

/* Topbar (/player/ Identity Parity) */
.topbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  min-height: 4.7rem;
  margin-bottom: 0;
  padding: 0.75rem 4.2%;
  background: rgba(8, 10, 15, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.topbar-left, .topbar-right {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.topbar-left > * { margin-right: 0.75rem; }
.topbar-right > * { margin-left: 0.65rem; }

.brand-logo {
  height: 2.3rem;
  width: auto;
  display: block;
}

.conn-badge {
  font-size: 0.82rem;
  color: #b5becd;
  background: transparent;
  border: 0;
  padding: 0.2rem 0.25rem;
  border-radius: 0;
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.msx-view-home .topbar {
  background: transparent;
  border-bottom: 0;
  min-height: 3.6rem;
  padding: 0.65rem 4% 0;
}
html.msx-view-home #conn-badge,
html.msx-view-home #top-clock,
html.msx-view-home #btn-top-home,
html.msx-view-home #btn-top-account,
html.msx-view-home .feature-strip,
html.msx-view-home #msx-footer {
  display: none !important;
}

.top-btn {
  background: rgba(255, 255, 255, 0.055);
  color: #eef0f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.44rem 0.88rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.top-btn-sports {
  background: linear-gradient(135deg, #5c1c34 0%, #311a2f 100%);
  border: 1px solid #d14d72;
  color: #ffffff;
  padding: 0.48rem 1.05rem;
  font-weight: 700;
}

.top-btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: #24344f;
  border: 1px solid #567099;
  color: #ffffff;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.top-clock {
  font-size: 0.96rem;
  font-weight: 700;
  color: #b7c2d6;
  min-width: 3.3rem;
  text-align: right;
}

/* Focus Ring System (DAL RED Standard High-Contrast Highlight) */
.focusable {
  outline: none;
  position: relative;
}

.focusable.is-focused,
.focusable:focus {
  border-color: #ff5872 !important;
  box-shadow: 0 0 0 3px #ffffff, 0 8px 20px rgba(0, 0, 0, 0.65) !important;
  z-index: 5;
}

.btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  color: #fff;
  background: #151a24;
}

.btn-block {
  width: 100%;
  padding: 0.78rem 1.2rem;
  font-size: 0.96rem;
}

.btn-sm {
  padding: 0.42rem 0.78rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: #ff304f;
  border-color: #ff5872;
  color: #fff;
}
.btn-primary.is-focused,
.btn-primary:focus {
  background: #ff304f;
  border-color: #ffffff !important;
}

.btn-secondary {
  background: #151a24;
  border-color: #343b4b;
  color: #eef0f5;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cfd7e6;
}

/* Boot Screen (Fullscreen Cinema Intro Video + Motion parity) */
.view-boot {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
  background: #060912;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 46, 84, 0.22) 0%, rgba(14, 18, 32, 0.96) 45%, #060912 82%);
}
.boot-intro-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060912;
  z-index: 6;
  opacity: 0;
  -webkit-transition: opacity 0.24s ease;
  transition: opacity 0.24s ease;
  pointer-events: none;
  object-fit: cover;
}
.boot-intro-video.fit-contain {
  object-fit: contain;
}
.view-boot.boot-video-playing .boot-intro-video {
  opacity: 1;
}
.view-boot.is-hidden .boot-intro-video {
  display: none !important;
}
.boot-bar {
  position: absolute;
  left: 50%;
  width: min(82vw, 1040px);
  height: 2px;
  margin-left: calc(-0.5 * min(82vw, 1040px));
  background: linear-gradient(90deg, transparent, rgba(255, 46, 84, 0.82), transparent);
  -webkit-animation: msx-boot-bar 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation: msx-boot-bar 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.boot-bar-top { top: 20px; }
.boot-bar-bottom { bottom: 20px; opacity: 0.65; }
.boot-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 30rem;
  height: 17rem;
  margin: -8.5rem 0 0 -15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 84, 0.34) 0%, rgba(255, 46, 84, 0.08) 45%, transparent 72%);
  pointer-events: none;
  -webkit-animation: msx-boot-glow 4.2s ease-in-out infinite;
  animation: msx-boot-glow 4.2s ease-in-out infinite;
}
.boot-logo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  z-index: 2;
  margin-bottom: 1.4rem;
  -webkit-animation: msx-boot-logo-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards, msx-boot-float 4.2s ease-in-out 0.72s infinite;
  animation: msx-boot-logo-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards, msx-boot-float 4.2s ease-in-out 0.72s infinite;
}
.boot-logo {
  display: block;
  height: 3.4rem;
  margin: 0;
}
.boot-beam {
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), rgba(255, 90, 120, 0.28), transparent);
  pointer-events: none;
  -webkit-animation: msx-boot-beam 4.2s ease-in-out infinite;
  animation: msx-boot-beam 4.2s ease-in-out infinite;
}
.boot-rail {
  position: relative;
  z-index: 2;
  width: min(76vw, 400px);
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 20, 36, 0.85);
  border: 1px solid rgba(56, 32, 53, 0.95);
  overflow: hidden;
}
.boot-rail-trail,
.boot-rail-bar,
.boot-rail-core {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  -webkit-animation: msx-boot-rail 4.2s ease-in-out infinite;
  animation: msx-boot-rail 4.2s ease-in-out infinite;
}
.boot-rail-trail { width: 128px; background: rgba(255, 46, 84, 0.36); }
.boot-rail-bar { top: 1px; height: 4px; width: 80px; background: #ff365c; box-shadow: 0 0 12px rgba(255, 54, 92, 0.7); }
.boot-rail-core { top: 1px; height: 4px; width: 28px; margin-left: 26px; background: #ffe4ec; }
.boot-dots {
  position: relative;
  z-index: 2;
  display: -webkit-flex;
  display: flex;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.boot-dots span {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #ff3b5d;
  opacity: 0.3;
  -webkit-animation: msx-boot-dot 1.4s ease-in-out infinite;
  animation: msx-boot-dot 1.4s ease-in-out infinite;
}
.boot-dots span:nth-child(2) { -webkit-animation-delay: 0.22s; animation-delay: 0.22s; }
.boot-dots span:nth-child(3) { -webkit-animation-delay: 0.44s; animation-delay: 0.44s; }
.view-boot h2 {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  margin: 0.95rem 0 0.3rem;
}
.view-boot p {
  position: relative;
  z-index: 2;
  color: #94a3b8;
  margin: 0;
  font-size: 0.92rem;
}
.boot-cinema-badge {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #64748b;
  opacity: 0.85;
}
.view-boot.is-hidden * {
  -webkit-animation: none !important;
  animation: none !important;
}
@-webkit-keyframes msx-boot-bar { from { -webkit-transform: scaleX(0); transform: scaleX(0); } to { -webkit-transform: scaleX(1); transform: scaleX(1); } }
@keyframes msx-boot-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@-webkit-keyframes msx-boot-logo-in { from { opacity: 0.1; -webkit-transform: translateY(10px) scale(0.92); transform: translateY(10px) scale(0.92); } to { opacity: 1; -webkit-transform: translateY(0) scale(1); transform: translateY(0) scale(1); } }
@keyframes msx-boot-logo-in { from { opacity: 0.1; transform: translateY(10px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@-webkit-keyframes msx-boot-float { 0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); } 50% { -webkit-transform: translateY(-3px); transform: translateY(-3px); } }
@keyframes msx-boot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@-webkit-keyframes msx-boot-glow { 0%, 100% { opacity: 0.34; -webkit-transform: scale(0.92); transform: scale(0.92); } 50% { opacity: 0.78; -webkit-transform: scale(1.1); transform: scale(1.1); } }
@keyframes msx-boot-glow { 0%, 100% { opacity: 0.34; transform: scale(0.92); } 50% { opacity: 0.78; transform: scale(1.1); } }
@-webkit-keyframes msx-boot-beam { 0%, 8% { left: -45%; opacity: 0; } 24% { opacity: 0.85; } 45%, 100% { left: 110%; opacity: 0; } }
@keyframes msx-boot-beam { 0%, 8% { left: -45%; opacity: 0; } 24% { opacity: 0.85; } 45%, 100% { left: 110%; opacity: 0; } }
@-webkit-keyframes msx-boot-rail { 0%, 100% { -webkit-transform: translateX(0); transform: translateX(0); } 50% { -webkit-transform: translateX(320px); transform: translateX(320px); } }
@keyframes msx-boot-rail { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(320px); } }
@-webkit-keyframes msx-boot-dot { 0%, 100% { opacity: 0.28; -webkit-transform: scale(0.85); transform: scale(0.85); } 50% { opacity: 1; -webkit-transform: scale(1.22); transform: scale(1.22); } }
@keyframes msx-boot-dot { 0%, 100% { opacity: 0.28; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.22); } }

.view-section {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  padding: 1.25rem 4.2% 0.8rem;
}

#view-catalog.view-section {
  padding: 0.95rem 3% 0.65rem;
}

/* VIEW 1: DAL RED /player/ PARITY LOGIN */
.login-grid {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 6%;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  margin: 0;
}

.login-info-col {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 46%;
  flex: 0 0 46%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding-right: 0.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ff6079;
  margin-bottom: 0.45rem;
}

.login-info-col h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 0.7rem;
  letter-spacing: -0.03em;
}
.login-info-col h1 span {
  color: #ff304f;
}

.lead-copy {
  color: #bdc5d3;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
  max-width: 28rem;
}

.welcome-tags {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #e6e9ef;
}
.welcome-tags span + span {
  border-left: 1px solid #4e3740;
  padding-left: 1.1rem;
}

.device-box {
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid #34333e;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.85rem;
}

.device-box-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8f9db6;
  margin-bottom: 0.5rem;
}

.host-chip {
  background: #1b253a;
  color: #cbd5e8;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.device-codes {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.6rem;
}
.device-codes small {
  display: block;
  font-size: 0.64rem;
  color: #8492ab;
}
.device-codes strong {
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.device-portal-hint {
  margin: 0.55rem 0 0;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: #a9b4c8;
  line-height: 1.35;
}
.device-portal-hint strong {
  color: #ff738d;
  letter-spacing: 0.02em;
}

.saved-lists-panel {
  background: rgba(14, 19, 31, 0.92);
  border: 1px solid #243047;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  max-height: 10.5rem;
  overflow-y: auto;
}
.saved-lists-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #93a1ba;
  margin-bottom: 0.45rem;
}
.saved-lists-items {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.42rem;
}
.saved-list-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.5rem;
  background: #131b2b;
  border: 1px solid #27344e;
  border-radius: 9px;
  padding: 0.35rem 0.55rem;
}
.saved-list-main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  text-align: left;
  background: transparent;
  border: 1.5px solid transparent;
  color: #fff;
  padding: 0.32rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
}
.saved-list-main small {
  display: block;
  color: #8d9bb4;
  font-weight: 500;
  font-size: 0.7rem;
}

.login-form-col.login-card {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  max-width: 30rem;
  background: linear-gradient(155deg, rgba(24, 36, 58, 0.88) 0%, rgba(13, 20, 35, 0.92) 100%);
  border: 1px solid rgba(110, 142, 192, 0.52);
  border-radius: 20px;
  padding: 1.55rem 1.7rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.52);
}

.login-card-title {
  margin: 0 0 1.05rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.diag-banner {
  border-radius: 10px;
  padding: 0.68rem 0.88rem;
  margin-bottom: 0.9rem;
  border: 1.5px solid #e03e58;
  background: rgba(180, 28, 55, 0.22);
}
.diag-banner.diag-dns {
  border-color: #f59f00;
  background: rgba(190, 120, 0, 0.2);
}
.diag-banner.diag-ok {
  border-color: #37b24d;
  background: rgba(43, 138, 62, 0.2);
}
.diag-banner strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.18rem;
}
.diag-banner p {
  margin: 0;
  font-size: 0.78rem;
  color: #e6ecf7;
}
.diag-actions {
  display: -webkit-flex;
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.nocode-toggle-btn {
  min-height: 2.3rem;
  font-size: 0.8rem;
  color: #c7d2e5;
  background: rgba(16, 23, 39, 0.72);
  border-color: #364969;
}
.nocode-toggle-btn.is-checked {
  border-color: #ff6078;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.16);
}

.field-row {
  display: block;
  margin-bottom: 0.9rem;
}
.field-row > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #bcc8dc;
  margin-bottom: 0.34rem;
}

.tv-field-btn {
  width: 100%;
  min-height: 2.85rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  text-align: left;
  background: #0d1525;
  border: 1px solid #4e668d;
  border-radius: 10px;
  padding: 0.68rem 0.9rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tv-field-btn.is-placeholder {
  color: #6f7f9b;
  font-weight: 500;
}
.tv-field-btn.is-focused {
  background: #11192b;
}

.pass-field-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 0.55rem;
}
.pass-field-row .tv-field-btn {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}
.btn-pass-eye {
  min-width: 3.1rem;
  padding: 0 0.8rem;
  font-size: 1rem;
  border-radius: 10px;
}

.login-help-caption {
  margin: 0.78rem 0 0;
  font-size: 0.76rem;
  color: #8a98b2;
  text-align: center;
}

/* VIEW 2: HOME (/player/ PARITY: 2-COL TOP ROW + 4-CARD HORIZONTAL GRID + FEATURE STRIP) */
.home-top-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.home-heading {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 36%;
  flex: 0 0 36%;
  max-width: 38%;
  min-width: 0;
  padding-right: 0.5rem;
}

.home-heading h1 {
  font-size: 2.75rem;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.45rem 0 0.45rem;
  color: #f4f5f7;
}

.home-heading p {
  color: #b8c1cf;
  font-size: 0.96rem;
  margin: 0;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-showcase {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 62%;
  flex: 1 1 62%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(98, 128, 176, 0.58);
  background: linear-gradient(145deg, rgba(26, 38, 62, 0.82) 0%, rgba(14, 21, 36, 0.88) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.40);
  min-height: 9.6rem;
  max-height: none;
  margin-bottom: 0;
  padding: 0.85rem 1.05rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.hero-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: right center;
  opacity: 0.42;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, rgba(11, 15, 24, 0.97) 0%, rgba(12, 17, 27, 0.88) 54%, rgba(12, 17, 27, 0.52) 100%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
}

.hero-poster-wrap {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 5.4rem;
  flex: 0 0 5.4rem;
  width: 5.4rem;
  height: 7.9rem;
  margin-right: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, #4a1428 0%, #151f33 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster-fallback {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #ff4764;
  font-weight: 800;
  font-size: 1.25rem;
}

.hero-poster {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: none;
}

.hero-badges {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.28rem;
}

.hero-tag-red {
  background: rgba(255, 48, 79, 0.18);
  border: 1px solid rgba(255, 88, 114, 0.45);
  color: #ff8598;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}

.hero-meta-chip {
  background: rgba(255, 255, 255, 0.09);
  color: #dce4f2;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.14rem 0.48rem;
  border-radius: 5px;
}

.hero-meta-line {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-bottom: 0.24rem;
  font-size: 0.76rem;
}

.hero-rating-chip {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.42);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 6px;
}

.hero-year-txt {
  font-weight: 700;
  color: #e6ecf7;
}
.hero-year-txt:empty {
  display: none;
}

.hero-genres {
  font-size: 0.74rem;
  color: #9fb0cb;
}
.hero-meta-chip:empty,
.hero-rating-chip:empty,
.hero-genres:empty {
  display: none;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-plot {
  margin: 0 0 0.58rem;
  font-size: 0.8rem;
  color: #c6d1e2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.hero-actions-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.48rem;
}

.hero-actions .btn {
  padding: 0.48rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 9px;
}

#btn-hero-desc,
.btn-hero-nav {
  background: rgba(36, 52, 80, 0.86);
  border: 1px solid rgba(100, 132, 180, 0.68);
  color: #ffffff;
}

.btn-hero-nav {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0 !important;
}

.hero-dots {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.32rem;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.hero-dot.is-active {
  width: 18px;
  background: #ff304f;
}

.hero-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
}
.hero-progress-bar {
  height: 100%;
  width: 20%;
  background: #ff304f;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0.85rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.roku-menu-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  -webkit-align-self: stretch;
  align-self: stretch;
  justify-self: stretch;
  background: rgba(21, 28, 42, 0.84);
  border: 1px solid #465b7e;
  border-radius: 20px;
  padding: 1.05rem 1.15rem;
  text-align: left;
  color: #fff;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  min-height: 9.2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}
.roku-menu-card.card-live {
  background: linear-gradient(145deg, rgba(78, 26, 54, 0.78) 0%, rgba(24, 26, 50, 0.86) 100%);
  border-color: rgba(210, 82, 120, 0.62);
}
.roku-menu-card.card-movie {
  background: linear-gradient(145deg, rgba(46, 42, 96, 0.78) 0%, rgba(20, 28, 54, 0.86) 100%);
  border-color: rgba(116, 122, 204, 0.58);
}
.roku-menu-card.card-series {
  background: linear-gradient(145deg, rgba(24, 66, 88, 0.78) 0%, rgba(18, 32, 54, 0.86) 100%);
  border-color: rgba(70, 152, 192, 0.58);
}
.roku-menu-card.card-fav {
  background: linear-gradient(145deg, rgba(76, 38, 66, 0.78) 0%, rgba(24, 26, 48, 0.86) 100%);
  border-color: rgba(176, 94, 146, 0.58);
}
.roku-menu-card:after {
  display: none;
}
.roku-menu-card.is-focused,
.roku-menu-card:focus {
  background: linear-gradient(145deg, #33486e 0%, #202d47 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 7px rgba(255, 54, 88, 0.28), 0 12px 28px rgba(0, 0, 0, 0.48) !important;
}
.roku-menu-card:hover {
  border-color: #ff7089 !important;
}
html.msx-view-home .roku-menu-card .card-idx {
  display: none;
}

.roku-menu-card .menu-icon {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0 0 0.7rem;
}
.roku-menu-card.card-live .menu-icon {
  background: rgba(255, 54, 88, 0.26);
  border-color: rgba(255, 112, 137, 0.55);
}
.roku-menu-card.card-movie .menu-icon {
  background: rgba(129, 140, 248, 0.25);
  border-color: rgba(165, 180, 252, 0.52);
}
.roku-menu-card.card-series .menu-icon {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(125, 211, 252, 0.52);
}
.roku-menu-card.card-fav .menu-icon {
  background: rgba(244, 114, 182, 0.24);
  border-color: rgba(249, 168, 212, 0.52);
}
.roku-menu-card .menu-icon img {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.roku-menu-card .card-idx {
  position: absolute;
  right: 1.1rem;
  top: 1.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: #8c98aa;
}
.roku-menu-card.is-focused .card-idx,
.roku-menu-card:focus .card-idx,
.roku-menu-card:hover .card-idx {
  color: #ffb7c5;
}
.roku-menu-card strong {
  font-size: 1.38rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.roku-menu-card small {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 0.25rem;
}
.roku-menu-card.is-focused small,
.roku-menu-card:focus small,
.roku-menu-card:hover small {
  color: #e2e8f0;
}

.home-quick-strip {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.85rem;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  margin-bottom: 0.75rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.home-quick-strip .pill-btn {
  background: linear-gradient(180deg, #263754 0%, #1b2840 100%);
  border: 1px solid #567099;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0%;
  flex: 1 1 0%;
  min-width: 0;
  min-height: 2.5rem;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.34);
}
.pill-btn {
  background: #151a24;
  border: 1px solid #343b4b;
  color: #eef0f5;
  border-radius: 10px;
  padding: 0.52rem 0.92rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.quick-count {
  color: #ff8ca0;
  font-size: 0.74rem;
  margin-left: 0.25rem;
}

.feature-strip {
  margin-top: auto;
  padding: 0.65rem 0 0.1rem;
  border-top: 1px solid #282e39;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.feature-strip-copy {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.55rem;
}
.feature-strip strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b8c1cf;
  display: block;
}
.feature-strip p {
  font-size: 0.74rem;
  color: #8793a5;
  margin: 0.16rem 0 0;
}
.remote-legend {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.1rem;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  color: #98a5b8;
  font-size: 0.74rem;
}
.remote-legend b {
  display: inline-block;
  background: #1a202c;
  border: 1px solid #384153;
  border-radius: 6px;
  padding: 0.22rem 0.42rem;
  font-size: 0.68rem;
  color: #e2e7ef;
  margin-right: 0.3rem;
}

.continue-wrap {
  margin-top: 0.35rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.continue-wrap .section-heading h2 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f5f7;
  margin: 0.15rem 0 0.55rem;
}
.section-subhead {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #95a3bc;
  margin-bottom: 0.35rem;
}
.continue-rail,
.continue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.continue-card {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  width: 100%;
  background: rgba(18, 26, 40, 0.82);
  border: 1px solid rgba(86, 112, 153, 0.48);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: #f4f6fb;
  cursor: pointer;
}
.continue-card.is-focused,
.continue-card:focus,
.continue-card:hover {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px #ffffff, 0 8px 22px rgba(0, 0, 0, 0.55) !important;
}
.continue-card-art {
  position: relative;
  width: 100%;
  height: 5.8rem;
  background: linear-gradient(150deg, #202b3b, #111621) center 22%/cover no-repeat;
  overflow: hidden;
}
.continue-card-body {
  padding: 0.45rem 0.65rem 0.4rem;
}
.continue-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f4f6fb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-card-kind {
  display: block;
  font-size: 0.68rem;
  color: #a7b3c7;
  margin-top: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-progress {
  width: 100%;
  height: 4px;
  background: #41333d;
  overflow: hidden;
  margin-top: auto;
}
.card-progress-fill {
  height: 100%;
  background: #ff3658;
}
.poster-card .card-progress {
  width: calc(100% - 0.96rem);
  margin: 0 0.48rem 0.45rem;
  border-radius: 999px;
}

/* VIEW 3: CATALOG (LEFT FLOATING SIDEBAR + VIRTUALIZED GRID/LIST + LIVE PREVIEW) */
.catalog-layout {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1rem;
}

.cat-sidebar {
  width: 14.5rem;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 14.5rem;
  flex: 0 0 14.5rem;
  background: transparent;
  border: 0;
  border-right: 1px solid #252d3a;
  border-radius: 0;
  padding: 0.15rem 1.15rem 0.2rem 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.cat-sidebar-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.btn-back-pill {
  background: #172033;
  border: 1.5px solid #2c3a57;
  color: #e4ebf7;
  border-radius: 8px;
  padding: 0.34rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cat-kind-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ff758f;
}

.cat-filter-box {
  margin-bottom: 0.5rem;
}
.cat-search-btn {
  width: 100%;
  background: #0d1320;
  border: 1.5px solid #26334c;
  color: #a9b6cd;
  border-radius: 8px;
  padding: 0.38rem 0.6rem;
  font-size: 0.76rem;
  text-align: left;
  cursor: pointer;
}

.cat-list {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  max-height: 430px;
  max-height: 28rem;
  max-height: 62vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.32rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 45, 77, 0.7) rgba(13, 19, 32, 0.6);
  padding-right: 0.2rem;
}
.cat-list::-webkit-scrollbar { width: 6px; }
.cat-list::-webkit-scrollbar-track { background: rgba(13, 19, 32, 0.55); border-radius: 6px; }
.cat-list::-webkit-scrollbar-thumb { background: rgba(237, 45, 77, 0.72); border-radius: 6px; }

.cat-row-btn {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid transparent;
  border-left: 3.5px solid transparent;
  border-radius: 8px;
  padding: 0.46rem 0.58rem;
  color: #c6d1e4;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cat-row-btn.is-selected {
  background: rgba(237, 45, 77, 0.14);
  border-color: rgba(237, 45, 77, 0.36);
  border-left-color: #ed2d4d;
  color: #fff;
  font-weight: 700;
}
.cat-row-btn.is-focused {
  background: rgba(255, 54, 88, 0.28);
  color: #ffffff;
}
.cat-row-btn.is-selected.is-focused {
  background: rgba(237, 45, 77, 0.38);
  border-left-color: #ffffff !important;
}
.cat-row-name {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dal-marquee-active {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  display: block !important;
}
.dal-marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}
.dal-marquee-gap {
  display: inline-block;
  width: 44px;
}
.cat-row-count {
  font-size: 0.68rem;
  color: #8896b0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
}

.cat-pager-bar {
  margin-top: 0.38rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.35rem;
}
.cat-scroll-btn {
  background: #141c2e;
  border: 1px solid #2a3958;
  color: #cbd6ea;
  border-radius: 6px;
  padding: 0.16rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.cat-scroll-btn:hover {
  border-color: #ed2d4d;
  color: #fff;
}
.cat-pager-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  font-size: 0.68rem;
  color: #7d8ba4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.cat-toolbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.search-trigger {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.5rem;
  background: #101726;
  border: 1.5px solid #28354f;
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
  color: #b7c3d8;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.catalog-stats {
  font-size: 0.76rem;
  color: #93a1ba;
  white-space: nowrap;
}

.catalog-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.9rem;
}

.catalog-items-wrap {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.catalog-items {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Poster Grid Mode (Movies / Series) */
.catalog-items.is-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.65rem;
}

.poster-card {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  background: #141b27;
  border: 1px solid #2c374a;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: #fff;
}

.poster-art {
  position: relative;
  display: block;
  width: 100%;
  height: 185px;
  height: 12.2rem;
  height: 27vh;
  background: #161f33 center/cover no-repeat;
  overflow: hidden;
}
.poster-art-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  opacity: 0.35;
}
.poster-badge {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  z-index: 2;
  background: rgba(8, 11, 18, 0.86);
  color: #ffd43b;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.poster-fav {
  position: absolute;
  top: 0.32rem;
  left: 0.32rem;
  z-index: 2;
  background: rgba(237, 45, 77, 0.9);
  color: #fff;
  font-size: 0.62rem;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
}

.poster-caption {
  display: block;
  width: 100%;
  height: 3.15rem;
  padding: 0.36rem 0.48rem;
  background: #0e1422;
  overflow: hidden;
}
.poster-caption strong {
  display: block;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-caption small {
  display: block;
  font-size: 0.64rem;
  color: #8b99b2;
}

/* Channel List Mode (Live TV) */
.catalog-items.is-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.38rem;
}

.channel-row {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.65rem;
  background: #151d29;
  border: 1px solid #2a3547;
  border-radius: 9px;
  padding: 0.44rem 0.7rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.channel-row.is-playing {
  background: #321c28;
  border-color: #c23958;
}
.ch-num {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ff758f;
  min-width: 2.1rem;
}
.ch-logo {
  width: 2.4rem;
  height: 1.7rem;
  border-radius: 4px;
  background: #0a0e17 center/contain no-repeat;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  color: #6b7f9f;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.ch-logo-fallback {
  width: 1rem;
  height: 1rem;
  opacity: 0.72;
}
.ch-title-wrap {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}
.ch-title-wrap strong {
  display: block;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-title-wrap small {
  display: block;
  font-size: 0.68rem;
  color: #8b99b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-page-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  margin-top: 0.5rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.page-indicator {
  font-size: 0.75rem;
  color: #93a1ba;
  font-weight: 700;
}

/* Right-Side Live TV Preview Panel */
.live-preview-panel {
  width: 22.5rem;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 22.5rem;
  flex: 0 0 22.5rem;
  background: rgba(15, 21, 34, 0.94);
  border: 1px solid #25324b;
  border-radius: 14px;
  padding: 0.75rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.live-preview-slot {
  width: 100%;
  height: 12.65rem;
  aspect-ratio: 16 / 9;
  min-height: 11.5rem;
  background: #06090f;
  border: 1px solid #232f47;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.65rem;
}
@supports (aspect-ratio: 16 / 9) {
  .live-preview-slot { height: auto; }
}

.live-preview-placeholder {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #8e9cb5;
}
.live-preview-placeholder span { font-size: 1.8rem; margin-bottom: 0.3rem; }
.live-preview-placeholder strong { color: #dbe3f2; font-size: 0.88rem; }
.live-preview-placeholder small { font-size: 0.72rem; margin-top: 0.2rem; }

.live-preview-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.live-preview-head strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-epg-box {
  background: #0d1320;
  border: 1px solid #212c42;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.6rem;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  overflow-y: auto;
  font-size: 0.75rem;
  color: #b4c0d6;
}
.preview-epg-box p { margin: 0 0 0.35rem; }
.epg-now strong { color: #fff; }
.epg-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.epg-progress-fill {
  display: block;
  height: 100%;
  background: #e5202b;
  border-radius: 999px;
}

.live-preview-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.45rem;
}
.live-preview-btns .btn { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }

/* Footer (/player/ Minimal Parity) */
.msx-footer {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0.65rem 4.2%;
  margin-top: 0;
  background: #080a0f;
  border-top: 1px solid #222833;
  font-size: 0.74rem;
  color: #97a3b7;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.footer-brand {
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #b5becd;
}
.footer-device-identity {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.15rem;
  font-size: 0.7rem;
}
.footer-device-identity b {
  color: #a7b3c7;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.dot-red { background: #fa5252; }
.dot-green { background: #40c057; }
.dot-yellow { background: #fab005; }
.dot-blue { background: #339af0; }

/* Fullscreen Player OSD */
.player-osd {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 60;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,8,14,0.86) 0%, transparent 26%, transparent 66%, rgba(5,8,14,0.92) 100%);
  padding: 1.4rem 2.2rem;
}

.osd-top {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 1rem;
}
.osd-meta { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.osd-title-line { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-align: center; -webkit-align-items: center; align-items: center; gap: 0.6rem; }
.osd-title-line strong { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-live-pill { background: #ed2d4d; color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0.15rem 0.5rem; border-radius: 4px; }
.osd-sub-info { font-size: 0.8rem; color: #b5c2d8; }
.osd-brand { height: 1.8rem; opacity: 0.85; }

.osd-channel-drawer {
  position: absolute;
  top: 5rem;
  left: 2.2rem;
  bottom: 7.5rem;
  width: 21rem;
  background: rgba(11, 16, 27, 0.95);
  border: 1px solid #2b3954;
  border-radius: 12px;
  padding: 0.75rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  z-index: 65;
}
.drawer-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 0.5rem;
}
.osd-drawer-list {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  overflow-y: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.32rem;
}

.osd-bottom {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.7rem;
}

.osd-seek-wrap {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.osd-progress-track {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}
.osd-progress-fill {
  height: 100%;
  width: 0%;
  background: #ed2d4d;
}

.osd-controls-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.75rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.osd-transport, .osd-tools {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.45rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.cc-chip {
  background: #fff;
  color: #0b101b;
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

/* Modals */
.tv-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 80;
  background: rgba(5, 8, 14, 0.84);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 1.5rem 2.4rem;
}

.modal-card {
  position: relative;
  background: #141923;
  border: 1px solid #394153;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  max-height: 90%;
  max-height: 90vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}
.modal-wide { width: 92%; width: 92vw; max-width: 74rem; height: 86%; height: 86vh; }
.modal-medium { width: 82%; width: 82vw; max-width: 54rem; max-height: 85%; max-height: 85vh; }
.modal-small { width: 26rem; text-align: center; }
.modal-details-card { width: 88%; width: 88vw; max-width: 68rem; max-height: 88%; max-height: 88vh; }
.modal-details-card.is-series { min-height: 500px; height: 88%; height: 88vh; }

.modal-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.modal-header > div {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  min-width: 0;
}
.modal-header .eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.modal-header h2 {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.modal-header h2 .msx-ico {
  margin-right: 0.45rem;
}
.modal-status { margin: 0 0 0.65rem; font-size: 0.82rem; color: #9aa8c2; }

/* Details Modal */
.det-backdrop {
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 15rem;
  background-size: cover;
  background-position: center 20%;
  opacity: 0.2;
  pointer-events: none;
}
.det-top {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.3rem;
  margin-bottom: 0.85rem;
}
.det-poster {
  width: 9.2rem;
  height: 13.5rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2d3b58;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  background: #161f33;
}
.det-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; min-width: 0; }
.det-chips { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 0.45rem; -webkit-box-align: center; -webkit-align-items: center; align-items: center; margin-bottom: 0.4rem; }
.det-info h2 { margin: 0 0 0.4rem; font-size: 1.5rem; }
.det-plot { margin: 0 0 0.45rem; font-size: 0.84rem; color: #c7d2e6; max-height: 4.6rem; overflow-y: auto; }
.det-cast { margin: 0 0 0.75rem; font-size: 0.76rem; color: #95a4be; }
.det-actions { display: -webkit-box; display: -webkit-flex; display: flex; gap: 0.55rem; -webkit-flex-wrap: wrap; flex-wrap: wrap; }

/* TMDB Hero Full Description Modal (Sinopse Inteira Sem Corte) */
.hero-desc-card {
  width: 82%;
  width: 82vw;
  max-width: 56rem;
  max-height: 86%;
  max-height: 86vh;
}
.hero-desc-body {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1.35rem;
  min-height: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}
.hero-desc-poster {
  width: 8.8rem;
  height: 13rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2d3b58;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  background: #161f33;
}
.hero-desc-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  min-height: 0;
}
.hero-desc-title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.24;
}
.hero-desc-plot {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 5rem;
  max-height: 20rem;
  max-height: 46vh;
  overflow-y: auto;
  margin: 0 0 0.95rem;
  padding: 0.75rem 0.9rem;
  background: rgba(9, 14, 24, 0.78);
  border: 1px solid #24314a;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #e2e8f5;
  white-space: pre-line;
}
.hero-desc-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.65rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.det-series-box {
  position: relative;
  z-index: 2;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 175px;
  min-height: 11rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  border-top: 1px solid #24314a;
  padding-top: 0.7rem;
}
.det-seasons {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.det-episodes {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 120px;
  min-height: 7.5rem;
  max-height: 250px;
  max-height: 16rem;
  max-height: 36vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.5rem;
}
.ep-btn {
  background: #141c2e;
  border: 1.5px solid #273550;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  min-height: 48px;
  min-height: 3.1rem;
  text-align: left;
  color: #fff;
  cursor: pointer;
}
.ep-btn strong { display: block; font-size: 0.82rem; }
.ep-btn small { color: #91a0ba; font-size: 0.7rem; }

/* Sports Modal */
.sports-day-bar, .sports-cat-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 0.4rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}
/* DAL IBOX Guia de Esportes & Jogos do Dia */
.chip-btn {
  background: #141d2f;
  border: 1.5px solid #283652;
  color: #b8c4da;
  border-radius: 999px;
  padding: 0.36rem 0.82rem;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.chip-btn.is-active {
  background: #ed2d4d;
  border-color: #ff5470;
  color: #fff;
}

.modal-sports-ibox {
  width: 94%;
  width: 94vw;
  max-width: 78rem;
  height: 89%;
  height: 89vh;
  padding: 1rem 1.35rem;
  background: linear-gradient(180deg, #0d1322 0%, #090d17 100%);
}

.sports-ibox-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.sports-ibox-title-wrap {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
}

.sports-ibox-titles {
  min-width: 0;
}
.sports-ibox-titles h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.sports-guide-sub {
  margin: 0.16rem 0 0;
  font-size: 0.74rem;
  color: #96a6c2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sports-ibox-controls {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.42rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.sports-ibox-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 1rem;
}

.sports-ibox-sidebar {
  width: 15.6rem;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 15.6rem;
  flex: 0 0 15.6rem;
  background: rgba(14, 20, 33, 0.96);
  border: 1px solid #24324c;
  border-radius: 12px;
  padding: 0.55rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
  overflow-y: auto;
}

.sport-tab-btn {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.45rem;
  background: transparent;
  border: 1.5px solid transparent;
  border-left: 3.5px solid transparent;
  border-radius: 8px;
  padding: 0.52rem 0.62rem;
  color: #c2cee3;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.sport-tab-btn.is-selected {
  background: rgba(237, 45, 77, 0.16);
  border-color: rgba(237, 45, 77, 0.4);
  border-left-color: #ed2d4d;
  color: #ffffff;
}
.sport-tab-btn.is-focused {
  background: rgba(255, 54, 88, 0.28);
  color: #ffffff;
}
.sport-tab-btn.is-selected.is-focused {
  background: rgba(237, 45, 77, 0.4);
  border-left-color: #ffffff !important;
}
.sport-tab-label {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sport-tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  color: #95a4be;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
}
.sport-tab-btn.is-selected .sport-tab-count {
  background: rgba(237, 45, 77, 0.32);
  color: #ffffff;
}

.sports-ibox-main {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.sports-ibox-list {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.48rem;
  padding-right: 0.2rem;
}

.ibox-sport-row {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.95rem;
  background: linear-gradient(90deg, #121a2c 0%, #0f1626 100%);
  border: 1.5px solid #24324e;
  border-radius: 11px;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.ibox-sport-row.is-live {
  border-color: rgba(220, 38, 38, 0.62);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.16) 0%, #121a2c 42%, #0f1626 100%);
}
.ibox-sport-row.is-upcoming {
  border-color: rgba(37, 99, 235, 0.48);
}
.ibox-sport-row.is-focused {
  background: linear-gradient(90deg, rgba(237, 45, 77, 0.22) 0%, #172238 100%);
}

.ibox-sport-badge {
  width: 7.4rem;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 7.4rem;
  flex: 0 0 7.4rem;
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  text-align: center;
  background: #172237;
  border: 1px solid #2b3b5c;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.ibox-sport-badge.badge-live {
  background: #dc2626;
  border-color: #f87171;
  color: #ffffff;
}
.ibox-sport-badge.badge-upcoming {
  background: rgba(29, 78, 216, 0.36);
  border-color: #3b82f6;
  color: #dbeafe;
}
.ibox-sport-badge.badge-post {
  background: rgba(30, 41, 59, 0.72);
  border-color: #334155;
  color: #cbd5e1;
}
.ibox-sport-badge strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
}
.ibox-sport-badge small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ibox-sport-center {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.22rem;
}
.ibox-sport-meta {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ibox-sport-matchup {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ibox-sport-cta {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  background: #dc2626;
  border: 1px solid #ff5c77;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ibox-sport-row.is-focused .ibox-sport-cta {
  background: #ff2e50;
  border-color: #ffffff;
}

/* Subtitles Modal */
.sub-controls-bar {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.5rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.sub-offset-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffd43b;
  padding: 0.25rem 0.6rem;
  background: rgba(245, 159, 0, 0.15);
  border-radius: 6px;
}
.sub-results {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.42rem;
}
.sub-item-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  background: #141d2f;
  border: 1.5px solid #273550;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.sub-item-btn small { color: #95a4be; display: block; font-size: 0.72rem; }

/* Settings Modal */
.settings-list {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
}
.setting-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 1rem;
  background: #141c2e;
  border: 1px solid #25334d;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.setting-item strong { display: block; font-size: 0.88rem; }
.setting-item small { color: #91a0ba; font-size: 0.74rem; }
.setting-btns { display: -webkit-box; display: -webkit-flex; display: flex; gap: 0.45rem; }

/* PIN Pad */
.pin-dots {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  font-weight: 800;
  margin: 0.5rem 0 0.9rem;
  color: #ff5c77;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

/* TV Remote On-Screen Keyboard */
.modal-osk-card {
  width: 84%;
  width: 84vw;
  max-width: 56rem;
}
.osk-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 0.55rem;
}
.osk-head strong {
  display: block;
  font-size: 1.1rem;
}
.osk-head-btns {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.45rem;
}
.osk-preview {
  width: 100%;
  min-height: 2.75rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  background: #080c15;
  border: 1.5px solid #ed2d4d;
  border-radius: 9px;
  padding: 0.58rem 0.9rem;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  overflow: hidden;
  white-space: pre;
}
.osk-preview-text.is-placeholder {
  color: #6f7f9b;
  font-weight: 500;
}
.osk-cursor {
  display: inline-block;
  color: #ff4d6a;
  font-weight: 900;
  margin-left: 1px;
  -webkit-animation: oskBlink 1s steps(2, start) infinite;
  animation: oskBlink 1s steps(2, start) infinite;
}
@-webkit-keyframes oskBlink {
  to { visibility: hidden; }
}
@keyframes oskBlink {
  to { visibility: hidden; }
}
.osk-keys {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.38rem;
  margin-bottom: 0.52rem;
}
.osk-key {
  grid-column: span 1;
  background: #162034;
  border: 1.5px solid #2b3956;
  border-radius: 7px;
  padding: 0.54rem 0.2rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.osk-key.is-active {
  background: rgba(237, 45, 77, 0.24);
  border-color: #ff4d6a;
}
.osk-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 0.45rem;
}
.osk-action-btn {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  background: #141d30;
  border: 1.5px solid #2b3956;
  border-radius: 8px;
  padding: 0.58rem 0.65rem;
  color: #e6edf8;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.osk-action-btn.is-active {
  background: rgba(237, 45, 77, 0.24);
  border-color: #ed2d4d;
  color: #fff;
}
.osk-action-btn.btn-primary {
  -webkit-box-flex: 1.5;
  -webkit-flex: 1.5;
  flex: 1.5;
  background: #ed2d4d;
  border-color: #ff4d6a;
  color: #fff;
}
.osk-shortcuts-hint {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.48rem;
  font-size: 0.72rem;
  color: #8b99b3;
}

/* Direct Channel Number Zapping Badge */
.msx-zap-badge {
  position: fixed;
  top: 1.4rem;
  right: 2.2rem;
  z-index: 975;
  background: rgba(11, 16, 27, 0.95);
  border: 2px solid #ff3658;
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}
.msx-zap-badge small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #a9b6cd;
  letter-spacing: 0;
  margin-top: 0.12rem;
}

/* Toast */
.msx-toast {
  position: fixed;
  bottom: 2.6rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 100;
  background: #161f33;
  border: 1.5px solid #ed2d4d;
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 35px rgba(0,0,0,0.65);
}
html.msx-v-full .msx-toast {
  top: 4.8rem;
  right: 2.2rem;
  bottom: auto;
  left: auto;
  -webkit-transform: none;
  transform: none;
  max-width: calc(100vw - 4.4rem);
}
@media (max-width: 900px) {
  html.msx-v-full .msx-toast {
    left: 50%;
    right: auto;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

/* Flexbox Fallbacks for older Tizen 2.3–4 & webOS 3/4 without CSS Grid */
.no-grid .home-cards-grid,
.no-grid .catalog-items.is-grid,
.no-grid .sports-grid,
.no-grid .det-episodes,
.no-grid .osk-keys,
.no-grid .pin-pad {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0;
}
.no-grid .catalog-items.is-grid,
.no-grid .det-episodes {
  -webkit-align-content: flex-start;
  align-content: flex-start;
}
.no-grid .home-cards-grid > * { width: 24%; margin: 0 1% 0.7rem 0; }
.no-grid .continue-grid { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 0; }
.no-grid .continue-grid > * { width: 24%; margin: 0 1% 0.5rem 0; }
.no-grid .catalog-items.is-grid > * { width: 15.6%; height: auto; margin: 0 1% 0.6rem 0; }
.no-grid .sports-grid > * { width: 32%; margin: 0 1% 0.6rem 0; }
.no-grid .det-episodes > * { width: 48.5%; margin: 0 1% 0.5rem 0; }
.no-grid .osk-keys > * { width: 9.2%; margin: 0 0.7% 0.38rem 0; }
.no-grid .pin-pad > * { width: 31%; margin: 0 2% 0.5rem 0; }

/* Mobile & Portrait Tablet Responsive Layout (leaves >= 901px TV layouts untouched) */
@media (max-width: 900px), (orientation: portrait) {
  #msx-stage {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #msx-shell {
    padding: 0.75rem 1rem;
    min-height: 100%;
    height: auto;
  }
  .topbar {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: auto;
    margin-bottom: 0.65rem;
  }
  .topbar-left, .topbar-right {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .topbar-left > * { margin-right: 0.35rem; }
  .topbar-right > * { margin-left: 0; }
  .top-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }
  .conn-badge {
    max-width: 11rem;
  }
  .home-top-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 0.75rem;
  }
  .home-heading {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    max-width: none;
    padding-right: 0;
  }
  .home-cards-grid,
  .continue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .remote-legend {
    display: none;
  }
  .login-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    overflow-y: auto;
  }
  .login-info-col {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding-right: 0;
  }
  .login-info-col h1 {
    font-size: 1.65rem;
    margin-bottom: 0.45rem;
  }
  .lead-copy {
    font-size: 0.84rem;
    margin-bottom: 0.75rem;
  }
  .login-form-col.login-card {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 1.15rem;
  }
  .login-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  .msx-footer {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.72rem;
    margin-top: 0.65rem;
  }
  .catalog-layout {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 0.6rem;
    overflow: hidden;
  }
  .cat-sidebar {
    width: 10.5rem;
    width: clamp(134px, 35vw, 170px);
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 10.5rem;
    flex: 0 0 10.5rem;
    -webkit-flex: 0 0 clamp(134px, 35vw, 170px);
    flex: 0 0 clamp(134px, 35vw, 170px);
    max-height: 100%;
    min-width: 0;
    padding: 0.55rem;
  }
  .cat-row-btn {
    padding: 0.42rem 0.48rem;
    font-size: 0.74rem;
    white-space: normal;
  }
  .cat-row-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
    word-break: break-word;
  }
  .cat-toolbar {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .catalog-body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.6rem;
  }
  .live-preview-panel {
    width: 100%;
    max-width: 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-order: -1;
    order: -1;
  }
  .catalog-items {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .catalog-items.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .modal-sports-ibox {
    width: 96%;
    width: 96vw;
    max-width: calc(100vw - 1rem);
    height: 92%;
    height: 92vh;
    padding: 0.75rem 0.85rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .sports-ibox-header {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 0.6rem;
  }
  .sports-ibox-title-wrap {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    gap: 0.65rem;
  }
  #btn-sports-back {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .sports-ibox-titles {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sports-ibox-titles h2 {
    font-size: 1.05rem;
  }
  .sports-guide-sub {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .sports-ibox-controls,
  #sports-day-bar {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    gap: 0.35rem;
    -webkit-flex-shrink: 1;
    flex-shrink: 1;
  }
  .sports-ibox-body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
  }
  .sports-ibox-sidebar {
    width: 100%;
    max-width: 100%;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.4rem;
    gap: 0.35rem;
  }
  .sport-tab-btn {
    width: auto;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    font-size: 0.74rem;
  }
  .sports-ibox-main,
  .sports-ibox-list {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }
  .ibox-sport-row {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ibox-sport-badge {
    width: auto;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-width: 5.5rem;
  }
  .ibox-sport-center {
    min-width: 10rem;
    -webkit-flex: 1 1 10rem;
    flex: 1 1 10rem;
  }
  .ibox-sport-meta,
  .ibox-sport-matchup {
    white-space: normal;
  }
  .ibox-sport-cta {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin-left: auto;
  }
}

/* Native MSX portrait sets viewport width=1280 scaled ~0.35-0.45x on phones/tablets */
@media (orientation: portrait) and (min-width: 901px) {
  html {
    font-size: 26px;
  }
}


/* ---------- Legacy Smart TV Flexbox Gap Fallbacks (Chromium < 84: LG webOS 1-5, Tizen 2.3-5.5, Opera/VEWD, old Android) ---------- */
.no-flex-gap .login-grid > * + * { margin-left: 2.4rem; }
.no-flex-gap .device-codes > * + * { margin-left: 1.6rem; }
.no-flex-gap .saved-lists-items > * + * { margin-top: 0.42rem; }
.no-flex-gap .saved-list-row > * + * { margin-left: 0.5rem; }
.no-flex-gap .pass-field-row > * + * { margin-left: 0.55rem; }
.no-flex-gap .hero-badges > * { margin-right: 0.45rem; margin-bottom: 0.25rem; }
.no-flex-gap .hero-actions > * + * { margin-left: 0.55rem; }
.no-flex-gap .home-quick-strip > * { margin-right: 0.55rem; margin-bottom: 0.35rem; }
.no-flex-gap .continue-rail > * + * { margin-left: 0.6rem; }
.no-flex-gap .catalog-layout > * + * { margin-left: 1rem; }
.no-flex-gap .cat-list > * + * { margin-top: 0.32rem; }
.no-flex-gap .cat-row-btn > * + * { margin-left: 0.4rem; }
.no-flex-gap .cat-pager-bar > * + * { margin-left: 0.35rem; }
.no-flex-gap .cat-toolbar > * + * { margin-left: 0.6rem; }
.no-flex-gap .search-trigger > * + * { margin-left: 0.5rem; }
.no-flex-gap .catalog-body > * + * { margin-left: 0.9rem; }
.no-flex-gap .catalog-items.is-list > * + * { margin-top: 0.38rem; }
.no-flex-gap .channel-row > * + * { margin-left: 0.65rem; }
.no-flex-gap .live-preview-head > * + * { margin-left: 0.5rem; }
.no-flex-gap .live-preview-btns > * + * { margin-left: 0.45rem; }
.no-flex-gap .osd-top > * + * { margin-left: 1rem; }
.no-flex-gap .osd-title-line > * + * { margin-left: 0.6rem; }
.no-flex-gap .osd-drawer-list > * + * { margin-top: 0.32rem; }
.no-flex-gap .osd-bottom > * + * { margin-top: 0.7rem; }
.no-flex-gap .osd-seek-wrap > * + * { margin-left: 0.75rem; }
.no-flex-gap .osd-controls-row > * { margin-right: 0.75rem; margin-bottom: 0.3rem; }
.no-flex-gap .osd-transport > *,
.no-flex-gap .osd-tools > * { margin-right: 0.45rem; margin-bottom: 0.3rem; }
.no-flex-gap .modal-header > * + * { margin-left: 1rem; }
.no-flex-gap .det-top > * + * { margin-left: 1.3rem; }
.no-flex-gap .det-chips > * { margin-right: 0.45rem; margin-bottom: 0.25rem; }
.no-flex-gap .det-actions > * { margin-right: 0.55rem; margin-bottom: 0.3rem; }
.no-flex-gap .hero-desc-body > * + * { margin-left: 1.35rem; }
.no-flex-gap .hero-desc-actions > * { margin-right: 0.65rem; margin-bottom: 0.3rem; }
.no-flex-gap .det-seasons > * + * { margin-left: 0.45rem; }
.no-flex-gap .sports-day-bar > *,
.no-flex-gap .sports-cat-bar > * { margin-right: 0.4rem; margin-bottom: 0.25rem; }
.no-flex-gap .sports-ibox-header > * + * { margin-left: 1rem; }
.no-flex-gap .sports-ibox-title-wrap > * + * { margin-left: 0.85rem; }
.no-flex-gap .sports-ibox-controls > * + * { margin-left: 0.42rem; }
.no-flex-gap .sports-ibox-body > * + * { margin-left: 1rem; }
.no-flex-gap .sports-ibox-sidebar > * + * { margin-top: 0.3rem; }
.no-flex-gap .sport-tab-btn > * + * { margin-left: 0.45rem; }
.no-flex-gap .sports-ibox-list > * + * { margin-top: 0.48rem; }
.no-flex-gap .ibox-sport-row > * + * { margin-left: 0.95rem; }
.no-flex-gap .ibox-sport-center > * + * { margin-top: 0.22rem; }
.no-flex-gap .sub-controls-bar > * { margin-right: 0.5rem; margin-bottom: 0.3rem; }
.no-flex-gap .sub-results > * + * { margin-top: 0.42rem; }
.no-flex-gap .settings-list > * + * { margin-top: 0.65rem; }
.no-flex-gap .setting-item > * + * { margin-left: 1rem; }
.no-flex-gap .setting-btns > * + * { margin-left: 0.45rem; }
.no-flex-gap .osk-head-btns > * + * { margin-left: 0.45rem; }
.no-flex-gap .osk-actions > * + * { margin-left: 0.45rem; }
.no-flex-gap .osk-shortcuts-hint > * + * { margin-left: 1rem; }
.no-flex-gap .osd-vc-row > * { margin-right: 0.42rem; margin-bottom: 0.35rem; }

@media (max-width: 900px), (orientation: portrait) {
  .no-flex-gap .login-grid > * + * { margin-left: 0; margin-top: 1rem; }
  .no-flex-gap .catalog-layout > * + * { margin-left: 0.6rem; margin-top: 0; }
}

/* ---------- Ultra-Legacy WebKit (NetCast / Orsay / webOS 1 without flex-wrap) Inline-Block Grid Fallback ---------- */
.legacy-box .home-cards-grid,
.legacy-box .continue-grid,
.legacy-box .catalog-items.is-grid,
.legacy-box .sports-grid,
.legacy-box .det-episodes,
.legacy-box .osk-keys,
.legacy-box .pin-pad {
  display: block !important;
  font-size: 0;
}
.legacy-box .det-episodes {
  overflow-y: auto;
}
.legacy-box .home-cards-grid > *,
.legacy-box .continue-grid > *,
.legacy-box .catalog-items.is-grid > *,
.legacy-box .sports-grid > *,
.legacy-box .det-episodes > *,
.legacy-box .osk-keys > *,
.legacy-box .pin-pad > * {
  display: inline-block;
  vertical-align: top;
  font-size: 0.95rem;
}
.legacy-box .home-cards-grid > *,
.legacy-box .continue-grid > * { width: 24%; margin: 0 1% 0.7rem 0; }
.legacy-box .catalog-items.is-grid > * { width: 15.6%; height: auto; margin: 0 1% 0.6rem 0; }
.legacy-box .sports-grid > * { width: 32%; margin: 0 1% 0.6rem 0; }
.legacy-box .det-episodes > * { width: 48.5%; margin: 0 1% 0.5rem 0; }
.legacy-box .osk-keys > * { width: 9.2%; margin: 0 0.7% 0.38rem 0; font-size: 0.9rem; }
.legacy-box .pin-pad > * { width: 31%; margin: 0 2% 0.5rem 0; }
.device-pair-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 0.85rem; }
.device-pair-meta { -webkit-flex: 1; flex: 1; min-width: 0; }
.msx-device-qr { width: 5.2rem; height: 5.2rem; border-radius: 9px; background: #fff; padding: 0.25rem; display: block; -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.msx-trial-badge { display: inline-block; margin-top: 0.42rem; padding: 0.16rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: #7ef0be; background: rgba(16, 185, 129, 0.16); border: 1px solid rgba(52, 211, 153, 0.42); }
.msx-login-modes, .msx-other-modes { display: -webkit-flex; display: flex; gap: 0.45rem; margin-bottom: 0.65rem; }
.msx-mode-btn, .msx-mode-chip { -webkit-flex: 1; flex: 1; padding: 0.46rem 0.55rem; border-radius: 8px; border: 1.5px solid #2b3852; background: #101727; color: #c7d2e5; font-size: 0.76rem; font-weight: 700; cursor: pointer; text-align: center; white-space: nowrap; }
.msx-mode-btn-others { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 0.46rem 0.6rem; }
.msx-mode-btn.is-active, .msx-mode-chip.is-active { background: #e11d48; border-color: #ff6078; color: #fff; }

/* ---------- Inline SVG Icon System & Status Dots (1.2.0) ---------- */
.msx-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  min-width: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.36em;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  pointer-events: none;
}

.msx-ico-right {
  margin-right: 0;
  margin-left: 0.36em;
}

.msx-ico-only {
  margin-right: 0;
  margin-left: 0;
}

.msx-ico-lg {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  margin-right: 0;
  margin-left: 0;
}

.msx-ico-slot {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  vertical-align: middle;
}

.top-btn,
.pill-btn,
.btn-back-pill,
.cat-search-btn,
.cat-scroll-btn,
.hero-rating-chip,
.ibox-sport-cta,
.msx-mode-btn,
.roku-menu-card strong,
.diag-banner strong {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.cat-search-btn {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}

.osd-live-pill {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.status-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  min-width: 0.48rem;
  border-radius: 50%;
  background: #64748b;
  margin-right: 0.38rem;
  vertical-align: middle;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.status-dot.is-connected {
  background: #38d9a9;
  box-shadow: 0 0 6px rgba(56, 217, 169, 0.7);
}

.status-dot-live {
  width: 0.44rem;
  height: 0.44rem;
  min-width: 0.44rem;
  background: #ffffff;
  margin-right: 0.32rem;
}

.cat-row-ico {
  width: 0.95rem;
  height: 0.95rem;
  min-width: 0.95rem;
  margin-right: 0.08rem;
  color: #9eb0cc;
}

.cat-row-btn.is-selected .cat-row-ico,
.cat-row-btn.is-focused .cat-row-ico {
  color: #ffffff;
}

.cat-row-lock {
  width: 0.82rem;
  height: 0.82rem;
  min-width: 0.82rem;
  margin-right: 0;
  color: #ff859a;
}

.ch-row-fav {
  width: 0.9rem;
  height: 0.9rem;
  min-width: 0.9rem;
  margin-right: 0;
  color: #ffd43b;
}

.poster-star-ico {
  width: 0.72rem;
  height: 0.72rem;
  min-width: 0.72rem;
  margin-right: 0.18rem;
  color: #ffd43b;
  vertical-align: -0.1em;
}

.poster-fav-svg {
  width: 0.72rem;
  height: 0.72rem;
  min-width: 0.72rem;
  margin-right: 0;
  color: #ffffff;
  vertical-align: -0.1em;
}

.poster-badge,
.poster-fav {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.poster-art-fallback .msx-ico {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  margin-right: 0;
}

.live-preview-placeholder .msx-ico {
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  margin-right: 0;
  margin-bottom: 0.35rem;
  color: #6e7f9e;
}

.legacy-box .msx-ico,
.legacy-box .status-dot {
  vertical-align: middle;
}

.legacy-box .top-btn,
.legacy-box .pill-btn,
.legacy-box .btn,
.legacy-box .roku-menu-card strong,
.legacy-box .hero-rating-chip,
.legacy-box .ibox-sport-cta {
  display: inline-block;
}

@media (max-width: 520px) {
  .cat-sidebar {
    width: 146px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 146px;
    flex: 0 0 146px;
    padding: 0.45rem;
  }
  .cat-row-btn {
    padding: 0.38rem 0.42rem;
    gap: 0.25rem;
    font-size: 0.72rem;
  }
  .cat-row-ico {
    display: none;
  }
  .cat-row-name {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: normal;
  }
  .catalog-page-controls,
  #cat-pager {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .catalog-page-controls .btn,
  #cat-pager button {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }
  .catalog-page-controls .page-indicator,
  #cat-pager .page-indicator {
    font-size: 0.7rem;
  }
}

/* ---------- Favorite Brazilian Team Home Widget, Tab & 30-Min Alert (MSX) ---------- */
.fav-team-home-wrap {
  margin-bottom: 0.65rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.fav-team-home-card {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(98, 128, 176, 0.48);
  background: linear-gradient(145deg, rgba(26, 38, 62, 0.78) 0%, rgba(16, 24, 42, 0.86) 100%);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}
.fav-team-home-card.is-live {
  border-color: rgba(237, 45, 77, 0.72);
  background: linear-gradient(145deg, rgba(48, 16, 28, 0.92) 0%, #0e1422 100%);
}
.fav-team-home-crest {
  width: 2.3rem;
  height: 2.3rem;
  min-width: 2.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  overflow: hidden;
}
.fav-team-home-crest img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}
.fav-team-home-copy {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 0.14rem;
}
.fav-team-home-copy strong {
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-team-home-copy small {
  font-size: 0.74rem;
  color: #9cb0cc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-team-home-meta {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.45rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.fav-team-notify-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
}
.fav-team-cta {
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  background: rgba(30, 44, 70, 0.88);
  border: 1px solid rgba(116, 146, 196, 0.55);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}
@media (max-height: 760px) {
  .view-section {
    padding: 0.85rem 4% 0.55rem;
  }
  .topbar {
    min-height: 3.9rem;
    padding: 0.5rem 4%;
    margin-bottom: 0;
  }
  html.msx-view-home .topbar {
    min-height: 3.4rem;
    padding: 0.6rem 4% 0;
  }
  .home-top-row {
    gap: 1.15rem;
    margin-bottom: 0.72rem;
  }
  .home-heading h1 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    margin: 0.25rem 0 0.25rem;
  }
  .hero-showcase {
    min-height: 8.6rem;
    max-height: 10.8rem;
    padding: 0.72rem 0.95rem;
    margin-bottom: 0;
  }
  .hero-poster-wrap {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 4.9rem;
    flex: 0 0 4.9rem;
    width: 4.9rem;
    height: 7.2rem;
    margin-right: 0.88rem;
  }
  .hero-title {
    font-size: 1.28rem;
    margin-bottom: 0.14rem;
  }
  .hero-plot {
    margin-bottom: 0.45rem;
    font-size: 0.76rem;
  }
  .home-cards-grid {
    gap: 0.85rem;
    margin-bottom: 0.68rem;
  }
  .roku-menu-card {
    min-height: 7.5rem;
    padding: 0.88rem 1.05rem;
  }
  .roku-menu-card .menu-icon {
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.55rem;
  }
  .roku-menu-card .menu-icon img {
    width: 1.18rem;
    height: 1.18rem;
  }
  .roku-menu-card .card-idx {
    top: 1rem;
    right: 0.9rem;
  }
  .roku-menu-card strong {
    font-size: 1.24rem;
    margin: 0;
  }
  .home-quick-strip {
    gap: 0.72rem;
    margin-bottom: 0.58rem;
  }
  .home-quick-strip .pill-btn {
    padding: 0.44rem 0.85rem;
    font-size: 0.8rem;
    min-height: 2.3rem;
  }
  .fav-team-home-wrap {
    margin-bottom: 0.48rem;
  }
  .fav-team-home-card {
    padding: 0.56rem 0.95rem;
  }
  .fav-team-home-crest {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
  }
  .feature-strip {
    padding: 0.48rem 0 0.05rem;
  }
  .msx-footer {
    padding: 0.52rem 4.2%;
  }
  .continue-wrap {
    margin-top: 0.25rem;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
  }
  .continue-wrap .section-heading h2 {
    font-size: 0.96rem;
    margin: 0.1rem 0 0.42rem;
  }
  .continue-grid {
    gap: 0.72rem;
  }
  .continue-card-art {
    height: 4.1rem;
  }
  .continue-card-body {
    padding: 0.36rem 0.58rem 0.32rem;
  }
  .continue-card strong {
    font-size: 0.76rem;
  }
  .continue-card-kind {
    font-size: 0.64rem;
  }
}
.sports-fav-panel {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.fav-team-header-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: #10192b;
  border: 1px solid #283a5c;
}
.fav-team-header-id {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.65rem;
}
.fav-team-header-id img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: contain;
}
.fav-team-header-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.42rem;
}
.fav-team-sec-title {
  margin: 0.65rem 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fbbf24;
}
.fav-team-picker-filter {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.65rem;
}
.fav-team-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.fav-team-pick-card {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1.5px solid #253451;
  background: #0f1728;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
}
.fav-team-pick-card.is-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}
.fav-team-pick-card img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.fav-team-pick-meta {
  min-width: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}
.fav-team-pick-meta strong {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-team-pick-meta small {
  font-size: 0.66rem;
  color: #93a6c3;
}
.fav-team-toast {
  position: fixed;
  top: 3.3rem;
  right: 1rem;
  z-index: 950;
  max-width: 24rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(13, 21, 38, 0.97);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  color: #fff;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 0.65rem;
}
.fav-team-toast.is-hidden {
  display: none !important;
}

.osd-video-control {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 960;
  width: min(50rem, calc(100vw - 2rem));
  padding: 0.78rem 0.95rem;
  border-radius: 14px;
  background: rgba(11, 17, 29, 0.92);
  border: 1.5px solid #3c5074;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  color: #f8fafc;
}
.osd-video-control.is-hidden {
  display: none !important;
}
.osd-vc-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.osd-vc-head strong { font-size: 0.85rem; color: #fff; }
.osd-vc-readout { font-size: 0.75rem; color: #93c5fd; font-weight: 700; }
.osd-vc-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.42rem;
}
.no-grid .fav-team-picker-grid,
.legacy-box .fav-team-picker-grid {
  display: block;
  font-size: 0;
}
.no-grid .fav-team-pick-card,
.legacy-box .fav-team-pick-card {
  display: inline-flex;
  vertical-align: top;
  width: 32%;
  margin: 0 1% 0.5rem 0;
  font-size: 0.78rem;
}
@media (max-width: 1120px) {
  .cat-sidebar { width: 13rem; min-width: 12rem; }
  .live-preview-panel { width: 18rem; min-width: 16.5rem; }
}
@media (max-width: 720px) {
  .fav-team-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html.msx-v-full.msx-osd-hidden, html.msx-v-full.msx-osd-hidden * { cursor: none !important; }
.sport-tab-btn { min-height: 2.35rem; box-sizing: border-box; }
#btn-sport-tab-fav .msx-ico-slot { width: 0.9rem; height: 0.9rem; margin-right: 0.3rem; -webkit-flex: 0 0 auto; flex: 0 0 auto; display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; }
.msx-sleep-badge { position: fixed; top: 1rem; left: 1.4rem; z-index: 970; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(15, 23, 42, 0.88); border: 1px solid #38bdf8; color: #e0f2fe; font-size: 0.74rem; font-weight: 700; pointer-events: none; }
html.msx-v-full:not(.msx-osd-hidden) .msx-sleep-badge { top: 4.5rem; }
.msx-sleep-badge.is-hidden { display: none !important; }
.msx-upnext-card { position: fixed; right: 1.5rem; bottom: 7.4rem; z-index: 965; width: 21rem; max-width: calc(100vw - 2rem); padding: 0.85rem 1rem; border-radius: 14px; background: rgba(12, 19, 34, 0.95); border: 1.5px solid #ed2d4d; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65); color: #fff; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; gap: 0.55rem; }
.msx-upnext-card.is-hidden { display: none !important; }
.msx-upnext-card strong { font-size: 0.88rem; }
.msx-upnext-actions { display: -webkit-flex; display: flex; gap: 0.5rem; }
.msx-upnext-actions .btn { -webkit-flex: 1; flex: 1; }

/* High-Retention Exit Modal (Roku Parity) */
.modal-exit-card { position: relative; max-width: 49rem; width: min(94vw, 49rem); padding: 1.6rem 1.75rem 1.3rem; border-radius: 18px; border: 1px solid rgba(220, 33, 69, 0.78); background: linear-gradient(180deg, #0e1526 0%, #0b101d 100%); overflow: hidden; }
.exit-top-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #ff2e54; }
.exit-head { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.85rem; }
.exit-logo { height: 2rem; width: auto; display: block; }
.exit-pill { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; background: #3b1222; color: #ff7089; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; }
.exit-title { margin: 0 0 0.35rem; font-size: 1.45rem; color: #fff; }
.exit-sub { margin: 0 0 1rem; font-size: 0.9rem; color: #94a3b8; }
.exit-card { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; gap: 1.1rem; padding: 0.85rem 1rem; border-radius: 14px; background: #131d31; border: 1px solid #2b3b58; margin-bottom: 1.1rem; }
.exit-poster-wrap { -webkit-flex: 0 0 5.1rem; flex: 0 0 5.1rem; width: 5.1rem; height: 7.3rem; border-radius: 8px; overflow: hidden; background: #1a253a; }
.exit-poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exit-card-body { -webkit-flex: 1; flex: 1; min-width: 0; }
.exit-card-badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: #591529; color: #ffd0da; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.45rem; }
.exit-card-badge.is-highlight { background: #3b2a12; color: #ffd875; }
.exit-card-badge.is-stay { background: #1e293b; color: #cbd5e1; }
.exit-card-body strong { display: block; font-size: 1.12rem; color: #fff; margin-bottom: 0.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exit-card-body p { margin: 0; font-size: 0.84rem; color: #cbd5e1; }
.exit-prog-track { margin-top: 0.6rem; height: 6px; border-radius: 999px; background: #243147; overflow: hidden; }
.exit-prog-fill { height: 100%; width: 0%; background: #ff2e54; border-radius: 999px; }
.exit-actions { display: -webkit-flex; display: flex; gap: 0.75rem; }
.exit-actions .btn { -webkit-flex: 1; flex: 1; min-height: 2.9rem; }
.exit-actions .btn-exit-quit { -webkit-flex: 0 0 auto; flex: 0 0 auto; color: #94a3b8; }
.exit-hint { margin: 0.85rem 0 0; text-align: center; font-size: 0.76rem; color: #7e8da6; }

/* Wave 28: Layout Containment, Scroll Isolation & Reduced Motion Polish */
@supports (contain: layout style) {
  .poster-card,
  .channel-row,
  .cat-row-btn,
  .roku-menu-card,
  .continue-chip,
  .fav-team-pick-card {
    contain: layout style;
  }
}

.cat-list,
.catalog-items,
.osd-drawer-list,
.det-episodes,
.hero-desc-plot,
.preview-epg-box,
.saved-lists-panel,
.sports-fav-panel {
  overscroll-behavior: contain;
}

.btn,
.top-btn,
.pill-btn,
.cat-row-btn,
.channel-row,
.poster-card,
.roku-menu-card {
  transition: border-color 120ms ease, background-color 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .hud-spinner,
  .osk-cursor,
  .dal-marquee-track,
  .boot-bar,
  .boot-glow,
  .boot-logo-wrap,
  .boot-beam,
  .boot-rail-trail,
  .boot-rail-bar,
  .boot-rail-core,
  .boot-dots span {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .btn,
  .top-btn,
  .pill-btn,
  .cat-row-btn,
  .channel-row,
  .poster-card,
  .roku-menu-card {
    transition: none !important;
  }
}
