@charset "utf-8";
/* CSS Document */
/* ----------------------------------------------------------------------- */
/* Master Widgets Style Sheet - CSS_WIDGETS.CSS                            */
/*                                                                         */
/* Home Page Audio Player, Music Machine Player, MM Last 5 Songs,          */
/* MM Request Form, Video Player, Forms.                                   */
/* ----------------------------------------------------------------------- */
/* ----------------------------------------------------------------------- */
/* Home Page - Micro Audio Player                                          */
/* ----------------------------------------------------------------------- */
#micro-player {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, #4a4a4a 0%, #2b2b2b 100%);
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  padding: 8px; /* Tightly packed */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  font-family: Arial, sans-serif;
}
/* Top Digital Screen */
#micro-display {
  background: #0a0a0a;
  border: 1px solid #555;
  border-radius: 3px;
  height: 42px; /* Leaves exactly enough room for the controls below */
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 0 4px;
}
#micro-station {
  font-size: 8px;
  color: #888;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 3px;
}
/* Scrolling Text Setup */
#micro-track-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
#micro-track {
  display: inline-block;
  font-size: 10px;
  color: #FFBE00;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Drop shadow added here */
  animation: marqueeScroll 12s linear infinite;
}
/* The actual scroll movement */
@keyframes marqueeScroll {
  0% {
    transform: translateX(160px);
  } /* Starts off-screen to the right */
  100% {
    transform: translateX(-150%);
  } /* Scrolls completely out of view to the left */
}
/* Bottom Controls */
#micro-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 35px;
}
#micro-play-btn {
  background: linear-gradient(to bottom, #666 0%, #333 100%);
  border: 1px solid #111;
  border-radius: 4px;
  color: antiquewhite;
  font-size: 12px;
  width: 35px;
  height: 30px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
#micro-play-btn:active {
  background: #222;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}
#micro-vol-wrapper {
  display: flex;
  align-items: center;
  width: 110px; /* Consumes the rest of the bottom row */
}
.micro-vol-label {
  font-size: 8px;
  color: #ccc;
  margin-right: 5px;
  font-weight: bold;
}
#micro-volume {
  width: 100%;
  cursor: pointer;
}
/* ----------------------------------------------------------------------- */
/* Home Page - Modal Window                                                  */
/* ----------------------------------------------------------------------- */
#request-modal-overlay { /* This is the big dark transparent background. */
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
#request-modal-window { /* This is the adjustable form window. */
  width: 270px;
  height: 370px;
  background-color: #222;
  background-image: url('/images/backgrounds/bg_request.png'); /* CHANGE THIS to change the background at will */
  background-size: cover;
  background-position: center;
  border: 1px solid #262626;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 30px 20px;
  box-sizing: border-box;
}
/* The X Close Button */
#close-modal-btn {
  position: absolute;
  top: 8px;
  right: 34px;
  color: #FFBE00;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 1px 1px 2px #000;
}
#close-modal-btn:hover {
  color: #FFFFFF;
}
/* ----------------------------------------------------------------------- */
/* Audio Page - Music Machine Audio Player, Request Form, Last 5 Played    */
/* ----------------------------------------------------------------------- */
#custom-player-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4); /* Dark semi-transparent background */
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
#np-art {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  margin-right: 15px;
  background-color: #222; /* Placeholder color before image loads */
}
#np-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  overflow: hidden;
}
#np-title {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: antiquewhite;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#np-artist {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #FFBE00;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Styles the native browser audio controls to be slimmer */
#native-audio {
  width: 100%;
  height: 32px;
  outline: none;
}
/* Scanner Animation */
/* Music Machine receiver: fixed footprint preserves the background alignment. */
.music-machine-page {
  height: 737px;
  background-size: 796px 737px;
}
.music-machine-receiver {
  width: 644px;
  height: 132px;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: 438px 198px;
  gap: 8px;
  font-family: Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
}
.music-machine-receiver *, .music-machine-receiver *::before,
.music-machine-receiver *::after { box-sizing: border-box; }
.music-machine-receiver #custom-player-container,
.music-machine-receiver #next-up-panel {
  min-width: 0;
  border: 1px solid #b17c3b;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(58,49,35,.97), rgba(23,21,18,.97) 58%, rgba(43,32,20,.96));
  box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
}
.music-machine-receiver #custom-player-container {
  width: 438px;
  max-width: none;
  height: 132px;
  margin: 0;
  padding: 10px;
  background: linear-gradient(115deg, rgba(58,49,35,.97), rgba(23,21,18,.97) 58%, rgba(43,32,20,.96));
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) 130px;
  grid-template-rows: 76px 28px;
  column-gap: 10px;
  row-gap: 6px;
}
.music-machine-receiver .receiver-art {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #96826a;
  background: radial-gradient(circle, #695037, #211b16 75%);
  box-shadow: 0 2px 4px #080706;
}
.music-machine-receiver .receiver-cover-stack {
  grid-row: 1 / 3;
  align-self: center;
  min-width: 0;
}
.music-machine-receiver .receiver-cover-stack .receiver-art {
  width: 82px;
  height: 82px;
}
.music-machine-receiver .receiver-bitrate {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding: 2px 0;
  border-radius: 2px;
  background: #211c15;
  color: #ffca45;
  text-align: center;
  font-size: 9px;
  letter-spacing: .7px;
  line-height: 13px;
  text-shadow: 0 1px 3px #000, 0 0 4px rgba(255,181,48,.4);
}
.music-machine-receiver .receiver-bitrate::after {
  content: '';
  position: absolute;
  inset: 0;
  left: -50%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,190,0,.35), transparent);
  animation: scan-right 4s infinite;
  pointer-events: none;
}
.music-machine-receiver .receiver-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}
.music-machine-receiver .receiver-art img[hidden] { display: none; }
.music-machine-receiver .art-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #bf945a; font-size: 32px;
}
.music-machine-receiver #np-info {
  min-width: 0;
  width: auto;
  justify-content: center;
  gap: 5px;
}
.music-machine-receiver .receiver-line,
#song-history-list .receiver-line {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.4;
  text-overflow: ellipsis;
}
.music-machine-receiver .receiver-line > span,
#song-history-list .receiver-line > span { display: inline-block; }
.music-machine-receiver #np-title {
  font-size: 12px; margin: 0; font-weight: 600; color: #faebd7;
}
.music-machine-receiver #np-artist {
  font-size: 11px; margin: 0; color: #ffcb47;
}
.music-machine-receiver .receiver-line.is-overflowing > span,
#song-history-list .receiver-line.is-overflowing > span {
  animation: receiver-title-scroll var(--scroll-duration, 12s) ease-in-out infinite alternate;
}
@keyframes receiver-title-scroll {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(var(--scroll-distance)); }
}
.music-machine-receiver #native-audio {
  grid-column: 2 / 4;
  width: 100%; min-width: 0; height: 28px;
  border-radius: 18px; text-shadow: none;
}
.music-machine-receiver .receiver-eq {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  min-width: 0; margin: -3px 0 0; padding: 0 0 11px 7px;
  border: 0; border-left: 1px solid #655039;
}
.music-machine-receiver .eq-band {
  display: flex; flex-direction: column; align-items: center;
  margin: 0; color: #e4c18a; font-size: 8px; font-weight: 400; line-height: 11px;
}
.music-machine-receiver .eq-band output {
  padding: 0; font-size: 10px; line-height: 13px; color: #ffca45;
}
.music-machine-receiver .eq-band small { font-size: 7px; line-height: 9px; color: #b6a085; }
.music-machine-receiver .eq-scale {
  display: flex; justify-content: center; width: 29px; height: 39px;
  background: repeating-linear-gradient(to top, transparent 0 5px, #775827 5px 6px) left center / 5px 37px no-repeat,
    repeating-linear-gradient(to top, transparent 0 5px, #775827 5px 6px) right center / 5px 37px no-repeat;
}
.music-machine-receiver .eq-band input {
  appearance: none; -webkit-appearance: none;
  writing-mode: vertical-lr; direction: rtl;
  width: 20px; height: 39px; margin: 0; padding: 0;
  background: transparent; cursor: ns-resize;
  touch-action: none;
}
.music-machine-receiver .eq-band input::-webkit-slider-runnable-track {
  width: 3px; background: #100f0c; border: 1px solid #5e513d; border-radius: 2px;
}
.music-machine-receiver .eq-band input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 6px; margin-left: -8px;
  border: 1px solid #a8834b; border-radius: 3px;
  background: linear-gradient(#f9dfa0, #ad8546); box-shadow: 0 1px 3px #000;
}
.music-machine-receiver .eq-band input::-moz-range-track { width: 3px; height: 100%; background: #100f0c; border: 1px solid #5e513d; }
.music-machine-receiver .eq-band input::-moz-range-thumb {
  width: 17px; height: 6px; border: 1px solid #a8834b; border-radius: 3px;
  background: linear-gradient(#f9dfa0, #ad8546);
}
.music-machine-receiver #eq-flat {
  position: absolute; bottom: -1px; right: 0;
  border: 1px solid #765835; border-radius: 3px;
  background: #272018; color: #d7b77d; font: 7px Arial, sans-serif;
  padding: 1px 6px; letter-spacing: 1px; cursor: pointer;
}
.music-machine-receiver input:focus-visible, .music-machine-receiver button:focus-visible {
  outline: 2px solid #ffcf65; outline-offset: 3px;
}
.music-machine-receiver .receiver-eq:disabled { opacity: .5; }
.music-machine-receiver #next-up-panel { padding: 10px; }
.music-machine-receiver .next-heading {
  display: flex; align-items: center; gap: 9px;
  color: #ffc44b; font-size: 13px; letter-spacing: 1px; line-height: 17px;
  padding-bottom: 7px; margin-bottom: 8px; border-bottom: 1px solid #685033;
}
.music-machine-receiver .next-lamp {
  width: 10px; height: 10px; border-radius: 50%; background: #584525;
  box-shadow: 0 0 0 3px #352a1b, inset 0 1px 2px #18120b;
}
.music-machine-receiver .has-next .next-lamp {
  background: #ffc12d; box-shadow: 0 0 0 3px #514023, 0 0 9px #f39816, inset 0 1px 2px #ffeab3;
  animation: next-lamp-glow 2.4s ease-in-out infinite;
}
@keyframes next-lamp-glow {
  0%, 100% { opacity: .3; box-shadow: 0 0 0 3px #352a1b, 0 0 2px #a56613, inset 0 1px 2px #ffeab3; }
  50% { opacity: 1; box-shadow: 0 0 0 3px #514023, 0 0 11px #f39816, inset 0 1px 2px #ffeab3; }
}
.music-machine-receiver .next-content { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 9px; align-items: center; }
.music-machine-receiver .next-content .receiver-art { height: 70px; }
.music-machine-receiver .next-info { min-width: 0; }
.music-machine-receiver #next-title { color: #faebd7; font-size: 10px; font-weight: 600; margin-bottom: 4px; }
.music-machine-receiver #next-artist { color: #ffcb47; font-size: 10px; }
/* The listener explicitly requested scrolling labels in every song display. */
.music-machine-page #song-history-list .song-info { flex: 1; min-width: 0; max-width: 190px; }
/* Keep the request notes inside the artwork's lower frame. */
.receiver-request-notes p { line-height: 1.2; }
.receiver-request-notes > tbody > tr:first-child > td {
  height: 4px; line-height: 4px; font-size: 0;
}
.scan-button {
  position: relative;
  overflow: hidden;
}
.scan-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 190, 0, 0) 0%, rgba(255, 190, 0, 0.6) 50%, rgba(255, 190, 0, 0) 100%);
  animation: scan-right 4.0s infinite;
  pointer-events: none;
}
@keyframes scan-right {
  0% {
    left: -100%;
  }
  50% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}
.scan-killed::after {
  display: none !important;
}
/* ----------------------------------------------------------------------- */
/* Audio Page - Music Machine Last 5 Songs                                 */
/* ----------------------------------------------------------------------- */
.song-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.song-history-list li {
  display: flex;
  align-items: center;
  padding: 5px 0;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
}
.song-history-list img.album-art {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  border-radius: 3px;
  /* Adds the drop shadow to the album covers */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.song-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 190px; /* Hard-locks the boundary so the table cannot stretch */
}
.song-title {
  display: block; /* Required if the title is inside a <span> tag */
  width: 100%; /* Enforces the boundary for the ellipsis */
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: antiquewhite;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist {
  display: block;
  width: 100%;
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #FFBE00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ----------------------------------------------------------------------- */
/* Audio Page - Music Machine Autocomplete Request Form                    */
/* ----------------------------------------------------------------------- */
#magic-request-form {
  margin: 0;
  padding: 5px 0;
  font-family: Arial, sans-serif;
}
#magic-request-form td {
  padding: 2px 0; /* Creates slight breathing room between the rows */
}
/* Form Labels (Artist, Title, Required) */
#magic-request-form .label-text {
  color: antiquewhite;
  font-size: 10px;
  font-weight: bold;
}
/* The Yellow Asterisks and Required Text */
#magic-request-form .asterisk {
  color: #FFBE00;
  font-size: 10px;
  font-weight: bold;
}
/* Text Input Fields */
#magic-request-form input[type="text"] {
  background-color: antiquewhite;
  color: #000000;
  border: 1px solid #666;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 10px;
  width: 200px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* Highlight the box yellow when a user clicks inside it */
#magic-request-form input[type="text"]:focus {
  border-color: #FFBE00;
  box-shadow: 0 0 5px rgba(255, 190, 0, 0.5);
}
/* Custom Submit Button (Replaces Bootstrap btn-warning) */
#magic-request-form .btn-warning {
  background: linear-gradient(to bottom, #FFBE00 0%, #D49A00 100%);
  color: #000000;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 12px;
  border: 1px solid #A37700;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#magic-request-form .btn-warning:hover {
  background: linear-gradient(to bottom, #FFD040 0%, #E6A800 100%);
}
#magic-request-form .btn-warning:active {
  background: #C28C00;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
/* The permanent hardware box holding the results */
#request-results-table {
  margin-top: 6px;
  background-color: #3a3a3a;
  border: 1px solid #555;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* The invisible inner container that holds the text */
#request-results-container {
  min-height: 20px; /* Forces the empty box to stay propped open */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
/* Request Form Autocomplete Dropdown Container */
.autocomplete-items {
  position: absolute;
  /*  border: 1px solid #666; */
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  width: 200px; /* Made wider than the text box to reveal more text */
  background-color: #2b2b2b;
  max-height: 150px;
  overflow-y: auto;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
}
/* Individual Song Suggestions */
.autocomplete-items div {
  padding: 6px;
  cursor: pointer;
  font-size: 10px;
  color: antiquewhite;
  border-bottom: 1px solid #444;
  white-space: normal; /* Allows long song titles to drop to a second line instead of cutting off */
  line-height: 1.2;
}
/* Highlight yellow on hover */
.autocomplete-items div:hover {
  background-color: #FFBE00;
  color: #000000;
  font-weight: bold;
}
/* ----------------------------------------------------------------------- */
/* Video Page - Video Player                                               */
/* ----------------------------------------------------------------------- */
#magic-video-container {
  width: 560px;
  height: 315px;
  margin: 0 auto; /* Centers the video player if the table cell is larger */
  background-color: #000000;
  border: 1px solid #1a1a1a;
  border-radius: 6px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
#magic-video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Removes the tiny gap browsers sometimes leave under iframes */
}
