@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #0b1021;
  --panel: #0f162f;
  --panel-2: #131c39;
  --text: #e9ecf5;
  --muted: #a8b3cf;
  --accent: #1fd37a;
  --accent-2: #46a1ff;
  --danger: #ff6b6b;
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(100% 100% at 0% 0%, rgba(70, 161, 255, 0.15), transparent),
    radial-gradient(100% 100% at 100% 0%, rgba(31, 211, 122, 0.18), transparent),
    var(--bg);
  color: var(--text);
}

a {
  color: var(--accent-2);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.brand {
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
}

.title {
  margin: 12px 0 4px;
  font-size: 22px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13px;
}

button,
.button {
  cursor: pointer;
  border: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #26f294);
  color: #041226;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(31, 211, 122, 0.35);
}

button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: none;
}

button.danger {
  background: linear-gradient(135deg, #ff7e7e, #ff5555);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 111, 111, 0.35);
}

button:active {
  transform: translateY(1px);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #041226;
  background: var(--accent);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
}

.queue-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.queue-item img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}

.queue-item .meta {
  display: grid;
  gap: 4px;
}

.queue-item .meta .title {
  margin: 0;
  font-size: 15px;
}

.queue-item .meta .muted {
  font-size: 12px;
}

.section {
  margin: 18px 0 10px;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 12px;
  text-align: left;
}

.table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
}

/* TV view */
.tv-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(160deg, #040813 0%, #0a1022 40%, #050b19 100%);
}

.tv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.tv-video {
  position: relative;
  height: calc(100vh - 200px);
  margin: 0 24px 20px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}

.tv-video iframe {
  width: 100%;
  height: 100%;
}

.qr-box {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.2s ease;
}

.qr-box img {
  width: 120px;
  height: 120px;
  display: block;
}

.now-playing {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 360px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.now-playing .label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.now-playing .song {
  margin: 4px 0;
  font-weight: 700;
  font-size: 16px;
}

.now-playing .from {
  font-size: 13px;
  color: var(--muted);
}

/* Remote view */
.remote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
}

.results {
  display: grid;
  gap: 12px;
}

.result {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 12px;
}

.result img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
}

.result .meta {
  display: grid;
  gap: 6px;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Billing */
.products {
  display: grid;
  gap: 10px;
}

.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.complaints {
  display: grid;
  gap: 10px;
}

.complaint {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .tv-video {
    margin: 0 12px 12px;
    height: 60vh;
  }

  .qr-box {
    right: 12px;
    bottom: 12px;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .result {
    grid-template-columns: 1fr;
  }
}

/* --- TV Layout (match index.php style) --- */
.tv-body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background-color: #050505;
  color: #ffffff;
  font-family: "Outfit", "Manrope", sans-serif;
  background-image: radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.15), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.1), transparent 40%);
}

.tv-app {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 100vh;
  width: 100vw;
}

.tv-body.sidebar-hidden .tv-app {
  grid-template-columns: 1fr;
}

.tv-body.sidebar-hidden .tv-sidebar {
  display: none;
}

.tv-stage {
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tv-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transition: filter 0.5s ease;
}

/* Atmosphere Filters */
.tv-body[data-atmosphere="concert"] .tv-video-wrap {
  filter: saturate(1.4) contrast(1.1) brightness(1.1);
}

.tv-body[data-atmosphere="concert"] .tv-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 0, 255, 0.05), rgba(0, 255, 255, 0.05));
  pointer-events: none;
  z-index: 15;
}

.tv-body[data-atmosphere="retro"] .tv-video-wrap {
  filter: sepia(0.5) contrast(0.9) brightness(0.95);
}

.tv-body[data-atmosphere="monochrome"] .tv-video-wrap {
  filter: grayscale(1);
}

.tv-body[data-atmosphere="dreamy"] .tv-video-wrap {
  filter: blur(0.5px) saturate(0.8) brightness(1.1);
}

.tv-body[data-atmosphere="dreamy"] .tv-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
  z-index: 15;
}

.tv-video-wrap #player {
  width: 100%;
  height: 100%;
  border: none;
}

.tv-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tv-overlay-buttons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Auto-hide state for overlay buttons saat musik bermain */
.tv-overlay-buttons.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

.tv-overlay-toggle {
  position: relative;
  /* Reset absolute positioning */
  top: auto;
  left: auto;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-size: 14px;
}

.tv-overlay-toggle:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateX(2px);
}

.tv-overlay-toggle i {
  margin-right: 8px;
  font-size: 18px;
}

/* Hide old selectors if they exist or reset specific ones */
.tv-sidebar-toggle {
  display: none;
  /* Hide legacy button if present */
}

.tv-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.tv-progress #progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f43f5e, #38bdf8);
  box-shadow: 0 0 20px #f43f5e;
  transition: width 0.3s linear;
}

.tv-ticker {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 50%;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 8px 14px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 24;
  pointer-events: none;
}

.tv-ticker.show {
  opacity: 1;
}

.tv-ticker span {
  white-space: nowrap;
  display: inline-block;
  animation: tv-ticker-scroll 10s linear infinite;
  font-weight: 700;
  letter-spacing: 0.4px;
}

