/* Ao vivo: lista de canais com mini player lateral */
.live-catalog-layout {
  grid-template-columns: minmax(185px, 0.72fr) minmax(260px, 1.05fr) minmax(290px, 1.2fr);
  gap: 18px;
}

@media (min-width: 681px) {
  .catalog-layout > .categories {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100dvh - 108px);
  }
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-row {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 13px;
  text-align: left;
  color: var(--text);
  background: rgba(18,22,29,.92);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.channel-row:hover,
.channel-row:focus-visible {
  border-color: var(--edge-strong);
  background: rgba(31,36,46,.97);
  transform: translateX(2px);
}

.channel-row.active {
  border-color: var(--gold-light);
  background: linear-gradient(100deg, rgba(212,175,55,.18), rgba(18,22,29,.96) 65%);
  box-shadow: inset 3px 0 0 var(--gold-light);
}

.channel-row-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 11px;
  background: #10141b;
}

.channel-row-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.channel-row-logo .placeholder-icon svg {
  width: 23px;
  height: 23px;
  color: rgba(242,201,76,.62);
}

.channel-row-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.channel-row-title {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-row-meta {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.channel-row-play {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 50%;
}

.channel-row-play svg { width: 15px; height: 15px; }

.live-mini-player {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: rgba(15,19,25,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
}

#liveMiniPlayer[hidden],
#liveMiniPlaceholder[hidden] { display: none !important; }

.live-mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.live-mini-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.live-mini-action {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(212,175,55,.32);
  border-radius: 10px;
  color: var(--gold-light);
  background: rgba(9,12,17,.88);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.live-mini-action:hover,
.live-mini-action:focus-visible { border-color: var(--gold-light); }

#liveMiniExit[hidden] { display: none !important; }

.live-mini-heading h3 {
  max-width: 230px;
  margin: 5px 0 0;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-mini-badge {
  flex: 0 0 auto;
  color: #ff8989;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.live-mini-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: #050608;
}

.live-mini-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050608;
}

.live-mini-stage:fullscreen,
.live-mini-stage:-webkit-full-screen {
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}

.live-mini-stage:fullscreen video,
.live-mini-stage:-webkit-full-screen video {
  width: 100vw;
  height: 100dvh;
}

.live-mini-stage:fullscreen::backdrop,
.live-mini-stage:-webkit-full-screen::backdrop { background: #000; }

.live-mini-player.expanded {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) clamp(14px, 3vw, 42px) max(14px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: #030405;
}

.live-mini-player.expanded .live-mini-stage {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 12px;
}

.live-mini-player.expanded .live-mini-stage video {
  width: 100%;
  height: 100%;
}

.live-mini-player.expanded .live-mini-help { display: none; }

.live-mini-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(145deg, rgba(20,25,33,.97), rgba(5,7,10,.98));
  pointer-events: none;
}

.live-mini-placeholder strong {
  max-width: 360px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.live-mini-signal { color: var(--gold-light); }
.live-mini-signal svg { width: 30px; height: 30px; }

.live-mini-help {
  margin: 11px 0 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

.live-mini-epg { margin-top: 12px; color: #e4e6eb; font-size: 12px; line-height: 1.6; }
.live-mini-epg div + div { color: #b9bec8; }

@media (max-width: 1180px) and (min-width: 951px) {
  .live-catalog-layout {
    grid-template-columns: minmax(170px, .7fr) minmax(245px, 1fr) minmax(270px, 1fr);
    gap: 12px;
  }
  .live-mini-player { padding: 13px; }
}

@media (max-width: 950px) {
  .live-catalog-layout { grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); }
  .live-catalog-layout .live-mini-player { grid-column: 1 / -1; position: static; }
}

@media (max-width: 680px) {
  .live-catalog-layout { display: block; }
  .live-catalog-layout .live-mini-player { margin-top: 18px; }
  .channel-row { min-height: 62px; grid-template-columns: 42px minmax(0,1fr) 30px; gap: 10px; padding: 7px 9px; }
  .channel-row-logo { width: 40px; height: 40px; border-radius: 9px; }
  .channel-row-title { font-size: 12px; }
  .live-mini-player { padding: 12px; }
  .live-mini-heading-actions { gap: 5px; }
  .live-mini-action { min-height: 38px; padding: 6px 8px; font-size: 10px; }
}

