/* ============================================
   WATCH PAGE - FULL SCREEN LAYOUT
   ============================================ */

.watch-page-wrapper {
  position: fixed;
  top: var(--navbar-height, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.watch-page-container {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background-color: #000;
  overflow: hidden;
}

.watch-info-bar {
  background-color: rgba(20, 20, 34, 0.95);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 10;
  backdrop-filter: blur(14px);
}

/* ============================================
   WATCH INFO
   ============================================ */

.watch-info-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.watch-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.watch-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.watch-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.watch-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Mobile: force single-line title with ellipsis */
@media (max-width: 600px) {
  .watch-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    min-width: 0;
    display: block;
  }
}

.watch-info-right {
  display: flex;
  gap: 0.875rem;
  flex-shrink: 0;
  align-items: center;
}

/* Desktop: Selects and actions side by side */
.watch-selects-group {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.watch-actions-group {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.watch-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0; /* Allow shrinking */
  flex: 1;
  max-width: 100%;
}

.watch-select-label {
  color: var(--accent-color);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  margin: 0;
  flex-shrink: 0; /* Don't shrink the icon */
}

.watch-select {
  /* Use default browser select styling */
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  outline: none;
  min-width: 150px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s;
}

/* Remove min-width constraint on mobile */
@media (max-width: 768px) {
  .watch-select {
    min-width: 0;
  }
}

.watch-select:hover {
  border-color: var(--accent-color);
}

.watch-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.watch-select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.watch-select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem;
}

.watch-player-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.watch-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


.watch-player-wrapper .no-stream-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-secondary);
}

.watch-player-wrapper .no-stream-message i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.4;
  color: var(--text-primary);
}

.watch-player-wrapper .no-stream-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.watch-player-wrapper .no-stream-message p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.back-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.back-btn:active {
  transform: translateY(-1px);
}

/* ============================================
   CLEAN IPTV PROMO (watch / channel)
   ============================================ */

.watch-clean-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  background:
    linear-gradient(105deg, rgba(255, 215, 0, 0.12) 0%, rgba(20, 20, 34, 0.95) 42%, rgba(30, 30, 47, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.watch-clean-promo:hover,
.watch-clean-promo:focus-visible {
  background:
    linear-gradient(105deg, rgba(255, 215, 0, 0.18) 0%, rgba(26, 26, 42, 0.98) 40%, rgba(30, 30, 47, 1) 100%);
  border-bottom-color: rgba(255, 215, 0, 0.35);
  outline: none;
}

.watch-clean-promo__mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.14);
  color: var(--accent);
  font-size: 1.1rem;
}

.watch-clean-promo__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.watch-clean-promo__title {
  font-family: Syne, Outfit, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--text-primary);
}

.watch-clean-promo__sub {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-clean-promo__sub strong {
  color: var(--accent);
  font-weight: 600;
}

.watch-clean-promo__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #141422;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}

.watch-clean-promo__cta .ph {
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .watch-clean-promo {
    gap: 0.625rem;
    padding: 0.55rem 0.75rem;
  }

  .watch-clean-promo__mark {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
  }

  .watch-clean-promo__title {
    font-size: 0.78rem;
  }

  .watch-clean-promo__sub {
    font-size: 0.7rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .watch-clean-promo__cta {
    padding: 0.38rem 0.65rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .watch-clean-promo__mark {
    display: none;
  }
}

