* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #0b0e14;
  color: #f2f2f2;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center; }
h1 { font-size: 2.4rem; margin-bottom: 4px; }
.muted { color: #8a93a6; }
.channel-id {
  font-size: 4rem; font-weight: 700; letter-spacing: 0.3rem;
  background: linear-gradient(90deg,#7c4dff,#00e5c7); -webkit-background-clip: text; color: transparent;
  margin: 16px 0;
}
.stats { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 28px 0; }
.stat-card {
  background: #151a24; border: 1px solid #232a38; border-radius: 12px;
  padding: 18px 28px; min-width: 160px;
}
.stat-card .label { font-size: 0.8rem; color: #8a93a6; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px; text-decoration: none;
  background: #7c4dff; color: #fff; font-weight: 600; font-size: 1.1rem; border: none; cursor: pointer;
}
.btn:hover { background: #6a3cf0; }
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.badge { background: #232a38; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; }
.badge.live { background: #1f4d3a; color: #4ade80; }

.settings-panel {
  background: #151a24; border: 1px solid #232a38; border-radius: 12px;
  padding: 20px 24px; margin-top: 32px; max-width: 420px; margin-left: auto; margin-right: auto;
}
.settings-panel h3 { margin: 0 0 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: .05em; color: #8a93a6; }
.settings-panel label { display: block; font-size: .85rem; color: #cbd2de; margin-bottom: 8px; }
.settings-row { display: flex; gap: 10px; }
.settings-row input[type=number] {
  flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid #2c313c; background: #0f1115; color: #fff; font-size: 1rem;
}
.settings-panel .btn { padding: 10px 22px; font-size: 1rem; }
.settings-panel .muted { font-size: .8rem; margin-top: 10px; }

/* ================= Fullscreen TV player (home.php) ================= */
html, body.fullscreen-body { height: 100%; margin: 0; overflow: hidden; background: #000; }

.tv-shell { position: relative; width: 100vw; height: 100vh; background: #000; overflow: hidden; }

.video-layer { position: absolute; inset: 0; }
#player { width: 100%; height: 100%; }

.video-scrim {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #05070b; color: #8a93a6; font-size: 1.6rem; text-align: center; padding: 0 8vw;
}

/* Top overlay: left = queue count + next song, right = users online */
.tv-top-overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 3.2vh 3.5vw 4vh;
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 65%, transparent 100%);
}
.tv-lane-left { min-width: 0; }
.tv-queue-count { font-size: 1.3rem; font-weight: 700; }
.tv-queue-count strong { color: #00e5c7; }
.tv-next-title { font-size: 1.1rem; color: #cbd2de; margin-top: 4px; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-lane-right { flex: 0 0 auto; }

/* Reservation toast, top-right, fades after 5s */
.toast-notification {
  position: absolute; top: 3vh; right: 3.5vw; z-index: 10;
  background: rgba(21,26,36,.95); border: 1px solid #232a38; border-left: 4px solid #00e5c7;
  border-radius: 10px; padding: 14px 18px; max-width: 340px; font-size: .95rem; line-height: 1.4;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.toast-notification.visible { opacity: 1; transform: translateY(0); }

/* Bottom progress bar - full width, 10px */
.progress-bar-track {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 6;
  background: rgba(255,255,255,.12);
}
.progress-bar-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg,#7c4dff,#00e5c7);
  transition: width .5s linear;
}

/* "V" / Arrow-Up queue overlay - doesn't cover bottom 30% of the screen */
.queue-overlay {
  position: absolute; top: 14vh; left: 3.5vw; z-index: 8;
  width: 100%; max-width: 700px; max-height: 56vh;
  background: rgba(11,14,20,.7); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.queue-overlay.visible { opacity: 1; transform: translateY(0); }
.queue-overlay-header {
  padding: 14px 18px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
  color: #8a93a6; border-bottom: 1px solid rgba(255,255,255,.1); flex: 0 0 auto;
}
.queue-overlay-list { overflow-y: auto; padding: 6px 10px; }
.queue-overlay-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; }
.queue-overlay-item img { width: 72px; border-radius: 6px; flex: 0 0 auto; }
.qo-index { width: 26px; flex: 0 0 auto; color: #8a93a6; font-size: .9rem; }
.qo-info { min-width: 0; }
.qo-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qo-meta { font-size: .8rem; color: #9aa3b2; margin-top: 2px; }

.key-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 6;
  font-size: .8rem; color: rgba(255,255,255,.35);
}