@keyframes tv-ticker-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.tv-watermark {
  position: absolute;
  top: 14px;
  right: 20px;
  z-index: 23;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.tv-watermark.has-image {
  padding: 6px;
  gap: 0;
  border-radius: 999px;
  perspective: 700px;
}

.tv-watermark.has-image span {
  display: none;
}

.tv-watermark>* {
  position: relative;
  z-index: 1;
}

.tv-watermark.has-image::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -120%;
  width: 50%;
  transform: skewX(-12deg);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: tv-watermark-shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.tv-watermark img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  border-radius: 50%;
  transform-origin: center;
  transform-style: preserve-3d;
}

.tv-watermark.has-image img {
  animation: tv-watermark-glow 3.8s ease-in-out infinite, tv-watermark-flip 12s ease-in-out infinite;
}

@keyframes tv-watermark-shine {
  0% {
    transform: translateX(0) skewX(-12deg);
    opacity: 0;
  }

  15% {
    opacity: 0.6;
  }

  45% {
    transform: translateX(260%) skewX(-12deg);
    opacity: 0;
  }

  100% {
    transform: translateX(260%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes tv-watermark-glow {

  0%,
  100% {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1);
  }

  50% {
    filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.25)) brightness(1.15);
  }
}

@keyframes tv-watermark-flip {
  0% {
    transform: rotateY(0deg);
  }

  30% {
    transform: rotateY(0deg);
  }

  45% {
    transform: rotateY(180deg);
  }

  70% {
    transform: rotateY(180deg);
  }

  85% {
    transform: rotateY(360deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.tv-welcome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.18), transparent 50%),
    #050505;
  pointer-events: none;
  perspective: 1000px;
}

.tv-welcome img {
  width: clamp(240px, 46vw, 560px);
  height: clamp(240px, 46vw, 560px);
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
  transform-style: preserve-3d;
  animation: tv-welcome-flip 2.6s ease-in-out infinite;
}

@keyframes tv-welcome-flip {
  0% {
    transform: rotateY(0deg);
  }

  35% {
    transform: rotateY(0deg);
  }

  55% {
    transform: rotateY(180deg);
  }

  75% {
    transform: rotateY(180deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.tv-intermission {
  --intermission-accent: #38bdf8;
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(244, 63, 94, 0.18), transparent 50%),
    linear-gradient(140deg, rgba(7, 12, 22, 0.7), rgba(12, 18, 32, 0.85));
  background-size: cover;
  background-position: center;
}

.tv-intermission.show {
  opacity: 1;
}

.tv-intermission-inner {
  text-align: center;
  padding: 30px 36px;
  border-radius: 22px;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  max-width: 520px;
}

.tv-intermission-badge {
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--intermission-accent);
  font-weight: 700;
}

.tv-intermission-title {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 800;
  color: #f8fafc;
}

.tv-intermission-sub {
  margin-top: 6px;
  font-size: 18px;
  color: rgba(226, 232, 240, 0.9);
}

.tv-intermission-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(203, 213, 225, 0.85);
}

.tv-selfie {
  position: absolute;
  inset: 0;
  z-index: 16;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tv-selfie.show {
  opacity: 1;
}

.tv-selfie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-selfie::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
}

.tv-selfie[data-filter="blur"] img {
  filter: blur(8px) saturate(1.1) brightness(1.05);
}

.tv-selfie[data-filter="none"] img {
  filter: none;
}

.tv-qr {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tv-qr.hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.tv-queue-overlay {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32%;
  max-width: 420px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  z-index: 18;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.tv-queue-overlay.hidden {
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
}

.tv-queue-overlay-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-queue-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
}

.tv-queue-overlay-header button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.tv-queue-overlay-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.tv-queue-overlay-list::-webkit-scrollbar {
  width: 4px;
}

.tv-queue-overlay-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tv-q-item.overlay {
  background: rgba(255, 255, 255, 0.05);
}

.tv-local-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tv-local-overlay.hidden {
  display: none;
}

.tv-local-inner {
  width: min(1000px, 92vw);
  background: rgba(15, 18, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 12px;
}

.tv-local-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #fff;
}

.tv-local-header button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.tv-local-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-local-select {
  flex: 1 1 240px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  padding: 10px 12px;
}

.tv-local-actions {
  display: flex;
  gap: 8px;
}

.tv-local-breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.tv-local-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.tv-local-status.error {
  color: #fca5a5;
}

.tv-local-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 6px;
}

.tv-local-list::-webkit-scrollbar {
  width: 6px;
}

.tv-local-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.tv-local-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}

.tv-local-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.tv-local-card.disabled {
  opacity: 0.5;
}

.tv-local-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #38bdf8;
}

.tv-local-card.dir .tv-local-icon {
  color: #a5b4fc;
}

.tv-local-name {
  font-weight: 600;
  font-size: 13px;
  word-break: break-word;
}

