:root {
  /* Cinema: negro profundo, oro mate. */
  --bg: #070706;
  --bg-elev: #111110;
  --bg-elev-2: #1a1917;
  --border: #2a2722;
  --text: #f3efe8;
  --text-dim: #9a9288;
  --accent: #c9a227;
  --accent-hover: #e0bb4a;
  --accent-soft: rgba(201, 162, 39, 0.16);
  --live: #e50914;
  --sidebar-w: 248px;
  --header-h: 64px;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --bs-body-bg: #070706;
  --bs-body-color: #f3efe8;
  --bs-primary: #c9a227;
  --bs-link-color: #e0bb4a;
  --bs-link-hover-color: #f0c96a;
  --bs-border-color: #2a2722;
  --bs-emphasis-color: #f3efe8;
  --bs-secondary-color: #9a9288;
  --bs-tertiary-bg: #111110;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--accent);
  color: #1a1408;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  background: var(--bg-elev-2);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

.spin {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Botones utilitarios ---------- */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  transition: background 0.15s ease;
}
.icon-btn:hover {
  background: var(--bg-elev-2);
}
.icon-btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
.sidebar__link:focus-visible,
.channel-card__main:focus-visible,
.chip:focus-visible,
.poster-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-elev-2);
  color: var(--text);
}
.btn--accent {
  background: var(--accent);
  color: #1a1408;
}
.btn--accent:hover {
  background: var(--accent-hover);
  color: #1a1408;
}
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible {
  box-shadow: none;
  border: none;
}
.btn:hover,
.btn:focus,
.btn:active {
  color: var(--text);
  background: var(--bg-elev-2);
}
.btn--accent:hover,
.btn--accent:focus,
.btn--accent:active {
  color: #1a1408;
  background: var(--accent-hover);
}

