:root {
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --accent: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden; 
}

.radio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
  justify-content: flex-start;
  gap: 5px;
}

.center-column-stack {
  width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.logo-container {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-logo {
  height: 50px;
  object-fit: contain;
}

.stack-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.controller-card {
  padding: 8px;
  width: 520px !important;
  min-width: 520px !important;
  max-width: 520px !important;
}

.flag-deck {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flag-wrapper {
  position: relative;
}

.flag-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.flag-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #334155;
  background-color: #0f172a;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flag-btn.playing .flag-img {
  border-color: var(--accent);
  animation: rotateLP 4s linear infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

@keyframes rotateLP {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.listener-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #0284c7;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 10px;
  pointer-events: none;
  z-index: 5;
}

.flag-btn.playing + .listener-badge {
  background: var(--accent);
}

.dashboard-row-layout {
  display: grid;
  grid-template-columns: 320px 520px 320px; 
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
}

/* Symmetrical Red Accent Left Border Applied Here */
.secondary-monitor-card {
  border-left: 4px solid var(--accent);
  padding: 12px 10px;
  width: 320px !important; 
  min-width: 320px !important;
  max-width: 320px !important;
  height: 210px; 
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.alt-banner-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 6px;
}

#alt-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.alt-row {
  background: rgba(0, 0, 0, 0.1);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  border-left: 2px solid #334155;
}

.alt-row:hover {
  background: rgba(56, 189, 248, 0.06);
  border-left-color: #38bdf8;
}

.alt-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.alt-track {
  font-size: 0.7rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-stream-card {
  border-left: 4px solid var(--accent);
  padding: 12px;
  width: 520px !important; 
  min-width: 520px !important;
  max-width: 520px !important;
  height: 210px; 
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stream-header-text-block {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.stream-label-static {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.stream-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.media-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #334155;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media-toggle-btn.live-active {
  background: var(--accent);
}

.media-icon {
  fill: #ffffff;
  width: 10px;
  height: 10px;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(0, 0, 0, 0.15);
  padding: 8px 10px;
  border-radius: 6px;
}

.meta-inline-line {
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label-tag {
  font-weight: 700;
  color: var(--text-muted);
  display: inline-block;
  width: 90px; 
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* Two explicit structural blank space margins added between tag labels and texts */
.value-field {
  margin-left: 8px;
}

.stat-row {
  display: flex;
  gap: 6px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.right-turntable-wing {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  position: relative;
  width: 320px;
  height: 210px;
  flex-shrink: 0;
}

.big-vinyl-disk {
  width: 200px; 
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #334155;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  background: #1e293b;
  
  /* Advanced Pointer and Direct Save Safeguards */
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important; 
}

/* Fixed Rotation Hook Targeting for Column Swapping Setup */
#vinyl-zone.playing .big-vinyl-disk {
  animation: rotateLP 5s linear infinite;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.vinyl-center-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--bg-dark);
  border: 2px solid #64748b;
  border-radius: 50%;
  z-index: 20;
  left: 93px; 
}

.footer {
  color: var(--text-muted);
  font-size: 0.7rem;
  text-align: center;
  margin-top: auto;
  padding-bottom: 5px;
}

#centova-hidden-bucket {
  display: none !important;
}

@media (max-width: 1200px) {
  body { overflow-y: auto; }
  .radio-container { height: auto; }
  .center-column-stack { width: 100%; max-width: 100%; }
  .controller-card { width: 100% !important; min-width: 0 !important; max-width: 520px !important; }
  .dashboard-row-layout { grid-template-columns: 1fr; gap: 15px; }
  .right-turntable-wing { margin: 0 auto; justify-content: center; width: 100%; }
  .vinyl-center-hole { left: auto; }
  .active-stream-card { max-width: 520px !important; width: 100% !important; min-width: 0 !important; height: auto; }
  .secondary-monitor-card { width: 100% !important; max-width: 520px !important; min-width: 0 !important; height: auto; }
}