.tv-local-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.tv-qr-card {
  position: relative;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.tv-qr-card img {
  width: 140px;
  height: 140px;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
}

.tv-qr-text {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  word-break: break-all;
}

.tv-qr-close {
  position: absolute;
  top: 6px;
  right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.tv-play-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 35;
}

.tv-play-overlay.show {
  display: flex;
}

.tv-play-overlay button {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: #0b1220;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.tv-sidebar {
  background: rgba(20, 20, 25, 0.55);
  backdrop-filter: blur(25px);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  position: relative;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
  z-index: 20;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tv-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f43f5e, #38bdf8);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.tv-brand-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.tv-brand-sub {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 2px;
}

.tv-now {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.tv-now-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fb7185;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-bars {
  display: flex;
  gap: 3px;
  height: 12px;
  align-items: flex-end;
}

.tv-bar {
  width: 3px;
  background: #f43f5e;
  animation: tv-bounce 1s infinite ease-in-out;
}

.tv-bar:nth-child(2) {
  animation-delay: 0.2s;
  height: 60%;
}

.tv-bar:nth-child(3) {
  animation-delay: 0.4s;
  height: 30%;
}

@keyframes tv-bounce {

  0%,
  100% {
    height: 20%;
  }

  50% {
    height: 100%;
  }
}

.tv-now-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px 0;
  color: #fff;
}

.tv-now-meta {
  font-size: 14px;
  color: #94a3b8;
}

.tv-status-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tv-status-pill.mic-off {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.35);
}

.tv-status-pill.mic-on {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
}

.tv-status-pill.mic-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

.tv-queue-section {
  display: none;
}

.tv-section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.tv-queue-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 5px;
}

.tv-queue-list::-webkit-scrollbar {
  width: 4px;
}

.tv-queue-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tv-q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.2s;
}

.tv-q-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.tv-q-thumb {
  width: 56px;
  height: 36px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.tv-q-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-q-info {
  flex: 1;
  min-width: 0;
}

.tv-q-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.tv-q-artist {
  font-size: 13px;
  color: #94a3b8;
}

.tv-q-num {
  font-family: "Space Grotesk", monospace;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
}

.tv-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 20px 0;
  font-style: italic;
}

