/* ==========================================================================
   IPTV WEB PLAYER & MEDIA CATALOG STYLES
   ========================================================================== */
.player-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 600px;
}

@media (max-width: 900px) {
  .player-container {
    grid-template-columns: 1fr;
  }
}

.player-sidebar {
  background: var(--bg-card-hover);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.player-search-box {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.player-channels-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.player-channel-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-card);
  border: 1px solid transparent;
}

.player-channel-item:hover {
  background: var(--bg-sidebar-active);
  border-color: var(--gp-primary-glow);
  transform: translateX(3px);
}

.player-channel-item.active {
  background: var(--gp-gradient-glow);
  border-color: var(--gp-primary);
}

.channel-logo-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.channel-logo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.player-screen-area {
  display: flex;
  flex-direction: column;
  background: #000000;
  position: relative;
  height: 600px;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  overflow: hidden;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
}

/* ==========================================================================
   VOD TMDB POSTER GRID
   ========================================================================== */
.vod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.vod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.vod-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gp-primary);
  box-shadow: 0 12px 30px var(--gp-primary-glow);
}

.vod-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  background: #0B0E15;
  overflow: hidden;
}

.vod-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.vod-card:hover .vod-poster-img {
  transform: scale(1.08);
}

.vod-rating-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--gp-gold);
  color: var(--gp-gold);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vod-quality-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: var(--gp-primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.vod-info-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vod-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

/* ==========================================================================
   SERVER PROGRESS BARS & GAUGES
   ========================================================================== */
.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gauge-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-card-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.25);
}

.fill-orange { background: var(--gp-gradient-primary); }
.fill-blue { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.fill-green { background: linear-gradient(90deg, #10B981, #34D399); }
.fill-danger { background: linear-gradient(90deg, #EF4444, #F87171); }

/* QR Code & PIX Box */
.pix-box {
  background: var(--bg-card-hover);
  border: 2px dashed var(--gp-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-code-img {
  width: 180px;
  height: 180px;
  background: #FFFFFF;
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.copy-input-group {
  display: flex;
  width: 100%;
  max-width: 450px;
  gap: 0.5rem;
}

/* ==========================================================================
   VODPANEL TESTE DE CONTEÚDO PLAYER MODAL
   ========================================================================== */
.player-dialog {
  width: min(980px, calc(100% - 32px));
  max-width: none;
  background: #030b18;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(22, 199, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.player-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: #030b18;
  border-bottom: 1px solid rgba(22, 199, 255, 0.2);
}
.player-dialog-head .eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.player-dialog-head h2 {
  margin: 3px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.player-dialog .close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.player-dialog .close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}
.player-frame {
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.player-frame video {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  background: #000;
  object-fit: contain;
}
.player-frame p {
  position: absolute;
  max-width: 520px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(16, 37, 28, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
