/* ==========================================================================
   Caetano News - TV Ao Vivo (TV Online)
   Inspirado no padrão Estado do Pará Online / TVC
   ========================================================================== */

/* Botão Ao Vivo no Menu de Navegação */
.nav-live {
  display: inline-flex !important;
  align-items: center !important;
  gap: .42rem !important;
  margin-left: auto;
  padding: .32rem .95rem !important;
  min-height: 34px !important;
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff !important;
  font: 800 .95rem/1 var(--label-font) !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.nav-live:hover {
  background: #b91c1c !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
}

.nav-live:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Indicador Pulsante (Live Dot) */
.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: live-pulse 1.6s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Grid Principal da Página TV Ao Vivo */
.tv-main {
  padding-bottom: 50px;
}

.live-stage {
  margin-top: 14px;
}

.live-stage__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* Frame do Player de Vídeo (16:9) */
.live-stage__player {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.live-stage__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #030a14;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 18, 38, 0.22);
}

.live-stage__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tela de Standby do Canal quando aguardando live */
.live-stage__standby {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, #0d284a 0%, #001224 85%);
  color: #ffffff;
  padding: 24px;
  text-align: center;
}

.standby-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.standby-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(220, 38, 38, 0.85);
  border-radius: 9999px;
  font: 700 .75rem/1 var(--body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.standby-content h2 {
  font: 800 clamp(1.4rem, 2.8vw, 1.95rem)/1.15 var(--label-font);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #ffffff;
}

.standby-content p {
  font-size: .95rem;
  color: #b7c7d8;
  line-height: 1.45;
}

.standby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.btn-live-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .18s;
}

.btn-live-launch:hover {
  background: #b91c1c;
}

.btn-live-launch .icon-play {
  width: 18px;
  height: 18px;
}

.btn-live-channel {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color .18s;
}

.btn-live-channel:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Barra inferior do Player */
.live-stage__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.live-stage__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font: 800 .75rem/1 var(--body-font);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.badge--live.badge--off {
  background: #506277;
}

.live-stage__title {
  font: 800 clamp(1.3rem, 2.2vw, 1.7rem)/1.15 var(--label-font);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy);
}

.live-stage__desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

/* Compartilhamento Social */
.share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 2px;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf2f6;
  color: var(--ink);
  border: 1px solid #dce4eb;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s, color .18s, transform .18s;
}

.share__btn:hover {
  transform: translateY(-2px);
}

.share__btn--wa:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.share__btn--fb:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.share__btn--x:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.share__btn--copy:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Barra Lateral (Sidebar) */
.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card No Ar Agora */
.onair-card {
  background: var(--navy);
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 8px;
  border-left: 5px solid #dc2626;
  box-shadow: 0 4px 16px rgba(0, 30, 61, 0.12);
}

.onair-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.onair-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 .75rem/1 var(--body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ff9d60;
}

.onair-strip__time {
  font-size: .8rem;
  font-weight: 700;
  color: #cad8e6;
}

.live-now__title {
  display: block;
  font: 800 1.35rem/1.2 var(--label-font);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #ffffff;
}

.live-now__apres {
  display: block;
  font-size: .88rem;
  color: #cad8e6;
  margin-top: 4px;
}

/* Card A Seguir */
.next-card {
  background: #edf2f6;
  padding: 12px 16px;
  border-radius: 6px;
  border-left: 3px solid #8ba0b5;
}

.next-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.next-title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}

/* Botão do WhatsApp */
.btn--wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: background-color .18s, transform .18s, box-shadow .18s;
}