.tv-footer {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-qr-mini-text {
  font-size: 12px;
  color: #94a3b8;
}

.tv-qr-mini-url {
  font-size: 13px;
  color: #fff;
  word-break: normal;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .tv-app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .tv-sidebar {
    flex-direction: row;
    height: auto;
    padding: 15px;
    overflow-x: auto;
    align-items: center;
  }

  .tv-queue-section {
    display: none;
  }

  .tv-now {
    width: 320px;
    flex-shrink: 0;
  }

  .tv-footer {
    margin-left: auto;
    width: auto;
  }
}

/* Keep desktop TV layout even when TV browser reports a narrow CSS viewport (e.g. 960px compatibility mode). */
@media (max-width: 1024px) {
  .tv-body.tv-force-desktop .tv-app {
    grid-template-columns: 1fr 340px;
    grid-template-rows: 1fr;
  }

  .tv-body.tv-force-desktop .tv-sidebar {
    flex-direction: column;
    height: 100vh;
    padding: 30px;
    overflow: hidden;
    align-items: stretch;
  }

  .tv-body.tv-force-desktop .tv-now {
    width: auto;
    flex-shrink: 1;
  }

  .tv-body.tv-force-desktop .tv-footer {
    margin-left: 0;
    width: 100%;
  }
}

/* --- TV Large Screens (55"+) --- */
@media (min-width: 1920px) {
  .tv-app {
    grid-template-columns: 1fr 420px;
  }

  .tv-sidebar {
    padding: 36px;
  }

  .tv-sidebar-toggle,
  .tv-overlay-toggle {
    padding: 12px 16px;
    font-size: 14px;
  }

  .tv-overlay-toggle {
    top: 72px;
  }

  .tv-local-toggle {
    top: 126px;
  }

  .tv-progress {
    height: 8px;
  }

  .tv-ticker {
    padding: 10px 18px;
    border-radius: 16px;
  }

  .tv-ticker span {
    font-size: 16px;
  }

  .tv-watermark {
    font-size: 13px;
  }

  .tv-watermark img {
    width: 120px;
    height: 120px;
  }

  .tv-qr {
    right: 28px;
    bottom: 28px;
  }

  .tv-qr-card {
    padding: 16px;
  }

  .tv-qr-card img {
    width: 140px;
    height: 140px;
  }

  .tv-qr-text {
    font-size: 14px;
  }

  .tv-qr-close {
    width: 30px;
    height: 30px;
  }

  .tv-play-overlay button {
    padding: 18px 24px;
    font-size: 20px;
  }

  .tv-brand {
    gap: 18px;
  }

  .tv-logo {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .tv-brand-title {
    font-size: 24px;
  }

  .tv-brand-sub {
    font-size: 14px;
  }

  .tv-now {
    padding: 24px;
    border-radius: 24px;
  }

  .tv-now-label {
    font-size: 13px;
  }

  .tv-bars {
    height: 16px;
  }

  .tv-bar {
    width: 4px;
  }

  .tv-now-title {
    font-size: 30px;
  }

  .tv-now-meta {
    font-size: 16px;
  }

  .tv-status-pill {
    font-size: 14px;
    padding: 8px 14px;
  }

  .tv-section-title {
    font-size: 14px;
  }

  .tv-q-thumb {
    width: 72px;
    height: 46px;
  }

  .tv-q-title {
    font-size: 18px;
  }

  .tv-q-artist {
    font-size: 15px;
  }

  .tv-q-num {
    font-size: 18px;
  }

  .tv-footer {
    padding: 16px;
  }

  .tv-qr-mini-text {
    font-size: 14px;
  }

  .tv-qr-mini-url {
    font-size: 15px;
  }

  .tv-queue-overlay {
    max-width: 520px;
    padding: 20px;
  }

  .tv-queue-overlay-header {
    font-size: 16px;
  }

  .tv-queue-overlay-header button {
    width: 34px;
    height: 34px;
  }

  .tv-queue-overlay-list {
    gap: 12px;
  }

  .tv-local-inner {
    width: min(1200px, 92vw);
    padding: 22px;
  }

  .tv-local-header {
    font-size: 18px;
  }

  .tv-local-header button {
    width: 34px;
    height: 34px;
  }

  .tv-local-select {
    padding: 12px 14px;
    font-size: 14px;
  }

  .tv-local-breadcrumb,
  .tv-local-status {
    font-size: 13px;
  }

  .tv-local-card {
    padding: 16px;
  }

  .tv-local-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .tv-local-name {
    font-size: 15px;
  }

  .tv-local-meta {
    font-size: 12px;
  }

  .tv-intermission-inner {
    max-width: 640px;
    padding: 40px 48px;
  }

  .tv-intermission-badge {
    font-size: 14px;
  }

  .tv-intermission-title {
    font-size: 48px;
  }

  .tv-intermission-sub {
    font-size: 22px;
  }

  .tv-intermission-note {
    font-size: 16px;
  }

  .room-gate-rooms {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .tv-loading-logo {
    width: 110px;
    height: 110px;
    font-size: 34px;
  }

  .tv-loading-title {
    font-size: 28px;
  }

  .tv-loading-sub {
    font-size: 16px;
    max-width: 480px;
  }

  .tv-loading .remote-input {
    font-size: 16px;
    padding: 14px 14px 14px 46px;
  }

  .tv-loading .remote-btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  .tv-room-switch {
    padding: 14px;
    font-size: 15px;
  }

  .tv-volume-indicator {
    font-size: 15px;
  }

  .tv-volume-bar {
    height: 10px;
  }

  .tv-timer-label {
    font-size: 14px;
  }

  .tv-timer-value {
    font-size: 36px;
  }

  .tv-timer-note {
    font-size: 13px;
  }
}

@media (min-width: 2560px) {
  .tv-app {
    grid-template-columns: 1fr 520px;
  }

  .tv-sidebar {
    padding: 44px;
  }

  .tv-sidebar-toggle,
  .tv-overlay-toggle {
    padding: 16px 22px;
    font-size: 16px;
  }

  .tv-overlay-toggle {
    top: 80px;
  }

  .tv-local-toggle {
    top: 146px;
  }

  .tv-progress {
    height: 10px;
  }

  .tv-ticker {
    padding: 12px 22px;
    border-radius: 18px;
  }

  .tv-ticker span {
    font-size: 20px;
  }

  .tv-watermark {
    font-size: 16px;
  }

  .tv-watermark img {
    width: 160px;
    height: 160px;
  }

  .tv-qr {
    right: 36px;
    bottom: 36px;
  }

  .tv-qr-card {
    padding: 22px;
    border-radius: 18px;
  }

  .tv-qr-card img {
    width: 180px;
    height: 180px;
  }

  .tv-qr-text {
    font-size: 18px;
  }

  .tv-qr-close {
    width: 38px;
    height: 38px;
  }

  .tv-play-overlay button {
    padding: 24px 30px;
    font-size: 26px;
  }

  .tv-brand {
    gap: 20px;
  }

  .tv-logo {
    width: 78px;
    height: 78px;
    font-size: 30px;
  }

  .tv-brand-title {
    font-size: 30px;
  }

  .tv-brand-sub {
    font-size: 18px;
  }

  .tv-now {
    padding: 30px;
    border-radius: 26px;
  }

  .tv-now-label {
    font-size: 16px;
  }

  .tv-bars {
    height: 22px;
  }

  .tv-bar {
    width: 5px;
  }

  .tv-now-title {
    font-size: 40px;
  }

  .tv-now-meta {
    font-size: 20px;
  }

  .tv-status-pill {
    font-size: 18px;
    padding: 10px 18px;
  }

  .tv-section-title {
    font-size: 16px;
  }

  .tv-q-thumb {
    width: 96px;
    height: 60px;
  }

  .tv-q-title {
    font-size: 22px;
  }

  .tv-q-artist {
    font-size: 18px;
  }

  .tv-q-num {
    font-size: 22px;
  }

  .tv-footer {
    padding: 20px;
  }

  .tv-qr-mini-text {
    font-size: 16px;
  }

  .tv-qr-mini-url {
    font-size: 18px;
  }

  .tv-queue-overlay {
    max-width: 700px;
    padding: 28px;
  }

  .tv-queue-overlay-header {
    font-size: 20px;
  }

  .tv-queue-overlay-header button {
    width: 40px;
    height: 40px;
  }

  .tv-queue-overlay-list {
    gap: 16px;
  }

  .tv-local-inner {
    width: min(1400px, 92vw);
    padding: 28px;
  }

  .tv-local-header {
    font-size: 20px;
  }

  .tv-local-header button {
    width: 40px;
    height: 40px;
  }

  .tv-local-select {
    padding: 14px 16px;
    font-size: 16px;
  }

  .tv-local-breadcrumb,
  .tv-local-status {
    font-size: 14px;
  }

  .tv-local-card {
    padding: 20px;
    border-radius: 14px;
  }

  .tv-local-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .tv-local-name {
    font-size: 18px;
  }

  .tv-local-meta {
    font-size: 14px;
  }

  .tv-intermission-inner {
    max-width: 860px;
    padding: 60px 72px;
  }

  .tv-intermission-badge {
    font-size: 18px;
  }

  .tv-intermission-title {
    font-size: 64px;
  }

  .tv-intermission-sub {
    font-size: 30px;
  }

  .tv-intermission-note {
    font-size: 22px;
  }

  .room-gate-rooms {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .tv-loading-logo {
    width: 160px;
    height: 160px;
    font-size: 46px;
  }

  .tv-loading-title {
    font-size: 38px;
  }

  .tv-loading-sub {
    font-size: 20px;
    max-width: 600px;
  }

  .tv-loading .remote-input {
    font-size: 18px;
    padding: 18px 16px 18px 50px;
  }

  .tv-loading .remote-btn {
    padding: 18px 22px;
    font-size: 18px;
  }

  .tv-room-switch {
    padding: 18px;
    font-size: 18px;
  }

  .tv-volume-indicator {
    font-size: 18px;
  }

  .tv-volume-bar {
    height: 14px;
  }

  .tv-timer-label {
    font-size: 18px;
  }

  .tv-timer-value {
    font-size: 48px;
  }

  .tv-timer-note {
    font-size: 16px;
  }
}

/* --- Remote Layout (match remote.php style) --- */
.remote-body {
  margin: 0;
  background: #0f1115;
  color: #ffffff;
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  padding-bottom: 180px;
  overflow-x: hidden;
}

.remote-body * {
  box-sizing: border-box;
}

.remote-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  gap: 10px;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remote-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remote-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: #000;
}

.remote-room h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.remote-room span {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.error {
  background: #ef4444;
}

.remote-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.remote-search-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.remote-search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 200px;
}

.remote-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.remote-input {
  width: 100%;
  background: #181b21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 12px 12px 42px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
}

.remote-search-btn {
  background: #22c55e;
  color: #000;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  flex: 0 0 auto;
  height: 46px;
}

.remote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.remote-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181b21;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
}

.remote-btn.danger {
  color: #ef4444;
}

.remote-section-title {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 700;
}

.remote-list {
  display: grid;
  gap: 8px;
}

.remote-card {
  background: #181b21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.remote-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #000;
  overflow: hidden;
  flex-shrink: 0;
}

.remote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remote-card-info {
  flex: 1;
  min-width: 0;
}

.remote-card-info h4 {
  margin: 0 0 2px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-card-info p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.remote-card-action {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  border: none;
}

.remote-queue-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #181b21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  min-width: 0;
}

.remote-queue-card .remote-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.remote-queue-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-queue-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.remote-queue-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1115;
  color: #fff;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.chip {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: #181b21;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.chip--active {
  border-color: #22c55e;
  color: #22c55e;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #181b21;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  border-radius: 34px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #22c55e;
}

input:checked+.slider:before {
  transform: translateX(18px);
}

.sfx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.sfx-grid .remote-btn {
  width: 100%;
  text-align: center;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

input[type="range"] {
  flex: 1;
  accent-color: #22c55e;
  height: 4px;
}

.remote-sticky {
  position: fixed;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(24, 27, 33, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.remote-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remote-player-art {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #222;
  overflow: hidden;
  flex-shrink: 0;
}

.remote-player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remote-player-text {
  flex: 1;
  min-width: 0;
}

.remote-player-text .title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-player-text .artist {
  font-size: 11px;
  color: #94a3b8;
}

.remote-player-controls {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.remote-ctrl-btn {
  background: transparent;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.remote-ctrl-btn.play {
  background: #fff;
  color: #0f1115;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
}

.remote-ctrl-btn i {
  font-size: 20px;
}

@media (max-width: 380px) {
  .remote-search-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .remote-main {
    padding: 12px;
  }
}

.remote-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.remote-btn.small {
  padding: 8px 10px;
  font-size: 12px;
}

.remote-btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.ghost-active {
  border-color: #22c55e !important;
  color: #22c55e;
}

.hidden {
  display: none !important;
}

.room-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 150;
}

.room-gate-card {
  width: 100%;
  max-width: 480px;
  background: #0f1115;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 12px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.room-gate-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #22c55e, #46a1ff);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #041226;
  margin: 0 auto;
}

.room-gate-title {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0 0;
}

.room-gate-sub {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.room-gate-rooms {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.room-gate-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.room-gate-inputs .remote-input {
  padding-left: 12px;
}

.tv-loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: radial-gradient(100% 100% at 0% 0%, rgba(70, 161, 255, 0.18), transparent),
    radial-gradient(100% 100% at 100% 0%, rgba(31, 211, 122, 0.2), transparent),
    #050910;
  z-index: 140;
  overflow: hidden;
}

.tv-bg-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tv-bg-video iframe {
  width: 120%;
  height: 120%;
  border: 0;
  position: absolute;
  top: -10%;
  left: -10%;
  filter: saturate(1.1);
}

.tv-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 16, 0.7), rgba(5, 9, 16, 0.85));
  backdrop-filter: blur(2px);
}

.tv-loading-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e, #46a1ff);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  color: #041226;
}

.tv-loading-title {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.tv-loading-sub {
  margin: 0;
  color: #a8b3cf;
  max-width: 360px;
}

.tv-room-switch {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tv-room-switch i {
  margin-right: 6px;
}

.tv-volume-indicator {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.tv-volume-indicator i {
  margin-right: 6px;
}

.tv-volume-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.tv-volume-bar div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #46a1ff);
  transition: width 0.2s ease;
}

.tv-timer-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 6px;
}

.tv-timer-label {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-timer-value {
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tv-timer-value.warn {
  color: #f59e0b;
}

.tv-timer-value.expired {
  color: #ef4444;
}

.tv-timer-note {
  font-size: 12px;
  color: var(--muted);
}

#debugStatus {
  position: fixed;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 260px;
  z-index: 200;
  display: none;
}

/* --- FLOATING REACTIONS --- */
#reactionLayer {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.floating-emoji {
  position: absolute;
  bottom: -50px;
  font-size: 3rem;
  animation: floatEmoji 4.5s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@keyframes floatEmoji {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 1;
  }

  15% {
    opacity: 1;
    transform: translateY(-80px) scale(1.3) rotate(var(--rot-start));
  }

  100% {
    transform: translateY(-110vh) scale(1) rotate(var(--rot-end));
    opacity: 0;
  }
}

/* --- PARTY MODE EFFECTS --- */
.party-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.party-overlay.birthday,
.party-overlay.newyear,
.party-overlay.anniversary,
.party-overlay.disco,
.party-overlay.chill {
  opacity: 1;
}

/* Birthday Mode */
.party-overlay.birthday::before {
  content: "🎂";
  position: absolute;
  font-size: 6rem;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation: partyPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(236, 72, 153, 0.5));
}

.party-overlay.birthday::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.1), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(251, 113, 133, 0.1), transparent 30%);
  animation: partyGlow 4s ease-in-out infinite;
}

