:root {
  color-scheme: dark;
  --bg: #0c0d12;
  --bg-elevated: #14161f;
  --bg-card: #1a1d29;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #7b5bf5;
  --accent-hover: #8f72ff;
  --rail-w: 84px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input {
  font-family: inherit;
  color: inherit;
}

/* --- BOOT SPLASH --- */
body.is-booting .app-shell {
  opacity: 0;
  pointer-events: none;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #171828 0%, #0c0d12 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.app-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-logo {
  width: clamp(136px, 24vw, 180px);
  height: clamp(136px, 24vw, 180px);
  filter: drop-shadow(0 16px 40px rgba(123, 91, 245, 0.35));
  animation: splashPulse 2.4s ease-in-out infinite;
}

.app-splash-track {
  width: min(240px, 64vw);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.app-splash-bar {
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6240e5, #a48cff, #6240e5);
  animation: splashSlide 1.25s ease-in-out infinite;
}

.app-splash-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.app-splash-error-msg {
  color: var(--muted);
  font-size: 14px;
}

@keyframes splashSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* --- LAYOUT PRINCIPAL --- */
.app-shell {
  display: flex;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  transition: opacity 0.35s ease;
}

/* --- NAV RAIL (SIDEBAR PC / BOTTOM BAR MOVIL) --- */
.nav-rail {
  width: var(--rail-w);
  background: #090a0e;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  gap: 12px;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 30;
}

.app-shell.is-live-mode .nav-rail {
  display: none;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.nav-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-btn.is-active {
  background: rgba(123, 91, 245, 0.2);
  color: #ffffff;
}

/* --- MAIN AREA --- */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.topbar {
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 18, 0.92);
  flex-shrink: 0;
}

.app-shell.is-live-mode .topbar,
.app-shell.is-player-mode .topbar {
  display: none;
}

.brand-mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
}

.brand-mark span {
  color: var(--accent-soft, #8b7cff);
}

.search-box {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14px;
}

.topbar-status {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* --- VIEWS --- */
.view {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.view.is-active {
  display: block;
}

.view-live.is-active {
  display: flex;
  overflow: hidden;
}

.view-vod-player.is-active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- HERO STREMIO --- */
.hero {
  position: relative;
  min-height: 360px;
  padding: 40px 56px 36px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background-image 0.5s ease-in-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 13, 18, 0.96) 0%, rgba(12, 13, 18, 0.72) 52%, rgba(12, 13, 18, 0.22) 100%),
              linear-gradient(0deg, #0c0d12 0%, transparent 58%);
}

.hero-inner {
  position: relative;
  max-width: 620px;
  z-index: 2;
  animation: heroSlideIn 0.35s ease-out;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #c4b5fd;
  background: rgba(123, 91, 245, 0.25);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
}

.hero-pill.is-score {
  color: #fde047;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 18, 0.62);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.15s, transform 0.15s;
}

.hero:hover .hero-nav-btn {
  opacity: 1;
}

.hero-nav-btn:hover {
  background: rgba(123, 91, 245, 0.72);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-nav-prev { left: 12px; }
.hero-nav-next { right: 12px; }

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  position: relative;
  width: 14px;
  height: 5px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.25s ease, background 0.2s;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.is-active {
  width: 36px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-hover);
  border-radius: 999px;
  transform-origin: left center;
  animation: heroDotFill 6.5s linear forwards;
}

.hero:hover .hero-dot.is-active::after {
  animation-play-state: paused;
}

@keyframes heroDotFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary, .btn-back {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary, .btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-secondary:hover, .btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- BOARD ROWS (STREMIO CAROUSELS) --- */
.board-rows {
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.row-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.row-block-title {
  font-size: 18px;
  font-weight: 700;
}

.row-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.row-scroll::-webkit-scrollbar {
  height: 6px;
}

.row-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

/* --- POSTER CARD --- */
.poster-card {
  width: 158px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.poster-card:hover {
  transform: translateY(-4px);
}

.row-more-btn {
  width: 96px;
  aspect-ratio: 2 / 3;
  align-self: flex-start;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.row-more-btn span {
  font-size: 30px;
  line-height: 1;
  color: var(--accent-soft, #8b7cff);
}

.row-more-btn small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.row-more-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--accent-soft, #8b7cff);
  transform: translateY(-4px);
}

.row-more-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.poster-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.poster-card.is-channel .poster-img-wrap {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #141724;
}

.poster-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-card.is-channel .poster-img-wrap img {
  object-fit: contain;
}

.poster-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(12, 13, 18, 0.82);
  color: #fde047;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.poster-remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 13, 18, 0.85);
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.poster-remove-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.poster-remove-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(248, 113, 113, 0.7);
  color: #ffffff;
}

.poster-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* --- CATALOG GRID --- */
.catalog-header {
  padding: 20px 24px 10px;
}

.catalog-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.genre-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pill {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.poster-grid {
  padding: 14px 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.poster-grid .poster-card {
  width: 100%;
}

.catalog-footer {
  padding: 0 24px 36px;
  display: flex;
  justify-content: center;
}

/* --- DETAIL VIEW --- */
.view-detail {
  position: relative;
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.detail-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.detail-split {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  align-items: flex-start;
}

.detail-poster {
  width: 230px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.detail-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 10px;
}

.detail-genres {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-genres span {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-synopsis {
  font-size: 14px;
  line-height: 1.6;
  color: #e5e7eb;
  margin-bottom: 12px;
}

.detail-cast {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.episodes-section {
  margin-top: 32px;
}

.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.seasons-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.season-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.season-select:hover,
.season-select:focus {
  border-color: var(--accent);
  background: #202436;
}

.episodes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  max-height: min(46vh, 420px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.episodes-list::-webkit-scrollbar {
  width: 6px;
}

.episodes-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.episodes-list.has-names {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.episode-name {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.episode-name.is-overflow {
  text-overflow: clip;
}

.episode-name.is-overflow .ep-marquee-track {
  display: inline-block;
  will-change: transform;
  animation: epMarquee 7s ease-in-out infinite alternate;
}

@keyframes epMarquee {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(var(--marquee-dist, 0px)); }
}

.episode-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.episode-card > div {
  min-width: 0;
  flex: 1;
}

.episode-card:hover {
  background: rgba(123, 91, 245, 0.16);
  border-color: var(--accent);
}

.episode-num {
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
}

.episode-name {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- LIVE TV VIEW (HISENSE LEFT PANEL + PLAYER) --- */
.live-sidebar {
  width: 340px;
  background: #0e1017;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.live-sidebar.is-collapsed {
  display: none;
}

.live-sidebar-top {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.btn-home-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-home-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-home-pill:hover {
  background: rgba(123, 91, 245, 0.16);
  border-color: var(--accent);
  color: #fff;
}

.live-count {
  font-size: 12px;
  color: var(--muted);
}

.live-cat-wrap {
  padding: 10px 14px 2px;
}

.live-category-select {
  width: 100%;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.live-category-select:focus {
  border-color: var(--accent);
}

.live-source-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  margin-right: 8px;
}

.live-source-select:focus {
  border-color: var(--accent);
}

.live-search-wrap {
  padding: 10px 14px 6px;
}

.live-search-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}

.live-search-wrap input:focus {
  border-color: var(--accent);
}

.live-channels {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.live-channels::-webkit-scrollbar,
.view::-webkit-scrollbar,
.genre-pills::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.live-channels::-webkit-scrollbar-thumb,
.view::-webkit-scrollbar-thumb,
.genre-pills::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.live-channels::-webkit-scrollbar-track,
.view::-webkit-scrollbar-track,
.genre-pills::-webkit-scrollbar-track {
  background: transparent;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.12s;
}

.channel-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.channel-row.is-active {
  background: rgba(123, 91, 245, 0.25);
  border: 1px solid rgba(123, 91, 245, 0.55);
}

.channel-num {
  width: 28px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.channel-logo {
  width: 36px;
  height: 26px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.channel-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}

.live-stage-bar, .vod-player-bar {
  height: 52px;
  padding: 0 14px;
  background: #10121a;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.btn-toggle-list, .btn-icon {
  background: rgba(255, 255, 255, 0.09);
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.live-now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.live-now-playing span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.live-arrows {
  display: flex;
  gap: 6px;
}

.vod-player-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-player-title.is-overflow {
  text-overflow: clip;
}

.vod-player-title.is-overflow .ep-marquee-track {
  display: inline-block;
  will-change: transform;
  animation: epMarquee 7s ease-in-out infinite alternate;
}

.video-box {
  position: relative;
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.video-box video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  background: #000;
}

.btn-report-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-report-pill:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.report-card {
  width: 100%;
  max-width: 360px;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.report-target {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.report-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.report-chip:hover {
  background: rgba(123, 91, 245, 0.22);
  border-color: var(--accent);
}

.report-note {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.report-feedback {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
  text-align: center;
}

.video-overlay-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 180px;
  max-width: min(86%, 460px);
  background: transparent;
  padding: 12px 18px;
  border-radius: 16px;
  pointer-events: none;
  z-index: 6;
}

.video-overlay-msg.is-error {
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(24, 12, 14, 0.92);
  backdrop-filter: blur(8px);
  padding: 20px 26px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
}

.video-overlay-spinner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: #7c6cf0;
  animation: cvx-spin 0.8s linear infinite;
}

@keyframes cvx-spin {
  to { transform: rotate(360deg); }
}

.video-overlay-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.video-overlay-msg.is-error .video-overlay-title {
  color: #fca5a5;
}

.video-overlay-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.btn-fullscreen-float {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 13, 18, 0.72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.12s;
}

.btn-fullscreen-float:hover {
  background: rgba(123, 91, 245, 0.9);
  transform: scale(1.06);
}

.btn-fullscreen-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.live-dial-overlay {
  position: absolute;
  top: 20px;
  right: 24px;
  min-width: 74px;
  padding: 8px 18px;
  border-radius: 12px;
  background: rgba(12, 13, 18, 0.85);
  border: 1px solid rgba(123, 91, 245, 0.7);
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  z-index: 12;
  pointer-events: none;
}

/* --- SETTINGS VIEW --- */
.settings-wrap {
  padding: 24px;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.settings-card h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.settings-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: #a7f3d0;
}

.diag-pre {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #090a0e;
  border: 1px solid var(--border);
  font-size: 12px;
  color: #d1d5db;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* --- RESPONSIVO CELULAR --- */
@media (max-width: 820px) {
  .app-shell {
    flex-direction: column-reverse;
  }

  .nav-rail {
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 4px 6px;
    border-right: 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .nav-items {
    flex-direction: row;
    justify-content: space-between;
    gap: 2px;
  }

  .nav-btn {
    flex: 1;
    min-width: 58px;
    padding: 6px 2px;
    font-size: 10px;
  }

  .topbar {
    padding: 0 12px;
    height: 54px;
  }

  .topbar-status {
    display: none;
  }

  .hero {
    min-height: 240px;
    padding: 20px 16px;
  }

  .board-rows {
    padding: 16px 14px 28px;
  }

  .poster-card {
    width: 126px;
  }

  .poster-grid {
    padding: 12px 14px 24px;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
  }

  .detail-split {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .detail-poster {
    width: 165px;
  }

  .detail-genres, .detail-actions {
    justify-content: center;
  }

  /* En celular vertical: video arriba, lista de canales abajo */
  .view-live.is-active {
    flex-direction: column-reverse;
  }

  .live-stage {
    flex: none;
    height: 42dvh;
  }

  .live-sidebar {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
  }
}

/* --- AJUSTES GLOBALES Y VISTA PREVIA DE SUBTÍTULOS --- */
:root {
  --sub-font-size: 18px;
  --sub-color: #ffffff;
  --sub-bg: rgba(0, 0, 0, 0.72);
  --sub-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

#vod-video::cue {
  font-size: var(--sub-font-size);
  color: var(--sub-color);
  background-color: var(--sub-bg);
  text-shadow: var(--sub-shadow);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.setting-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.setting-field select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.setting-field select:focus {
  border-color: var(--accent);
}

.setting-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding-top: 18px;
}

.setting-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.sub-preview-box {
  margin-top: 16px;
  background: linear-gradient(135deg, #1b2234, #0c0e17);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.sub-preview-text {
  font-size: var(--sub-font-size);
  color: var(--sub-color);
  background: var(--sub-bg);
  text-shadow: var(--sub-shadow);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

/* --- REPRODUCTOR VOD PERSONALIZADO --- */
.vod-video-box {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.vod-video-box.is-idle:not(.is-paused) {
  cursor: none;
}

.vod-pause-info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 8;
  max-width: min(72%, 520px);
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vod-pause-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.vod-pause-info span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.vod-video-box:not(.is-idle):not(.is-loading):not(.is-opts-open) .vod-pause-info,
.vod-video-box.is-paused:not(.is-loading):not(.is-opts-open) .vod-pause-info,
.vod-video-box:not(.is-idle):not(.is-loading):not(.is-opts-open) .vod-clock,
.vod-video-box.is-paused:not(.is-loading):not(.is-opts-open) .vod-clock {
  opacity: 1;
  transform: translateY(0);
}

.vod-clock {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vod-video-box.is-locked .vod-controls,
.vod-video-box.is-locked .vod-center-play,
.vod-video-box.is-locked .vod-pause-info,
.vod-video-box.is-locked .vod-clock,
.vod-video-box.is-locked .vod-options-panel,
.vod-video-box.is-locked .vod-skip-flash {
  opacity: 0 !important;
  pointer-events: none !important;
}

.vod-unlock-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vod-unlock-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.vod-video-box.is-locked.is-lock-hint .vod-unlock-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.vod-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  z-index: 8;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(14, 16, 26, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.vod-center-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  margin-left: 4px;
}

.vod-center-play:hover {
  background: rgba(24, 28, 44, 0.84);
}

.vod-video-box.is-paused:not(.is-loading):not(.is-opts-open) .vod-center-play {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.vod-skip-flash {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  z-index: 9;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 16, 26, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.vod-skip-flash.is-left {
  left: 14%;
}

.vod-skip-flash.is-right {
  right: 14%;
}

.vod-skip-flash.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.vod-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.vod-video-box.is-idle:not(.is-paused) .vod-controls {
  opacity: 0;
  pointer-events: none;
}

.vod-seek-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.vod-seek-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.vod-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
}

.vod-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.vod-seek-wrap.is-dragging .vod-seek-thumb,
.vod-seek-wrap:hover .vod-seek-thumb {
  transform: translate(-50%, -50%) scale(1.22);
}

.vod-seek-tooltip {
  position: absolute;
  bottom: 30px;
  left: 0%;
  transform: translateX(-50%);
  background: rgba(15, 17, 26, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  pointer-events: none;
  white-space: nowrap;
}

.vod-controls-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vod-ctrl-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.vod-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

#vod-btn-lock {
  display: none;
}

@media (max-width: 900px), (pointer: coarse) {
  #vod-btn-lock {
    display: inline-flex;
  }
  .vod-controls {
    flex-direction: column-reverse;
    gap: 4px;
    padding: 22px 12px max(8px, env(safe-area-inset-bottom));
  }
  .vod-controls-row {
    gap: 6px;
  }
  .vod-ctrl-btn {
    height: 34px;
    min-width: 34px;
    padding: 0 7px;
  }
  .vod-time-label {
    font-size: 12px;
  }
  .vod-center-play {
    width: 64px;
    height: 64px;
  }
  .vod-center-play svg {
    width: 28px;
    height: 28px;
  }
  .vod-pause-info {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 108px);
    padding: 7px 11px;
  }
  .vod-video-box.is-locked .vod-controls,
.vod-video-box.is-locked .vod-center-play,
.vod-video-box.is-locked .vod-pause-info,
.vod-video-box.is-locked .vod-clock,
.vod-video-box.is-locked .vod-options-panel,
.vod-video-box.is-locked .vod-skip-flash {
  opacity: 0 !important;
  pointer-events: none !important;
}

.vod-unlock-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vod-clock {

.vod-unlock-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.vod-video-box.is-locked.is-lock-hint .vod-unlock-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 12px;
  }
}

.vod-ctrl-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vod-time-label {
  font-size: 13px;
  font-weight: 600;
  color: #e4e6ef;
  font-variant-numeric: tabular-nums;
}

.vod-ctrl-spacer {
  flex: 1;
}

.vod-options-panel {
  position: absolute;
  right: 14px;
  bottom: 66px;
  z-index: 16;
  width: min(295px, calc(100% - 28px));
  background: rgba(24, 24, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
  color: #f3f4f6;
}

.vod-options-panel .setting-field select {
  background: #1a1d29;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 6px;
}

select option {
  background: #1a1d29;
  color: #f3f4f6;
}

.vod-options-panel .sub-sync-btn,
.vod-options-panel .sub-sync-val {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 6px;
}

.vod-options-panel .sub-sync-btn:hover,
.vod-options-panel .sub-sync-val:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.vod-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.vod-options-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}

.vod-options-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-sync-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-sync-btn {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.sub-sync-val {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.sub-sync-val:hover {
  border-color: var(--accent);
}

.vod-options-note {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}

.vod-resume-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 18;
  background: rgba(16, 18, 28, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  text-align: center;
  width: min(340px, calc(100% - 32px));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.72);
}

.vod-resume-text {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.vod-resume-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.vod-sub-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  margin: 0 auto;
  width: fit-content;
  z-index: 10;
  max-width: min(94%, 1040px);
  text-align: center;
  font-size: var(--sub-font-size);
  color: var(--sub-color);
  background: var(--sub-bg);
  text-shadow: var(--sub-shadow);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  white-space: pre-line;
}

.poster-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 3;
}

.poster-progress-fill {
  height: 100%;
  background: var(--accent);
}

.vod-video-box.is-idle:not(.is-paused) .vod-sub-overlay {
  bottom: 24px;
}


