/* Import Font for the whole site */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

/* =========================================
   GLOBAL STYLES & LAYOUT
   ========================================= */

.logo {
  font-size: 45px;
  font-weight: 700;
  color: #f4ea2a;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 99.9%;
  margin: auto; 
  box-sizing: border-box;
  background-color: #0a0a0a;
  border: 5px dashed red;
  font-family: 'JetBrains Mono', monospace;
  color: #c9c9c9;
  padding: 0; 
}

main {
  flex: 1; 
  padding: 40px; 
  width: 100%;
  box-sizing: border-box;
}

header {
  color: yellow;
  text-align: center;
  margin-top: 20px;
}

body > header > h1 {
  font-family: 'JetBrains Mono', monospace;
}

nav > ul {
  font-family: 'JetBrains Mono', monospace;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0;
}

nav > ul > li > a {
  text-decoration: none;
  color: gray;
}

nav > ul > li > a:hover {
  color: #f4ea2a;
}

#homepageWelcome {
  font-family: 'JetBrains Mono', monospace;
  color: rgb(210, 9, 176);
  text-align: center;
  margin-top: 20px;
}

a {
  color: gray;
}

footer {
  font-family: 'JetBrains Mono', monospace;
  color: rgb(94, 94, 94); 
  font-size: 11px;
  text-align: center;
  padding: 20px;
}

/* =========================================
   RADIO PLAYER COMPONENT STYLES
   ========================================= */

.rp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch; /* CRITICAL: Makes all cards in a row the same height */
}

.rp-player-wrap {
  display: inline-block;
  /* Ensures the wrapper doesn't collapse if content is short */
  height: 100%; 
}

.rp-panel {
  width: 400px;
  max-width: 100%;
  border: 1px dashed #3a3a3a;
  padding: 20px;
  position: relative;
  background: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  color: #c9c9c9;
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  height: 100%; /* Ensures panel fills the wrapper height */
}

/* Frequency Tag (Replaces the old ::before "Now Playing") */
.rp-frequency-tag {
  font-size: 12px;
  color: #f4ea2a;
  border: 1px solid #f4ea2a;
  display: inline-block;
  padding: 2px 6px;
  margin-bottom: 10px;
  align-self: flex-start;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Left column - logo */
.rp-station-logo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #111;
  border: 1px solid #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* NEW: Force images to fit perfectly without stretching the box */
.rp-station-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops image to fill square without distortion */
  display: block;
}

.rp-station-logo .rp-placeholder {
  color: #3a3a3a;
  font-size: 9px;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

/* Right column - content */
.rp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.rp-station-info {
  margin-bottom: 12px;
}

.rp-station-name {
  font-size: 15px;
  font-weight: 700;
  color: #eaeaea;
  margin-bottom: 2px;
}

.rp-station-sub {
  font-size: 10px;
  color: #6a6a6a;
}

.rp-status-line {
  font-size: 11px;
  color: #8fbf3f;
  margin-bottom: 10px;
  min-height: 14px;
}

.rp-status-line .rp-prompt {
  color: #f4ea2a;
}

/* Fake level meter */
.rp-meter-row {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  height: 10px;
}

.rp-meter-row span {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  box-sizing: border-box;
}

.rp-panel.is-playing .rp-meter-row span {
  animation: rp-meter-flicker 0.15s infinite alternate;
}

.rp-panel.is-playing .rp-meter-row span:nth-child(odd) {
  animation-delay: 0.08s;
}

@keyframes rp-meter-flicker {
  0% { background: #1a1a1a; box-shadow: none; }
  100% { background: #f4ea2a; box-shadow: 0 0 4px rgba(244, 234, 42, 0.5); }
}

.rp-controls {
  margin-top: auto;
}

.rp-toggle-btn {
  width: 100%;
  text-align: center;
  padding: 8px 0;
  border: 1px solid #3a3a3a;
  font-size: 11px;
  color: #c9c9c9;
  cursor: pointer;
  letter-spacing: 0.5px;
  user-select: none;
  box-sizing: border-box;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
}

.rp-toggle-btn:hover {
  border-color: #f4ea2a;
  color: #f4ea2a;
}

.rp-toggle-btn:active {
  background: #f4ea2a;
  color: #0a0a0a;
}

/* miniplayer */