/* New Year Mode */
.party-overlay.newyear::before {
  content: "🎆";
  position: absolute;
  font-size: 6rem;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation: partyPulse 1.5s ease-in-out infinite, sparkle 0.5s linear infinite;
}

.party-overlay.newyear::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.15), transparent 25%),
    radial-gradient(circle at 90% 30%, rgba(251, 191, 36, 0.1), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.1), transparent 35%);
  animation: fireworkGlow 2s ease-in-out infinite;
}

/* Anniversary Mode */
.party-overlay.anniversary::before {
  content: "💕";
  position: absolute;
  font-size: 5rem;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  animation: heartbeat 1.2s ease-in-out infinite;
}

.party-overlay.anniversary::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(244, 63, 94, 0.12), transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(244, 63, 94, 0.1), transparent 30%);
  animation: loveGlow 3s ease-in-out infinite;
}

/* Disco Mode */
.party-overlay.disco::before {
  content: "🪩";
  position: absolute;
  font-size: 5rem;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: discoBall 4s linear infinite;
}

.party-overlay.disco::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(139, 92, 246, 0.15) 0deg,
      rgba(236, 72, 153, 0.15) 90deg,
      rgba(56, 189, 248, 0.15) 180deg,
      rgba(16, 185, 129, 0.15) 270deg,
      rgba(139, 92, 246, 0.15) 360deg);
  animation: discoSpin 8s linear infinite;
}

