/* styles.css – Dark theme, 1280x720 fixed viewport, all px */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 1280px;
  height: 720px;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ========== HOME SCREEN ========== */

#home-screen {
  width: 1280px;
  height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.home-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: 2px;
}

.home-buttons {
  display: flex;
  gap: 40px;
}

.home-btn {
  width: 280px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid transparent;
  border-radius: 12px;
  color: #ccc;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.home-btn.focused {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ========== PLAYER SCREEN ========== */

#player-screen {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  background: #000;
}

#player-screen.active {
  display: block;
}

/* Video element fills screen */
#player-video,
.video-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
}

/* Hide default Video.js UI chrome */
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button,
.video-js .vjs-loading-spinner {
  display: none !important;
}

/* ========== AD OVERLAY ========== */

#ad-overlay {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.75);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 18px;
  z-index: 100;
}

#ad-overlay.visible {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

#ad-overlay .ad-label {
  color: #f5c518;
  font-weight: 600;
}

#ad-overlay .ad-pod-info {
  color: #f5c518;
  font-weight: 600;
  margin-left: 4px;
}

#ad-overlay .ad-countdown {
  color: #fff;
  margin-left: 8px;
  min-width: 36px;
  text-align: right;
}

/* ========== LIVE CONTROLS ========== */

#live-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 50;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

#live-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

.live-play-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid transparent;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 44px;
  color: #fff;
  -webkit-transition: border-color 0.15s, background 0.15s;
  transition: border-color 0.15s, background 0.15s;
}

.live-play-btn.focused {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.live-btn-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
}

.live-btn-row > * + * {
  margin-top: 24px;
}

.live-back-btn {
  padding: 10px 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid transparent;
  font-size: 16px;
  color: #aaa;
  -webkit-transition: border-color 0.15s, color 0.15s, background 0.15s;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.live-back-btn.focused {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* ========== VOD CONTROLS ========== */

#vod-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1280px;
  z-index: 50;
  background: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.85));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 20px 30px 24px;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

#vod-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Seekbar */
.seekbar-row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-bottom: 16px;
}

.seekbar-row > * + * {
  margin-left: 12px;
}

.time-display {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: center;
}

.seekbar-track {
  position: relative;
  -webkit-flex: 1;
  flex: 1;
  max-width: 931px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.seekbar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  background: #e50914;
  border-radius: 3px;
  width: 0%;
}

.seekbar-thumb {
  position: absolute;
  top: -5px;
  left: 0%;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

/* Button row */
.vod-button-row {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}

.vod-button-row > * + * {
  margin-left: 24px;
}

.vod-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid transparent;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 20px;
  color: #ccc;
  -webkit-transition: border-color 0.15s, color 0.15s, background 0.15s;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.vod-btn.focused {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.vod-btn .btn-label {
  font-size: 13px;
}

/* ========== UTILITY ========== */

.screen-hidden {
  display: none !important;
}