/* ---------- Layout ---------- */
.app {
  display: flex;
  min-height: 100%;
}
.app__main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #0a0908;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 18px;
  min-height: var(--header-h);
  border-bottom: none;
}
.brand-mark {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}
.nav-ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
}
.sidebar__logo {
  display: none;
}
.sidebar__name {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.sidebar__close {
  margin-left: auto;
  display: none;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: all 0.15s ease;
}
.sidebar__link:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}
.sidebar__link.is-active {
  background: var(--accent);
  color: #1a1408;
  font-weight: 700;
}
.sidebar__link.is-active svg {
  color: #1a1408;
}
.sidebar__foot {
  margin-top: auto;
  padding: 12px 14px 20px;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.sidebar__legal {
  margin: 0 14px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sidebar__logout {
  cursor: pointer;
}
.sidebar-backdrop {
  display: none;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  padding: 0 18px;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header__menu {
  display: none;
}
.header__brand {
  display: none;
  font-weight: 800;
}
.header__search {
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  min-width: 0;
}
.header__account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}
.header__account-name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ---------- Search ---------- */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar__icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.search-bar__icon .nav-ico {
  width: 16px;
  height: 16px;
}
.search-bar__input {
  width: 100%;
  padding: 10px 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search-bar__input:focus {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.search-bar__input::placeholder {
  color: var(--text-dim);
}
.search-bar__clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
}
.search-bar__clear:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}

/* ---------- Content ---------- */
.content {
  padding: 22px 28px 56px;
  max-width: 1480px;
  margin: 0 auto;
}
body.is-watch .content {
  max-width: none;
  width: 100%;
  padding: 0 0 48px;
}
body.is-watch .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: 0;
  padding: 10px 12px;
  background: transparent;
  border: none;
  backdrop-filter: none;
  z-index: 45;
  pointer-events: none;
}
body.is-watch .header__menu {
  display: grid;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
body.is-watch .header__menu:hover {
  background: rgba(0, 0, 0, 0.7);
}
body.is-watch .header__search,
body.is-watch .header__user,
body.is-watch .header__account,
body.is-watch .header__brand {
  display: none !important;
}
body.is-watch .sidebar__close {
  display: grid;
}
body.is-watch .app__main {
  margin-left: 0;
  position: relative;
}
body.is-watch .sidebar {
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
body.is-watch .sidebar.is-open {
  transform: translateX(0);
  box-shadow: var(--shadow);
}
body.is-watch .sidebar-backdrop.is-open {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 35;
}
body.is-watch .player--theater .player__stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  min-height: 240px;
  max-height: min(86dvh, calc(100dvw * 9 / 16));
  margin: 0 auto;
}
.content__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.content__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.notice {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.notice p {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Category filter ---------- */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chip:hover {
  color: var(--text);
  border-color: var(--accent);
}
.chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1408;
}

/* ---------- Player ---------- */
.player {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: contain;
  background: #000;
}
.player__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.player__frame[hidden] {
  display: none !important;
}
.player__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim);
  text-align: center;
  padding: 20px;
  background: rgba(5, 5, 6, 0.55);
  pointer-events: none;
}
.player__overlay.is-on {
  display: flex;
  pointer-events: auto;
}
.player__overlay .btn {
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}
.player__overlay[hidden] {
  display: none !important;
}
.player.is-playing .player__overlay,
.player:has(.player__video:not(:paused)) .player__overlay {
  display: none !important;
  pointer-events: none !important;
}
.player__unmute {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.38);
}
.player__unmute[hidden] {
  display: none !important;
}
.player__unmute-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  max-width: 360px;
}
.player__unmute-card p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.player__unmute-btn {
  font-size: 1.12rem;
  padding: 14px 28px;
  min-width: 220px;
  min-height: 52px;
  cursor: pointer;
}
.player__hint {
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}
.player__hint p {
  margin: 0 0 8px;
}
.player__overlay--error {
  color: var(--text);
}
.player__live {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.4);
}
.player__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.player__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
}
.player__controls select {
  max-width: 160px;
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}
.player__volume {
  width: 90px;
  accent-color: var(--accent);
}
.player__title {
  margin: 0 auto 0 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__select {
  max-width: 118px;
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
}
.player__select[hidden] { display: none !important; }
.player__hit {
  min-width: 44px;
  min-height: 44px;
}
.player--idle .player__controls,
.player--idle .player__conn,
.player--idle .watch-bar,
.player--idle .player-zapper {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.player--chrome .player__controls,
.player--chrome .player__conn,
.player--chrome .watch-bar,
.player--chrome .player-zapper {
  opacity: 1;
}
.watch-guide {
  margin: 8px 0 22px;
}
.watch-guide__slot {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.watch-guide__slot h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.watch-guide__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.watch-guide__live {
  color: var(--live);
  letter-spacing: 0.08em;
}
.watch-guide__desc {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-guide__bar {
  display: block;
  margin-top: 12px;
  height: 4px;
  border-radius: 99px;
  background: #333;
  overflow: hidden;
}
.watch-guide__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.watch-epg { margin: 0 0 28px; }
.watch-epg__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.watch-epg__list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.watch-epg__when { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.watch-bar__prog {
  display: block;
  color: var(--text-dim);
  font-size: 0.82rem;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-card__now {
  display: -webkit-box;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 700px) {
  .player__title { display: none; }
  .player__controls { gap: 6px; padding: 8px; }
}

/* ---------- Channel grid ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.channel-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.channel-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.channel-card--active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.channel-card__main {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
}
.channel-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, hsl(var(--hue, 250) 18% 14%), #0c0b0a);
  overflow: hidden;
}
.channel-card__thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  padding: 20px 18px 18px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}
.channel-card__thumb--logo {
  background:
    radial-gradient(circle at 50% 28%, rgba(201, 162, 39, 0.12), transparent 52%),
    linear-gradient(160deg, #1a1814, #0a0908);
}
.channel-card__initials {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}
.channel-card__live {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.35);
}
.channel-card__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}
.channel-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.channel-card__play > * {
  background: var(--accent);
  border-radius: 50%;
  padding: 12px;
}
.channel-card__main:hover .channel-card__play,
.channel-card__main:focus-visible .channel-card__play,
.channel-card:focus-within .channel-card__play {
  opacity: 1;
}
.channel-card__info {
  padding: 12px 14px 14px;
}
.channel-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.channel-card__cat {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.channel-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease;
}
.channel-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  margin: 0;
}
.channel-fav--wide {
  position: static;
  margin-top: 12px;
}
.channel-card__fav--wide {
  position: static;
  width: auto;
  height: auto;
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  font-weight: 700;
  font-size: 0.88rem;
}
.channel-card__fav:hover {
  background: rgba(0, 0, 0, 0.75);
}
.channel-card__fav--wide:hover {
  background: var(--bg-elev);
}
.channel-card__fav.is-fav {
  color: #ffd56a;
}

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--text-dim);
  text-align: center;
}
.empty-state h3 {
  margin: 0;
  color: var(--text);
}
.empty-state p {
  margin: 0;
  max-width: 340px;
}

/* ---------- Config ---------- */
.config {
  max-width: 520px;
}
.config__list {
  margin: 20px 0 0;
  display: grid;
  gap: 2px;
}
.config__list div {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.config__list div:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}
.config__list div:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}
.config__list dt {
  color: var(--text-dim);
}
.config__list dd {
  margin: 0;
  font-weight: 600;
}
.config__note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .app__main {
    margin-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }
  .sidebar__close {
    display: grid;
  }
  .sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 35;
  }
  .header__menu {
    display: grid;
  }
  .header__brand {
    display: block;
  }
  .header__search {
    max-width: none;
  }
  .content {
    padding: 16px;
  }
  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .header__brand {
    display: none;
  }
  .content__head {
    margin: 18px 0 12px;
  }
  .player__volume {
    width: 64px;
  }
}

html, body { min-height: 100%; }
a { color: var(--accent); text-decoration: none; }
.header__user { margin-left: 12px; color: var(--text-dim); font-size: 0.9rem; white-space: nowrap; }
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background: radial-gradient(circle at top, #1a1628, var(--bg) 55%);
}
.auth-body .container {
  width: 100%;
}
.hero-auth { width: 100%; }
.auth-body > .auth-card {
  width: min(520px, calc(100% - 32px));
  margin: 48px auto;
}
.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card--wide { width: 100%; }
.auth-card h1 { margin: 8px 0 12px; }
.auth-card label { display: block; margin: 12px 0; color: var(--text-dim); font-size: 0.9rem; }
.auth-card input, .form input, .form select, .form textarea, .filters input, .filters select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.btn-block { width: 100%; justify-content: center; margin-top: 12px; }
.form-error { color: #ff8a8a; }
.form-ok { color: #8ee0b0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); font-weight: 700; }
.muted { color: var(--text-dim); }
.notice--ok { background: rgba(80, 200, 140, 0.12); border-color: rgba(80, 200, 140, 0.4); }
.row-section { margin: 28px 0; }
.shelf-title {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 1.22rem;
  margin: 32px 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 20px; }
.poster-card { color: inherit; position: relative; }
.poster-card__link { color: inherit; display: block; }
.poster-card__art {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elev-2);
  margin-bottom: 0;
}
.poster-card__art img { width: 100%; height: 100%; max-width: none; object-fit: cover; position: relative; z-index: 1; }
.poster-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.progress-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #333; z-index: 2; }
.progress-bar i { display: block; height: 100%; background: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 28px; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat span { color: var(--text-dim); font-size: 0.85rem; }
.stat strong { display: block; font-size: 1.6rem; margin-top: 6px; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border-radius: 12px;
  overflow: hidden;
  --bs-table-bg: var(--bg-elev);
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: var(--bg-elev-2);
  color: var(--text);
}
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.92rem; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table select { max-width: 220px; }
.origin-state { font-weight: 700; }
.origin-state--on { color: #3ecf8e; }
.origin-state--off { color: var(--text-dim); }
.thumb { width: 42px; height: 28px; object-fit: cover; border-radius: 6px; }
.form { max-width: 640px; display: grid; gap: 12px; margin: 16px 0 28px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: none; }
.form-inline input, .form-inline select { width: auto; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters.row {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}
.filters.row > [class*="col-"] select,
.filters.row > [class*="col-"] input,
.filters.row > [class*="col-"] .btn {
  width: 100%;
}
.filters input, .filters select { width: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.log-list { list-style: none; padding: 0; }
.log-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.player__conn { position: absolute; top: 14px; right: 14px; font-size: 0.75rem; color: #ccc; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 6px; }
.player__seek { flex: 1; accent-color: var(--accent); }
.player__controls--vod {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 14px 14px;
}
.player__transport,
.player__extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.player__timeline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player__timeline .player__seek {
  height: 28px;
  cursor: pointer;
}
.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.ctrl-btn:hover {
  border-color: var(--accent);
}
.ctrl-btn--play.is-on {
  filter: brightness(1.08);
}
.player__video {
  cursor: pointer;
}
.watch-meta { margin: 18px 0 28px; }
.badge-live { color: var(--live); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }
.back-link { color: var(--text-dim); }

.watch {
  max-width: none;
  margin: 0 auto;
  padding: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
}
.watch-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 12px;
}
.watch-bar__back {
  color: var(--text-dim);
  font-weight: 600;
  white-space: nowrap;
}
.watch-bar__back:hover { color: var(--text); }
.watch-bar__now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.watch-bar__now strong {
  display: block;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-bar__cat {
  display: inline-block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.watch-bar__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.watch .player {
  border-radius: 0;
}
.watch-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
}
.watch-info__logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, hsl(var(--hue, 250) 28% 18%), #101014);
  overflow: hidden;
  border: 1px solid var(--border);
}
.watch-info__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.watch-info__logo span {
  font-weight: 800;
  color: var(--accent);
}
.watch-info__text h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.watch-info__text p { margin: 6px 0 0; line-height: 1.45; }
.watch-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 16px 0 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.watch-cats .chip { flex: 0 0 auto; }
.channel-rail {
  margin: 22px 0 6px;
}
.channel-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.channel-rail__title {
  margin: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.channel-rail__more {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
}
.channel-rail__more:hover { color: var(--text); }
.channel-rail__track,
.poster-rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.channel-rail__track .channel-card {
  flex: 0 0 248px;
  scroll-snap-align: start;
}
.poster-rail__track .poster-card {
  flex: 0 0 196px;
  scroll-snap-align: start;
  min-width: 0;
}
.poster-rail__track .poster-card strong,
.poster-rail__track .poster-card .muted {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  margin: 0;
}
.list-form--wide {
  position: static;
  margin-top: 12px;
}
.list-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.list-btn:hover { background: rgba(0, 0, 0, 0.9); }
.list-btn.is-on {
  background: var(--accent);
  color: #111;
}
.list-btn--wide {
  display: inline-flex;
  width: auto;
  height: auto;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}
.continue-dismiss {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  margin: 0;
}
.continue-dismiss button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.continue-dismiss button:hover { background: rgba(0, 0, 0, 0.9); }
.continue-card__badge {
  position: absolute;
  left: 8px;
  bottom: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #111;
  border-radius: 6px;
  padding: 3px 7px;
}
.watch-meta__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.watch-meta__head h1 { margin: 0 0 4px; }
.watch-meta__head .muted { margin: 0; }
.channel-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.detail-head { display: grid; grid-template-columns: 140px 1fr; gap: 18px; margin-bottom: 24px; }
.detail-poster { max-width: 140px; }
.episode-list { list-style: none; padding: 0; }
.episode-list a { display: block; padding: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; color: inherit; }
.tag { font-size: 0.75rem; color: #ffb347; margin-left: 8px; }
.img-preview { width: 160px; height: 90px; background: var(--bg-elev); border-radius: 8px; overflow: hidden; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.content--wide { max-width: 1400px; }
.plain-list { line-height: 1.8; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 12px;
  max-height: 280px;
  overflow: auto;
  padding: 8px 0;
}
.plan-lock {
  max-width: 640px;
  margin: 32px auto;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.agenda-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
}
.agenda-list { display: grid; gap: 10px; }
.agenda-card {
  min-width: 200px;
  flex: 0 0 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: inherit;
  display: grid;
  gap: 4px;
}
.agenda-card time { color: var(--accent); font-weight: 700; }
.agenda-card.is-live { border-color: var(--live); }
.agenda-list .agenda-card {
  min-width: 0;
  grid-template-columns: 64px 1fr;
  align-items: start;
}
.home-agenda {
  max-width: 1080px;
}
.home-agenda__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 22px;
}
.home-agenda__more {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.home-agenda__more:hover { color: var(--text); }
.home-agenda__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live);
}
.home-agenda__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.22);
}
.home-agenda__live {
  margin-bottom: 22px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid rgba(255, 77, 77, 0.28);
  border-radius: 12px;
}
.home-agenda__live-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.home-agenda__live-item {
  display: grid;
  grid-template-columns: 46px 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: inherit;
  padding: 6px 4px;
  border-radius: 8px;
}
a.home-agenda__live-item.is-watch,
a.home-agenda__sched-item.is-watch {
  text-decoration: none;
}
.home-agenda__live-item:hover { background: var(--bg-elev-2); }
.home-agenda__live-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.home-agenda__watch,
.agenda-card__watch {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}
.home-agenda__hint {
  margin: -10px 0 18px;
  max-width: 62ch;
}
.home-agenda__live-item time,
.home-agenda__sport time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.home-agenda__lg {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-agenda__score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.88rem;
}
.home-agenda__board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  align-items: start;
}
.home-agenda__sport {
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
}
.home-agenda__sport h2 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.home-agenda__sport ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-agenda__sport li {
  padding: 5px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(38, 38, 44, 0.65);
}
.home-agenda__sched-item {
  display: grid;
  grid-template-columns: 46px 88px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: inherit;
}
.home-agenda__sport li:last-child { border-bottom: 0; }
.home-agenda__match {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 860px) {
  .home-agenda__board { grid-template-columns: 1fr; gap: 0; }
  .home-agenda__live-item,
  .home-agenda__sport li,
  .home-agenda__sched-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .home-agenda__live-item .home-agenda__lg,
  .home-agenda__sport .home-agenda__lg {
    display: none;
  }
  .home-agenda__score { grid-column: 2; }
}
.ott-home__head {
  margin-bottom: 8px;
}
.ott-home .ott-rail,
.ott-home .channel-rail {
  margin-top: 8px;
}
.ott-home .home-agenda {
  max-width: none;
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.ott-home .home-agenda__head h2 {
  margin: 0;
}
.continue-card .progress-bar {
  height: 5px;
  background: rgba(0, 0, 0, 0.55);
}
.profiles-card { max-width: 920px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.profile-pick {
  display: grid;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: hsl(var(--hue, 260) 70% 42%);
}
@media (max-width: 991.98px) {
  .two-col, .detail-head { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}

/* ---------- Pulido UX / teatro ---------- */
.player--theater {
  position: relative;
  background: #000;
  border: none;
  box-shadow: none;
}
.player--theater .watch-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  padding: 12px 16px 36px 56px;
  margin: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
}
.player--theater .watch-bar .channel-fav {
  position: static;
  margin: 0;
}
.player--theater .watch-bar .channel-card__fav {
  position: static;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.45);
}
.player--theater .watch-bar a,
.player--theater .watch-bar button {
  pointer-events: auto;
}
.player--theater[data-hls-player] .player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  padding: 48px 16px 14px;
}
.player--theater .player__live,
.player--theater .player__conn,
.player--theater[data-hls-player] .player__title {
  display: none;
}
.player__controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}
.player__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(243, 239, 232, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.player__overlay p[data-status-text] {
  margin: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(243, 239, 232, 0.82);
}
.player-epg-btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.92);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.player-epg-btn:hover,
.player-epg-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.player-epg-btn .nav-ico {
  width: 18px;
  height: 18px;
}
.player-adv {
  justify-self: end;
  position: relative;
  z-index: 9;
}
.player-adv__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(16, 14, 12, 0.92);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
}
.player-adv__open:hover,
.player-adv.is-open .player-adv__open {
  border-color: var(--accent);
  color: var(--accent);
}
.player-adv.is-open .player-adv__open {
  display: none;
}
.player-adv__panel {
  width: min(300px, 86vw);
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(18, 16, 14, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.player-adv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.player-adv__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.player-adv__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 1rem;
}
.player-adv__close:hover {
  color: var(--text);
  background: var(--bg-elev-2);
}
.player-adv__row {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}
.player-adv__row:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.player-adv__row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
}
.player-adv__row .nav-ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.player-adv__row .player__select {
  max-width: none;
  width: 100%;
}
.player-zapper {
  position: absolute;
  left: 14px;
  bottom: 78px;
  z-index: 7;
  max-width: min(560px, 68%);
  padding: 10px 12px 8px;
  border-radius: 16px;
  background: rgba(8, 7, 6, 0.72);
  border: 1px solid rgba(42, 39, 34, 0.85);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.player-zapper__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.player-zapper__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.player-zapper__ch {
  flex: 0 0 auto;
  text-decoration: none;
}
.player-zapper__mark {
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 162, 39, 0.1), transparent 58%),
    linear-gradient(160deg, hsl(var(--hue, 40) 12% 14%), #0a0908);
  overflow: hidden;
}
.player-zapper__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.player-zapper__mark span {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}
.player-zapper__ch.is-on .player-zapper__mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 18px rgba(201, 162, 39, 0.22);
}
.watch-below {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 22px 36px;
}
.watch-dock {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(240px, 0.7fr) minmax(320px, 1.35fr);
  gap: 18px;
  align-items: start;
  margin: 6px 0 18px;
}
.watch-dock__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.watch-dock__genre {
  margin: 0 0 14px;
}
.watch-dock__genre-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.channel-logos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.channel-logo {
  flex: 0 0 auto;
  width: 78px;
}
.channel-logo a {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-decoration: none;
  color: inherit;
}
.channel-logo__mark {
  width: 72px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 28%, rgba(201, 162, 39, 0.12), transparent 52%),
    linear-gradient(160deg, hsl(var(--hue, 40) 14% 14%), #0a0908);
  overflow: hidden;
}
.channel-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}
.channel-logo__initials {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}
.channel-logo__name {
  max-width: 76px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-logo--active .channel-logo__mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 22px rgba(201, 162, 39, 0.22);
  background: rgba(201, 162, 39, 0.12);
}
.channel-logo--active .channel-logo__name {
  color: var(--accent);
}
.watch-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.watch-guide__slot {
  background: linear-gradient(180deg, #161411, #10100e);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 100%;
}
.watch-credit {
  margin: 22px 0 0;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.watch-info__text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.watch-vod-nav {
  position: absolute;
  z-index: 8;
  margin: 0;
  padding: 14px 18px 8px 56px;
}
body.is-watch .watch-meta {
  max-width: 1280px;
  margin: 18px auto 28px;
  padding: 0 22px;
}
.category-filter {
  position: sticky;
  top: var(--header-h);
  z-index: 22;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, var(--bg) 62%, transparent);
}
.content__head .category-filter {
  flex: 1 1 100%;
}
.content__title {
  letter-spacing: -0.03em;
}
.ott-home__head {
  margin: 2px 0 20px;
}
.ott-home .content__title {
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
}
.channel-rail__track,
.poster-rail__track {
  scrollbar-color: #3a3a44 transparent;
  scrollbar-width: thin;
}
.channel-rail__track::-webkit-scrollbar,
.poster-rail__track::-webkit-scrollbar {
  height: 6px;
}
.channel-rail__track::-webkit-scrollbar-thumb,
.poster-rail__track::-webkit-scrollbar-thumb {
  background: #3a3a44;
  border-radius: 99px;
}
.poster-card__art {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.poster-card:hover .poster-card__art,
.poster-card:focus-within .poster-card__art {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.48);
}
.channel-card:has(.channel-card__now) .channel-card__cat {
  display: none;
}
.channel-card__now {
  color: var(--text);
  font-weight: 500;
}
.channel-card:hover,
.channel-card:focus-within {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--accent);
}
.episode-list a {
  transition: border-color 0.15s ease, background 0.15s ease;
}
.episode-list a:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.agenda-list .agenda-card {
  transition: border-color 0.15s ease, background 0.15s ease;
}
.agenda-list .agenda-card.is-live {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.35);
}
a.agenda-card {
  text-decoration: none;
}
a.agenda-card:hover,
a.agenda-card:focus-visible {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.search-sports .agenda-card {
  min-width: 0;
}
.filters select,
.filters input,
.filters .btn {
  min-height: 40px;
}
.shelf-title {
  letter-spacing: -0.02em;
}
@media (max-width: 1100px) {
  .watch-dock {
    grid-template-columns: 1fr 1fr;
  }
  .watch-dock__channels {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  body.is-watch .player--theater .player__stage {
    width: 100%;
    min-height: 180px;
    max-height: none;
  }
  .player--theater .watch-bar {
    padding-left: 52px;
    padding-right: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .player--theater[data-hls-player] .player__controls {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 36px 10px 10px;
  }
  .player-epg-btn,
  .player-adv {
    justify-self: stretch;
  }
  .player-adv__panel {
    width: 100%;
  }
  .player-zapper {
    left: 8px;
    right: 8px;
    max-width: none;
    bottom: auto;
    top: 70px;
  }
  .watch-below {
    padding: 8px 16px 28px;
  }
  .watch-dock,
  .watch-guide {
    grid-template-columns: 1fr;
  }
  .poster-card:hover .poster-card__art,
  .poster-card:focus-within .poster-card__art {
    transform: none;
  }
  .search-bar__input {
    font-size: 16px;
  }
  .watch-bar__prog {
    max-width: 58vw;
  }
  .badge-live {
    display: none;
  }
}

.app .row > * {
  min-width: 0;
}
.channel-card.h-100,
.poster-card.h-100 {
  display: flex;
  flex-direction: column;
}
.poster-card.h-100 .poster-card__link {
  flex: 1;
}
.category-filter,
.filters.flex-nowrap {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.category-filter .chip,
.filters.flex-nowrap .chip {
  flex: 0 0 auto;
}
@media (min-width: 992px) {
  .category-filter {
    flex-wrap: wrap;
    overflow: visible;
  }
}

/* Login cine: marca + rieles de catálogo real */
.auth-body--cinema {
  display: block;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #070605;
}
.auth-cinema {
  position: absolute;
  inset: -22% -14%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transform: rotate(-9deg) scale(1.28);
  pointer-events: none;
  user-select: none;
}
.auth-cinema__row {
  overflow: hidden;
}
.auth-cinema__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: auth-cinema-rail 72s linear infinite;
}
.auth-cinema__row--rev .auth-cinema__track {
  animation-direction: reverse;
  animation-duration: 88s;
}
.auth-cinema__poster {
  width: 132px;
  height: 198px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.78;
  flex: 0 0 auto;
  background: #1a1714;
}
.auth-cinema__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.88) 0%, rgba(7, 6, 5, 0.42) 38%, rgba(7, 6, 5, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.18) 0%, rgba(7, 6, 5, 0.28) 55%, rgba(7, 6, 5, 0.72) 100%);
}
.auth-cinema__stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 28px 24px;
}
.auth-cinema__grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 48px 56px;
  align-items: center;
  flex: 1 1 auto;
  align-content: center;
}
.auth-cinema__grid--wide {
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1.25fr);
  width: min(1180px, 100%);
}
.auth-cinema__brand {
  min-width: 0;
}
.auth-cinema__legal {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.auth-cinema__mark {
  margin: 0;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.88;
  color: var(--accent);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}
.auth-cinema__tag {
  margin: 18px 0 0;
  max-width: 22rem;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.auth-card--cinema {
  width: 100%;
  background: rgba(12, 11, 10, 0.82);
  border-color: rgba(212, 160, 23, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.auth-card--cinema.profiles-card {
  max-width: none;
}
.auth-card__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
}
.auth-card__hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
@keyframes auth-cinema-rail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 840px) {
  .auth-cinema {
    inset: -28% -18%;
    transform: rotate(-7deg) scale(1.38);
    gap: 10px;
  }
  .auth-cinema__poster {
    width: 104px;
    height: 156px;
  }
  .auth-cinema__grid,
  .auth-cinema__grid--wide {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .auth-cinema__tag {
    margin-left: auto;
    margin-right: auto;
  }
  .auth-cinema__stage {
    padding: 28px 18px 20px;
    align-items: stretch;
    justify-content: flex-end;
  }
}
.dev-credit {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dev-credit strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
}
.dev-credit--cinema {
  margin-top: auto;
  padding-top: 24px;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
}
.dev-credit--auth {
  margin-top: 22px;
}
.dev-credit--home {
  margin: 48px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (prefers-reduced-motion: reduce) {
  .auth-cinema__track {
    animation: none;
  }
}

.rail-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.poster-rail__track--featured {
  gap: 18px;
  padding-top: 6px;
  padding-right: 8px;
}
.poster-rail__track--featured .poster-card {
  flex: 0 0 220px;
}
.poster-card--featured .poster-card__art {
  aspect-ratio: 2 / 3;
  margin-bottom: 0;
}
@media (max-width: 840px) {
  .poster-rail__track--featured .poster-card {
    flex: 0 0 158px;
  }
}
.icon-btn .nav-ico {
  width: 22px;
  height: 22px;
}
.home-agenda {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 12px;
}
.ott-home .home-agenda {
  border-top: none;
  margin-top: 28px;
  padding-top: 18px;
}
.ott-home .ott-rail,
.ott-home .channel-rail {
  margin-top: 28px;
}
.ott-rail--hero {
  margin-top: 4px !important;
}
.poster-card strong {
  font-weight: 600;
  font-size: 0.92rem;
}
.poster-card .muted {
  font-weight: 400;
  font-size: 0.78rem;
}

.agenda-hero {
  margin: -6px -8px 8px;
  padding: 8px 8px 4px;
  background:
    radial-gradient(900px 220px at 78% -30%, rgba(201, 162, 39, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(26, 22, 16, 0.55) 0%, transparent 80%);
}
.agenda-hero .content__head {
  margin-bottom: 4px;
}
.agenda-hero__sync {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.agenda-days {
  margin: 8px 0 22px;
}
.agenda-dash__body.has-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
}
.agenda-live h2,
.agenda-dash h2 {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.match-grid--live {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.match-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  color: inherit;
  text-decoration: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}
a.match-card:hover,
a.match-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 0 0 1px var(--accent);
}
.match-card--live {
  padding: 18px 18px 16px;
  background:
    linear-gradient(115deg, rgba(12, 28, 64, 0.88) 0%, rgba(14, 12, 10, 0.94) 48%, rgba(90, 68, 18, 0.52) 100%);
  border-color: rgba(201, 162, 39, 0.28);
}
.match-card--live.is-live {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.match-card time {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.match-card__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: #ff6b6b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.match-card__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.22);
}
.match-card__league {
  position: absolute;
  right: 14px;
  bottom: 12px;
  height: 22px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.78;
  pointer-events: none;
}
.match-card__teams {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
}
.match-card--live .match-card__teams {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  gap: 12px;
  min-height: 88px;
}
.match-card__crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
}
.match-card__crest span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.82rem;
}
.match-card__crest img {
  position: relative;
  z-index: 1;
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}
.match-card--live .match-card__crest {
  width: 72px;
  height: 72px;
}
.match-card__center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.match-card__names {
  display: grid;
  justify-items: center;
  gap: 1px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  width: 100%;
}
.match-card__names > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-card__vs {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.match-card--live .match-card__names {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
}
.match-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4b03a, #8a6a14);
  color: #140f08;
  font-weight: 800;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(201, 162, 39, 0.22);
}
.match-card--live .match-card__score {
  min-width: 5.4rem;
  padding: 8px 18px;
  font-size: 1.45rem;
}
.match-card__score--wait {
  background: rgba(229, 9, 20, 0.88);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}
.match-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  padding-right: 76px;
}
.match-card__net {
  height: 16px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}
.match-card__watch {
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agenda-news {
  position: sticky;
  top: 88px;
}
.agenda-news h2 {
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px !important;
}
.agenda-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.agenda-news__card {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.agenda-news__card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.agenda-news__card span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-agenda .match-grid--live {
  margin-bottom: 0;
}
.home-agenda__live {
  padding: 16px;
}
@media (max-width: 980px) {
  .agenda-dash__body.has-news {
    grid-template-columns: 1fr;
  }
  .agenda-news {
    position: static;
    max-width: 420px;
  }
}
@media (max-width: 700px) {
  .match-card__teams,
  .match-card--live .match-card__teams {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
  .match-card__crest,
  .match-card--live .match-card__crest {
    width: 48px;
    height: 48px;
  }
  .match-card--live .match-card__score {
    font-size: 1.15rem;
  }
}