/* Chill Mode */
.party-overlay.chill::before {
  content: "🌙";
  position: absolute;
  font-size: 4rem;
  top: 15%;
  right: 15%;
  animation: chillFloat 6s ease-in-out infinite;
}

.party-overlay.chill::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.06), transparent 35%);
  animation: chillWave 8s ease-in-out infinite;
}

/* Party Mode Animations */
@keyframes partyPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

@keyframes partyGlow {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@keyframes sparkle {

  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
  }

  50% {
    filter: drop-shadow(0 0 40px rgba(251, 191, 36, 1));
  }
}

@keyframes fireworkGlow {

  0%,
  100% {
    opacity: 0.6;
  }

  25% {
    opacity: 1;
  }

  75% {
    opacity: 0.8;
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  14% {
    transform: translateX(-50%) scale(1.2);
  }

  28% {
    transform: translateX(-50%) scale(1);
  }

  42% {
    transform: translateX(-50%) scale(1.2);
  }

  70% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes loveGlow {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

@keyframes discoBall {
  0% {
    transform: translateX(-50%) rotateY(0deg);
  }

  100% {
    transform: translateX(-50%) rotateY(360deg);
  }
}

@keyframes discoSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes chillFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes chillWave {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.9;
  }
}

/* Party Mode body effects */
.tv-body[data-party="birthday"] {
  background-image:
    radial-gradient(circle at 50% 100%, rgba(236, 72, 153, 0.1), transparent 50%),
    radial-gradient(circle at 10% 20%, rgba(244, 63, 94, 0.15), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.1), transparent 40%);
}

.tv-body[data-party="newyear"] {
  background-image:
    radial-gradient(circle at 50% 20%, rgba(251, 191, 36, 0.15), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1), transparent 35%);
}