.btn--wa:hover {
  background: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn--block {
  width: 100%;
}

/* Grade de Programação */
.schedule-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.schedule-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.schedule-card__header h3 {
  font: 800 1.15rem/1 var(--label-font);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
}

.schedule-clock {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.schedule-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.schedule-tabs .tab-btn {
  flex: 1;
  padding: 6px 8px;
  background: #edf2f6;
  border: 1px solid #dce4eb;
  border-radius: 4px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.schedule-tabs .tab-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.schedule-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  background: #fafbfc;
  border: 1px solid #eef2f6;
  transition: background-color .15s;
}

.schedule-item.is-current {
  background: #fff5f5;
  border-color: #fecaca;
  border-left: 4px solid #dc2626;
}

.schedule-item__time {
  font-size: .8rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 82px;
}

.schedule-item.is-current .schedule-item__time {
  color: #dc2626;
}

.schedule-item__info {
  flex: 1;
  min-width: 0;
}

.schedule-item__info strong {
  display: block;
  font-size: .88rem;
  color: var(--ink);
  line-height: 1.25;
}

.schedule-item__info > span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Card do Canal YouTube */
.channel-card {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-card__info strong {
  display: block;
  font-size: .95rem;
  color: var(--ink);
}

.channel-card__info span {
  display: block;
  font-size: .8rem;
  color: var(--muted);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #cc0000;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background-color .18s;
}

.btn-subscribe:hover {
  background: #990000;
}

/* Faixa / Ribbon de Destaque na Capa */
.live-ribbon {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
  color: #ffffff;
  padding: 9px 0;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.live-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.live-ribbon__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 .85rem/1 var(--body-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-ribbon__text {
  flex: 1;
  min-width: 200px;
  font-weight: 600;
  font-size: .95rem;
}

.live-ribbon__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #dc2626 !important;
  font-weight: 800;
  font-size: .85rem;
  padding: 5px 14px;
  border-radius: 9999px;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .18s, background-color .18s;
}

.live-ribbon__btn:hover {
  transform: scale(1.04);
  background: #fff5f5;
}

/* Toast de Link Copiado */
.tv-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #001e3d;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-left: 4px solid #25d366;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.tv-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade Mobile / Tablet */
@media (max-width: 960px) {
  .live-stage__grid {
    grid-template-columns: 1fr;
  }

  .nav-live {
    margin-left: 0;
  }
}

/* Seção dos Últimos Vídeos do Canal na Capa (Index) */
.latest-videos-section {
  margin-top: 36px;
  margin-bottom: 28px;
}

.heading-yt-icon {
  color: #cc0000;
  vertical-align: middle;
  margin-right: 6px;
}

.section-heading-link {
  margin-left: auto;
  font: 700 .85rem/1 var(--body-font);
  color: #cc0000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-heading-link:hover {
  text-decoration: underline;
  color: #990000;
}

.videos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.video-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 20, 40, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 20, 40, 0.12);
}

.video-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: #030a14;
  overflow: hidden;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.video-card:hover .video-card__thumb img {
  transform: scale(1.05);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform .2s ease, background-color .2s ease;
}

.video-card__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.15);
  background: #cc0000;
}

.video-card__badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.video-card__content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card__content h3 {
  font: 700 1.05rem/1.3 var(--body-font);
  margin: 0;
  color: var(--navy);
}

.video-card__content h3 a {
  text-decoration: none;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__content h3 a:hover {
  color: #cc0000;
}

.tv-news { margin-top: 48px; padding-bottom: 32px; }
.tv-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.tv-news__card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.tv-news__photo { display: block; margin-bottom: 16px; overflow: hidden; border-radius: 4px; }
.tv-news__photo :is(.photo-frame, .photo) { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; }
.tv-news__copy { display: grid; gap: 9px; }
.tv-news__copy h3 { font: 700 1.35rem/1.3 var(--story-font); overflow-wrap: anywhere; }
.tv-news__copy h3 a { text-decoration: none; }
.tv-news__copy h3 a:hover { color: var(--rust); text-decoration: underline; }
.tv-news__copy p { color: var(--muted); font-size: .9rem; }
.tv-news__copy time { color: var(--muted); font-size: .78rem; }
@media (max-width: 960px) {
  .tv-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tv-news { margin-top: 32px; }
  .tv-news__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.video-card__meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: .8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .videos-grid-3 {
    grid-template-columns: 1fr;
  }
}
