/* iptv-styles.css - Styles for the IPTV Player Window */

.iptv-player-window {
  width: min(800px, 95vw) !important;
  height: auto !important;
  max-height: 90vh !important;
  overflow: hidden;
  resize: none !important;
  user-select: none;
  z-index: 9100;
}

.iptv-player-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: auto;
  max-height: calc(90vh - 30px);
  overflow-y: auto;
}

.iptv-video-container {
  width: 100%;
  height: min(400px, 45vh);
  background-color: #000;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#iptv-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.iptv-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #f0f0f0;
  padding: 10px;
  border: 1px solid #d1d1d1;
  border-radius: 3px;
}

.iptv-channel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.iptv-channel-name {
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.iptv-channel-status {
  font-size: 12px;
  color: #666;
}

.iptv-nav-buttons {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.iptv-nav-btn {
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #e3e3e3);
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.iptv-nav-btn:hover {
  background: linear-gradient(180deg, #f0f0f0, #d3d3d3);
}

.iptv-nav-btn:active {
  background: linear-gradient(180deg, #d3d3d3, #e3e3e3);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.iptv-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Glass and Windows 7 aesthetics for buttons */
.iptv-nav-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}



.iptv-credits {
  font-size: 10px;
  color: #777;
  text-align: center;
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px solid #eee;
}

.iptv-credits a {
  color: #0066cc;
  text-decoration: none;
}

.iptv-credits a:hover {
  text-decoration: underline;
}