.tv-body[data-party="anniversary"] {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.12), transparent 50%),
    radial-gradient(circle at 30% 30%, rgba(251, 113, 133, 0.1), transparent 35%);
}

.tv-body[data-party="disco"] {
  animation: discoBackground 4s linear infinite;
}

@keyframes discoBackground {

  0%,
  100% {
    background-color: rgba(139, 92, 246, 0.05);
  }

  25% {
    background-color: rgba(236, 72, 153, 0.05);
  }

  50% {
    background-color: rgba(56, 189, 248, 0.05);
  }

  75% {
    background-color: rgba(16, 185, 129, 0.05);
  }
}

.tv-body[data-party="chill"] {
  background-image:
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.08), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.06), transparent 40%);
}

/* ============================================
   TV FULLSCREEN MODE (55 inch+ / mode=tv)
   ============================================ */
.tv-body.tv-fullscreen-mode .tv-app {
  grid-template-columns: 1fr;
}

.tv-body.tv-fullscreen-mode .tv-stage {
  height: 100vh;
}

/* Toggle button di pojok bawah kiri untuk mode fullscreen */
.tv-body.tv-fullscreen-mode .tv-sidebar-toggle {
  top: auto;
  bottom: 20px;
  left: 20px;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.tv-body.tv-fullscreen-mode .tv-sidebar-toggle:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Overlay toggle buttons di pojok kiri */
.tv-body.tv-fullscreen-mode .tv-overlay-toggle {
  padding: 12px 18px;
  font-size: 15px;
}

.tv-body.tv-fullscreen-mode .tv-local-toggle {
  top: 116px;
}

/* Floating Now Playing Info untuk mode fullscreen */
.tv-body.tv-fullscreen-mode.sidebar-hidden::after {
  content: '';
  position: fixed;
  left: 20px;
  bottom: 80px;
  max-width: 400px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: "Outfit", "Manrope", sans-serif;
  z-index: 25;
  pointer-events: none;
}

/* QR Code positioning untuk fullscreen */
.tv-body.tv-fullscreen-mode .tv-qr {
  right: 30px;
  bottom: 30px;
}

.tv-body.tv-fullscreen-mode .tv-qr-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 10, 15, 0.9);
}

.tv-body.tv-fullscreen-mode .tv-qr-card img {
  width: 160px;
  height: 160px;
}

/* Watermark positioning */
.tv-body.tv-fullscreen-mode .tv-watermark {
  top: 20px;
  right: 25px;
}

.tv-body.tv-fullscreen-mode .tv-watermark img {
  width: 110px;
  height: 110px;
}

/* Ticker untuk fullscreen mode */
.tv-body.tv-fullscreen-mode .tv-ticker {
  min-width: 40%;
  max-width: 70%;
  padding: 12px 20px;
  border-radius: 18px;
  font-size: 18px;
}

/* Progress bar */
.tv-body.tv-fullscreen-mode .tv-progress {
  height: 8px;
}

/* Intermission styling untuk fullscreen */
.tv-body.tv-fullscreen-mode .tv-intermission-inner {
  max-width: 600px;
  padding: 40px 50px;
}

.tv-body.tv-fullscreen-mode .tv-intermission-title {
  font-size: 42px;
}

.tv-body.tv-fullscreen-mode .tv-intermission-sub {
  font-size: 22px;
}

/* Queue Overlay untuk fullscreen */
.tv-body.tv-fullscreen-mode .tv-queue-overlay {
  width: 40%;
  max-width: 500px;
}

/* Large screen enhancements for fullscreen mode */
@media (min-width: 1920px) {
  .tv-body.tv-fullscreen-mode .tv-sidebar-toggle {
    bottom: 30px;
    left: 30px;
    padding: 16px 28px;
    font-size: 18px;
  }

  .tv-body.tv-fullscreen-mode .tv-qr {
    right: 40px;
    bottom: 40px;
  }

  .tv-body.tv-fullscreen-mode .tv-qr-card img {
    width: 180px;
    height: 180px;
  }

  .tv-body.tv-fullscreen-mode .tv-ticker span {
    font-size: 20px;
  }

  .tv-body.tv-fullscreen-mode .tv-intermission-title {
    font-size: 52px;
  }
}

