/* ============================================
   SPORTIVA - Watch Page Styles
   ============================================ */

.watch-page .main-content {
  padding-top: var(--header-height);
}

.watch-head-banner {
  width: 100%;
  background: var(--bg-primary);
  overflow: hidden;
  max-height: 150px;
}

.watch-head-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.watch-main {
  padding-top: var(--header-height);
  min-height: 100vh;
  background: var(--bg-primary);
}

.watch-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  max-width: 1600px;
  margin: 0 auto;
  gap: 0;
}

/* ============ PLAYER AREA ============ */
.watch-player-area {
  min-width: 0;
  background: var(--bg-primary);
}

.watch-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.watch-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============ CHANNEL INFO BAR ============ */
.channel-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.channel-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.channel-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}

.channel-avatar-live {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--live-red);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  animation: livePulse 1.5s ease-in-out infinite;
}

.channel-info-text {
  min-width: 0;
}

.watch-channel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-channel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.watch-category {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.watch-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(235,4,0,0.15);
  border: 1px solid rgba(235,4,0,0.3);
  color: var(--live-red);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.watch-offline-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(107,107,122,0.15);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.watch-viewers {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.channel-info-right {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.share-btn,
.notify-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.share-btn {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.share-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notify-btn {
  background: rgba(100,65,165,0.15);
  color: var(--primary-light);
  border: 1px solid rgba(100,65,165,0.3);
}

.notify-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.notify-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============ CHANNEL DESCRIPTION ============ */
.channel-description-box {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.channel-description-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ WATCH STREAM BANNER ============ */
.watch-stream-banner {
  padding: 20px;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
}

.watch-stream-banner img {
  max-width: 931px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ============ WATCH SIDEBAR ============ */
.watch-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /*height: calc(100vh - var(--header-height));*/
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
}

.watch-sidebar-ad {
  padding: 16px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.watch-sidebar-ad img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

/* ============ CHANNELS LIST ============ */
.watch-channels-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.watch-channels-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.watch-channels-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-channels-header h3 i { color: var(--primary); }

.watch-channels-scroll {
  flex: 1;
  overflow-y: auto;
}

.watch-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.watch-channel-item:last-child { border-bottom: none; }

.watch-channel-item:hover {
  background: var(--bg-hover);
}

.watch-channel-item.is-live {
  background: rgba(235,4,0,0.04);
}

.watch-channel-thumb {
  position: relative;
  width: 80px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.watch-channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
}

.watch-channel-live-badge {
  position: absolute;
  bottom: 3px;
  left: 3px;
  background: var(--live-red);
  color: white;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.watch-channel-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.watch-channel-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-channel-cat {
  font-size: 10px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.watch-channel-viewers {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.watch-channel-offline {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============ QUALITY MENU ============ */
.quality-menu {
  position: absolute;
  bottom: 56px;
  right: 12px;
  background: rgba(14,14,16,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 20;
  min-width: 100px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.quality-option {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quality-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.quality-option.active {
  color: var(--primary-light);
  background: rgba(100,65,165,0.1);
}

.quality-option.active::after {
  content: '✓';
  font-size: 12px;
}

/* ============ RESPONSIVE WATCH ============ */
@media (max-width: 1200px) {
  .watch-layout {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 900px) {
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-sidebar {
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .watch-channels-scroll {
    max-height: 400px;
  }

  .watch-channel-item {
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  .channel-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .channel-info-right {
    width: 100%;
  }

  .share-btn,
  .notify-btn {
    flex: 1;
    justify-content: center;
  }

  .watch-channel-title {
    font-size: 18px;
  }

  .watch-stream-banner {
    padding: 12px;
  }
}

/* ============ BANNER ADS 2 KOLOM ============ */
.watch-stream-banner {
  padding: 20px;
  background: var(--bg-primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.banner-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-ad-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 840 / 112;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.banner-ad-slot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.banner-ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-ad-slot:hover img {
  transform: scale(1.02);
}

.banner-ad-slot.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  gap: 6px;
}

.banner-ad-slot.placeholder i {
  font-size: 32px;
  opacity: 0.3;
}

.banner-ad-slot.placeholder span {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-ad-slot.sold {
  position: relative;
}

.banner-ad-slot.sold::after {
  content: 'SOLD';
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--success);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .watch-stream-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .banner-ad-slot {
    aspect-ratio: 300 / 80;
  }
}

@media (max-width: 480px) {
  .banner-ad-slot {
    aspect-ratio: 320 / 50;
  }
}