/* Televisor YouTube — estilos aislados bajo .yt-tv-component */
.yt-tv-component {
  --yt-tv-accent: #e6b85c;
  --yt-tv-ink: #17191d;
  --yt-tv-muted: #69707b;
  --yt-tv-panel: #ffffff;
  --yt-tv-border: #e4e7ec;
  width: 100%;
  box-sizing: border-box;
  color: #20242b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.yt-tv-component *, .yt-tv-component *::before, .yt-tv-component *::after { box-sizing: border-box; }
.yt-tv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .85fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.yt-tv-stage { min-width: 0; text-align: center; }
.yt-tv-set {
  position: relative;
  width: min(100%, 800px);
  margin: 0 auto;
  padding-bottom: 30px;
}
.yt-tv-bezel {
  position: relative;
  padding: clamp(10px, 1.8vw, 18px);
  background: linear-gradient(145deg, #3d4148, #111317 60%, #292d33);
  border: 2px solid #08090b;
  border-radius: 28px;
  box-shadow: 0 18px 35px rgba(0,0,0,.25), inset 0 2px 2px rgba(255,255,255,.16);
}
.yt-tv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: inset 0 0 22px rgba(0,0,0,.8);
}
.yt-tv-player, .yt-tv-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.yt-tv-screen-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 18px rgba(0,0,0,.18);
}
.yt-tv-controls {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 3px 0;
  color: #f5f5f5;
}
.yt-tv-brand {
  margin-right: auto;
  color: #d5d8de;
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 800;
}
.yt-tv-led {
  width: 7px; height: 7px; border-radius: 50%;
  background: #55d68b; box-shadow: 0 0 8px rgba(85,214,139,.7);
  margin-right: 5px;
}
.yt-tv-control {
  border: 1px solid #555b65;
  border-radius: 7px;
  background: #22262c;
  color: #f6f7f8;
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}
.yt-tv-control:hover, .yt-tv-control:focus-visible { background: #3a4049; outline: 2px solid var(--yt-tv-accent); outline-offset: 2px; }
.yt-tv-neck {
  width: 19%; height: 23px; margin: -1px auto 0;
  background: linear-gradient(90deg, #202329, #4b5058, #202329);
  clip-path: polygon(15% 0,85% 0,100% 100%,0 100%);
}
.yt-tv-base {
  width: 36%; height: 13px; margin: 0 auto;
  border-radius: 50% 50% 7px 7px;
  background: linear-gradient(#555b64, #1a1c20);
  box-shadow: 0 7px 10px rgba(0,0,0,.18);
}
.yt-tv-caption { margin: 4px 0 0; color: var(--yt-tv-muted); font-size: 13px; }
.yt-tv-library {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--yt-tv-border);
  border-radius: 18px;
  background: var(--yt-tv-panel);
  box-shadow: 0 8px 25px rgba(25,35,50,.06);
}
.yt-tv-library-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.yt-tv-eyebrow { margin: 0 0 4px; color: #8b6a2e; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.yt-tv-library h2 { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.2; color: #20242b; }
.yt-tv-count { flex-shrink: 0; color: #646c78; font-size: 11px; background: #f1f3f6; border-radius: 999px; padding: 6px 9px; }
.yt-tv-search-label { display: block; margin-bottom: 6px; font-size: 12px; color: #555e6b; font-weight: 650; }
.yt-tv-search {
  display: block; width: 100%; min-height: 42px; margin-bottom: 14px;
  padding: 10px 12px; border: 1px solid #d8dde5; border-radius: 10px;
  color: #20242b; background: #fff; font: inherit; font-size: 14px;
}
.yt-tv-search:focus { outline: 2px solid #e6b85c; outline-offset: 1px; border-color: #c89b42; }
.yt-tv-playlist { display: grid; gap: 9px; max-height: 530px; overflow-y: auto; padding: 2px 3px 2px 0; }
.yt-tv-item {
  display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 11px; align-items: center;
  width: 100%; padding: 8px; text-align: left; color: #252a32; background: #fff;
  border: 1px solid #e4e7ec; border-radius: 12px; cursor: pointer; font: inherit;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.yt-tv-item:hover { border-color: #c5a15c; background: #fffdf8; transform: translateY(-1px); }
.yt-tv-item:focus-visible { outline: 2px solid #c89b42; outline-offset: 2px; }
.yt-tv-item.is-active { border-color: #b78b39; background: #fff8e8; box-shadow: inset 3px 0 #c89b42; }
.yt-tv-thumb { display: block; width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; background: #e8eaee; }
.yt-tv-item-title { display: block; font-size: 13px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.yt-tv-item-subtitle { display: block; margin-top: 5px; color: #707887; font-size: 11px; line-height: 1.35; }
.yt-tv-empty { padding: 18px 10px; text-align: center; color: #69707b; font-size: 13px; }
.yt-tv-help { margin: 13px 0 0; color: #777f8c; font-size: 11px; line-height: 1.5; }
@media (max-width: 780px) {
  .yt-tv-layout { grid-template-columns: minmax(0,1fr); }
  .yt-tv-library { padding: 16px; }
  .yt-tv-playlist { max-height: 420px; }
}
@media (max-width: 420px) {
  .yt-tv-bezel { border-radius: 17px; padding: 7px; }
  .yt-tv-screen { border-radius: 8px; }
  .yt-tv-item { grid-template-columns: 92px minmax(0,1fr); gap: 9px; padding: 7px; }
  .yt-tv-thumb { width: 92px; }
  .yt-tv-library-header { align-items: flex-start; }
  .yt-tv-count { font-size: 10px; }
}