/* 4K TV enhancements */
@media (min-width: 3840px) {
  .tv-body.tv-fullscreen-mode .tv-sidebar-toggle {
    bottom: 50px;
    left: 50px;
    padding: 22px 36px;
    font-size: 24px;
    border-radius: 20px;
  }

  .tv-body.tv-fullscreen-mode .tv-overlay-toggle {
    padding: 18px 26px;
    font-size: 22px;
  }

  .tv-body.tv-fullscreen-mode .tv-qr {
    right: 60px;
    bottom: 60px;
  }

  .tv-body.tv-fullscreen-mode .tv-qr-card {
    padding: 28px;
    border-radius: 24px;
  }

  .tv-body.tv-fullscreen-mode .tv-qr-card img {
    width: 240px;
    height: 240px;
  }

  .tv-body.tv-fullscreen-mode .tv-watermark img {
    width: 180px;
    height: 180px;
  }

  .tv-body.tv-fullscreen-mode .tv-ticker {
    padding: 18px 28px;
    border-radius: 24px;
  }

  .tv-body.tv-fullscreen-mode .tv-ticker span {
    font-size: 28px;
  }

  .tv-body.tv-fullscreen-mode .tv-progress {
    height: 12px;
  }

  .tv-body.tv-fullscreen-mode .tv-intermission-inner {
    max-width: 800px;
    padding: 60px 70px;
  }

  .tv-body.tv-fullscreen-mode .tv-intermission-title {
    font-size: 72px;
  }

  .tv-body.tv-fullscreen-mode .tv-intermission-sub {
    font-size: 32px;
  }
}

/* ============================================
   FLOATING INFO PANEL (for TV Fullscreen)
   ============================================ */
.tv-floating-info {
  position: absolute;
  left: 20px;
  bottom: 80px;
  z-index: 26;
  display: none;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  padding: 18px 22px;
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: "Outfit", "Manrope", sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show only when sidebar is hidden AND in fullscreen mode */
.tv-body.sidebar-hidden .tv-floating-info {
  display: flex;
}

/* Hide floating info when video is playing (auto-hide after song starts) */
.tv-body.sidebar-hidden.playing .tv-floating-info {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* Transition for smooth show/hide */
.tv-floating-info {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tv-floating-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-floating-logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f43f5e, #38bdf8);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
}

.tv-floating-room {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tv-floating-now {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.tv-floating-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fb7185;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-floating-label::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 10px;
  background: #fb7185;
  border-radius: 2px;
  animation: floatingBar 0.8s ease-in-out infinite alternate;
}

@keyframes floatingBar {
  0% {
    height: 4px;
  }

  100% {
    height: 12px;
  }
}

.tv-floating-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-floating-meta {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.tv-floating-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.tv-floating-timer-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.tv-floating-timer-value {
  font-size: 16px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.tv-floating-timer-value.warn {
  color: #fbbf24;
  animation: timerPulse 1s ease-in-out infinite;
}

.tv-floating-timer-value.expired {
  color: #f87171;
}

@keyframes timerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Large screens - floating info bigger */
@media (min-width: 1920px) {
  .tv-floating-info {
    left: 30px;
    bottom: 100px;
    max-width: 420px;
    padding: 22px 28px;
    border-radius: 24px;
  }

  .tv-floating-logo {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .tv-floating-room {
    font-size: 14px;
  }

  .tv-floating-title {
    font-size: 22px;
  }

  .tv-floating-meta {
    font-size: 15px;
  }

  .tv-floating-timer-value {
    font-size: 20px;
  }
}

/* 4K */
@media (min-width: 3840px) {
  .tv-floating-info {
    left: 50px;
    bottom: 140px;
    max-width: 560px;
    padding: 32px 40px;
    border-radius: 28px;
    gap: 18px;
  }

  .tv-floating-logo {
    width: 70px;
    height: 70px;
    font-size: 26px;
    border-radius: 16px;
  }

  .tv-floating-room {
    font-size: 18px;
  }

  .tv-floating-label {
    font-size: 14px;
  }

  .tv-floating-title {
    font-size: 32px;
  }

  .tv-floating-meta {
    font-size: 20px;
  }

  .tv-floating-timer-label {
    font-size: 16px;
  }

  .tv-floating-timer-value {
    font-size: 28px;
  }
}

/* ============================================
   VIDEO ZOOM CONTROLS
   ============================================ */
.tv-video-wrap {
  position: relative;
  overflow: hidden;
}

.tv-video-wrap #player,
.tv-video-wrap #localVideo {
  transition: transform 0.4s ease;
  transform-origin: center center;
}

.tv-video-wrap.video-zoom-110 #player,
.tv-video-wrap.video-zoom-110 #localVideo {
  transform: scale(1.1);
}

.tv-video-wrap.video-zoom-120 #player,
.tv-video-wrap.video-zoom-120 #localVideo {
  transform: scale(1.2);
}

.tv-video-wrap.video-zoom-130 #player,
.tv-video-wrap.video-zoom-130 #localVideo {
  transform: scale(1.3);
}
