
.radiodiv {
  z-index: 1;
  margin: 0.5em;
  /*filter: drop-shadow(0 3px 3px #1c1f3a80);*/
}

/* Center all images within radio divs and make them square */
.radiodiv img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Make radio divs square and fully clickable */
.radiodiv {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  /*border: 1px solid #3c3c3c;*/
  text-transform: uppercase;
}

/* Make the entire radio div clickable */
.radiodiv a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.radiodiv:focus,
.radiodiv:hover,
.radiodiv:active {

  filter: brightness(.5);
  transform: scale(4);
  filter: drop-shadow(0 0 24px #000000);
}

@media (min-width:1025px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    grid-auto-rows: 1fr;
    padding: 1em;
    margin-bottom: 6rem;
  }
}

@media (max-width:1025px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    grid-auto-rows: 1fr;
    padding: 1em;
    margin-bottom: 6rem;
    margin-left: 10vh;
  }
  
  .track-name {
    font-size: 10px;
  }
}

@media (max-width:768px) {
  .track-name {
    font-size: 1.8rem;
  }
}

@media (max-width:480px) {
  .track-name {
    font-size: 1.5rem;
  }
}

.jp-pause,
.jp-play {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 0.5rem;
}

.jp-pause:hover,
.jp-play:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.1);
}

.playzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
  font-size: 3rem;
}

.container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
#player_container {
  position: absolute;
}

#current_time {
  display: none;
}

#total_duration {
  display: none;
}

#progress_container {
  height: 10px;
  background: var(--dark1);
  position: relative;
  cursor: pointer;
}

#progress_bar {
  height: 100%;
  width: 0%;
  background: var(--dotbordercolor);
  position: absolute;
}

.jp-volume-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jp-volume-bar {
  width: 15em;
  background: black;
  margin: 2em;
  float: right;
  position: absolute;
  right: 60px;
  top: 17px;
}

.jp-volume-bar-value {
  background: firebrick;
  height: 2em;
  /* padding: 1em; */
}

.slider {
  --thumb-diameter: 1em;
  --thumb-radius: calc(var(--thumb-diameter) / 2);
  /*--thumb-background: #C3C3C3;*/
  --thumb-border: 1px solid #FFF;

  --track-height: 0.5em;
  --track-background: linear-gradient(#9D9D9D, #F0F0F0);

  --effect-over: 0 0 0 .75em #AAA2;
  --effect-active: 0 0 0 .75em #5F03;
  --value: 50;
  --pos: calc(var(--thumb-radius) + .01 * var(--value) *(100% - var(--thumb-diameter)));

  position: absolute;
  max-width: 30em;
  margin: 0;
  text-align: center;
  font-size: 1.25em;
  right: 5em;
  top: 1.1em;
}

.slider-range {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: content-box;
  width: 8em;
  height: var(--track-height);
  margin: 0;
  border: var(--track-border-width) solid var(--track-border-color);
  border-radius: var(--track-height);
  font-size: inherit;
  outline: none;
  background: #a3a3a380;
  background-image: var(--track-background);
  background-position: 0 center;
  background-repeat: no-repeat;
  background-size: var(--pos) var(--track-height);
  cursor: pointer;
  position: absolute;
  right: 2em;
  border: 1px solid var(--dark1);
}

.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--thumb-diameter);
  height: var(--thumb-diameter);
  border: var(--thumb-border);
  border-radius: 50%;
  background: var(--thumb-background);
  /*box-shadow: 0 0 .5em #888;*/
  cursor: ew-resize;
}

.slider-range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb-diameter);
  height: var(--thumb-diameter);
  border: var(--thumb-border);
  border-radius: 50%;
  background: var(--thumb-background);
  /*box-shadow: 0 0 .5em #888;*/
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: var(--effect-over);
}

input[type="range"]::-moz-range-thumb:hover {
  box-shadow: var(--effect-over);
}

input[type=range]:focus {
  outline: 3px dashed #4B8FE8;
  outline-offset: .5em;
}

input[type=range]:active {
  outline: none;
}

/*-- custom class --*/

.slider-red {
  --thumb-border: 1px solid var(--color-base-950);
  --thumb-background: var(--color-neutral);
  --track-background: linear-gradient(var(--color-base-100), var(--color-base-400));
  --effect-over: 0 0 0 .1px black;
  --effect-active: 0 0 0 1px black;
}

button#muteButton {
  float: right;
  right: 2em;
  position: absolute;
  padding: 5px;
  top: -2em;
  font-size: 2em;
  border-radius: 10px;
}

button#fullscreenButton {
  float: right;
  right: 20px;
  position: absolute;
  padding: 5px;
  top: 25px;
  font-size: 2em;
  border-radius: 10px;
}

span#volumeLabel {
  display: none;
}

.live-indicator {
  float: inline-start;
}

.track-name {
  font-size: 1.5em; 
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radioinfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  flex: 1;
  min-width: 0;
}

.radioinfo .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  position: static;
  right: auto;
}

.track-desc {
  /*color: var(--textcolor);*/
  text-transform: lowercase;
  float: left;
  display: none;
}

.track-group {
  /*color: var(--textcolor);*/
  float: right;
  display: none;
} 

.track-name span {
  /* Text is now centered with flexbox */
  display: inline;
}

.boxed {
  margin: 20px;
  margin-top: 60px;
}

#jquery_jplayer {
  background: red;
}

#footer {
  box-shadow: 0px 2px 4px black;
}

.header-icon {
  float: left;
  height: 100%;
  display: flex;
  align-items: center;
  width: 30px;
  text-align: center;
  margin-left: 8px;
}

.header_title {
  float: left;
  height: 100%;
  display: flex;
  margin-left: 25px;

  width: fit-content;
}

.header-text {
  float: left;
  height: 100%;
  height: 100%;
  align-content: center;
}

.header_title a {
  color: var(--headertextcolor);
}

.topleft {
  border-radius: 10px;
  margin-right: 1em;
  float: left;
  height: 100%;
  align-content: center;
}

.topright {
  border-radius: 10px;
  margin-right: 1em;
  float: right;
  height: 100%;
  align-content: center;
}

.search {
  border-radius: 10px;
  margin-right: 3em;
  float: right;
  height: 100%;
  align-content: center;
}

.fullscreen {
  float: right;
  position: absolute;
  right: 1em;
  height: 100%;
  align-content: center;
  /* background: grey; */
  margin-left: 1em;

}

.fullscreen-btn {
  font-size: 20px;
  padding: 0.5em;

}

.title {
  background: #8B0000 !important;
  color: white;
  text-align: center;
  font-size: 2em;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

#area {
  float: left;
  height: 100%;
  align-content: center;
}

.player {
  margin-left: 1em;
  margin-right: 1em;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* unvisited link */
a:link {
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: var(--dark4);
  text-decoration: none;
}

/* [data-filter-item] - removed empty rule */

.hidden {
  display: none;
}

.mainlogo {
  background: transparent;
  height: 30px;
  width: 30px;
  margin-right: 5px;
}

#cover {
  --cover: 80px;
  width: var(--cover);
  height: var(--cover);
  border: 1px solid var(--dark9);
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: block;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  color: black;
}

.cover-text {
  --cover: 80px;
  width: var(--cover);
  height: var(--cover);
  border: 1px solid var(--dark9);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  box-shadow: 1.4px 1.4px 26.7px .3px #0f274c59;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 0.2rem;
  word-wrap: break-word;
  overflow: hidden;
  white-space: normal;
  hyphens: auto;
}

.cover-text-inner {
  color: inherit;
  text-transform: inherit;
  line-height: inherit;
  word-wrap: inherit;
  white-space: inherit;
  hyphens: inherit;
  display: grid;
  border-radius: 5px;
  align-items: center;
  text-align: center;
  font-weight: bold;
  font-size: small;
  aspect-ratio: 1 / 1;
  text-overflow: ellipsis;
  height: fit-content;
}

h1 {
  color: white;
}

.ui-bar-a,
.ui-page-theme-a .ui-bar-inherit,
html .ui-bar-a .ui-bar-inherit,
html .ui-body-a .ui-bar-inherit,
html body .ui-group-theme-a .ui-bar-inherit {
  background-color: #545454;
  border-color: #545454;
  box-shadow: 0 0 5px #333333;
  color: #333;
  font-weight: 700;
  text-shadow: 0 1px 0 #eee;
}

#radioname {
  display: grid;
  border-radius: 5px;
  align-items: center;
  text-align: center;
  font-weight: bold;
  font-size: small;
  aspect-ratio: 1 / 1;
  text-overflow: ellipsis;
  height: fit-content;

}

/* .grid > div:nth-child(10n + 6), */
.grid>#radioname:nth-child(10n + 7),
.grid>#radioname:nth-child(10n + 8),
.grid>#radioname:nth-child(10n + 9),
.grid>#radioname:nth-child(10n + 10) {
  background: rgba(0, 0, 0, 0.5);
}

.btn-light {
  left: 10px;
  width: 30px;
  height: 30px;
}

.btn-light {
  box-shadow: 0px 2px 7.92px 0.08px rgba(15, 39, 76, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.btn-light:hover,
.btn-light:focus {
  background-color: #e2e6ea;
}

.noshadow * {
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

form.ui-mini .ui-field-contain fieldset.ui-controlgroup legend small {
  color: #666;
}

.ui-footer-fixed {
  bottom: -1px;
  font-size: 5vw;
  padding: 0.7%;
  text-transform: uppercase;
  height: 90px;
}

.ui-input-search.ui-input-has-clear .ui-btn.ui-input-clear,
.ui-input-text.ui-input-has-clear .ui-btn.ui-input-clear {
  background-color: red;
}


/* Over Indicator LED Styles */
.vu-over-indicator {
  position: absolute;
  top: -0.7em;
  width: 2em;
  height: 0.5em;
  background: #1a1a1a;
  border: 1px #2e2e2e solid;
  border-radius: 2px;
  }
  
  .vu-over-indicator.active {

    background: #f00;
   
  }

@keyframes overBlink {
  0% {
    background-color: #ff0000;
    opacity: 0.6;
    box-shadow: 0 0 4px #ff0000, 0 0 8px #ff0000;
    transform: scale(1);
  }
  100% {
    background-color: #ff3333;
    opacity: 1;
    box-shadow: 0 0 12px #ff0000, 0 0 24px #ff0000;
    transform: scale(1.1);
  }
}

/* Vertical VU Meter Styles */
.vu-meter-container-vertical {
  width: 80px;
  height: calc(87vh - 100px);
  cursor: pointer;
  position: fixed;
  left: 20px;
  top: 90px;
  z-index: 10;
  
 
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.vu-meter-header-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.vu-header-top,
.vu-header-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vu-meter-channels-vertical {
  display: flex;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.vu-channel-vertical {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}



.vu-bar-container-vertical {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
 
  border-radius: 2px;
  overflow: visible;
}

.vu-bar {
  position: relative;
  width: 100%;
  height: 100%;
}

.vu-bar-indicators {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - 4px);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  gap: 1px;
  padding: 2px;
  z-index: 2;
  box-shadow: 1.4px 1.4px 26.7px .3px #0f274c59;
}

.vu-led-bar {
  width: 100%;
  flex: 1;
  min-height: 2px;
  background: #333;
  border-radius: 1px;
  transition: background-color 0.1s ease;
}

.vu-led-bar.active {
  background: #00ff00;
  box-shadow: 0 0 4px #00ff00;
}

.vu-led-bar.yellow {
  background: #ffff00;
  box-shadow: 0 0 4px #ffff00;
}

.vu-led-bar.red {
  background: #ff0000;
  box-shadow: 0 0 4px #ff0000;
}

.vu-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  transition: height 0.1s ease-out;
  z-index: 2;
}

.vu-bar-fill {
  background: linear-gradient(to top, #00ff00, #66ff66);
  z-index: 2;
}

.vu-peak-hold {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff85;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.1s ease-out;
}


.vu-meter-footer-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
  font-size: 8px;
  color: #666;
  gap: 4px;
}

.vu-level-display,
.vu-raw-level-display {
  display: flex;
  gap: 8px;
}

.vu-channel-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.vu-db-label,
.vu-raw-label {
  font-size: 7px;
  color: #888;
  font-weight: bold;
}

.vu-raw-label {
  color: #aaa;
}

.vu-db-label {
  font-weight: bold;
}

.vu-level-left,
.vu-level-right {
  font-family: monospace;
  font-size: 9px;
}

/* Over Indicator External - Above Each Gauge */
.vu-over-indicator-external {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 14px;
  border-radius: 2px;
  background-color: #333;
  border: 2px solid #666;

  z-index: 20;
}

.vu-over-indicator-external.active {
  background-color: #ff0000;
  border-color: #ff6666;
  
  box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  }

/* Drag and drop styles */
.sortable-ghost {
  opacity: 0.4;
  background: #f0f0f0;
  border: 2px dashed #ccc;
}

.sortable-chosen {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
}

.sortable-drag {
  transform: rotate(5deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.drag-handle {
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: none; /* Hidden by default */
}

/* Show drag handles when edit mode is active */
.edit-mode .drag-handle {
  display: block;
}

.radiodiv:hover .drag-handle {
  opacity: 1;
}

.radiodiv {
  cursor: move;
}

.radiodiv:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
  will-change: transform;
}

.radiodiv img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Delete Radio Button Styles */
.delete-radio-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Hide delete buttons by default */
.delete-radio-btn {
  display: none;
}

/* Show delete buttons when edit mode is active */
.edit-mode .delete-radio-btn {
  display: flex;
}

.delete-radio-btn:hover {
  background: rgba(185, 28, 28, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.radiodiv:hover .delete-radio-btn {
  opacity: 1;
}

.delete-radio-btn i {
  pointer-events: none;
}

/* Current Song Animation Styles */
.current-song {
  font-size: 1.4em;
 
  margin-top: 5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-style: italic;
  cursor: pointer;
}

.current-song:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Music Platforms Styles */
.current-song-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-platforms {
  display: flex;
  gap: 6px;
}

.platform-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.platform-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.deezer-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.spotify-btn {
  background: linear-gradient(135deg, #1db954, #1ed760);
  color: white;
}

.bandcamp-btn {
  background: linear-gradient(135deg, #629aa0, #4a7c7e);
  color: white;
}

.discogs-btn {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
}

.apple-btn {
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
}

.youtube-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

/* Fullscreen Mode Styles */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fullscreen Clock */
.fullscreen-clock {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 30;
  border-radius: 15px;
  padding: 0.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#clock-time {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-family: 'Courier New', monospace;
}

#clock-date {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fullscreen-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.fullscreen-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: white;
}

.fullscreen-header {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 20;
}

.exit-fullscreen-btn {
  border: none;
  color: white;
  font-size: 3em;
  padding: 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.exit-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.fullscreen-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.cover-art-fullscreen-container {
  position: relative;
  margin-bottom: 2rem;
  width: 20em;
  height: 20em;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.3));
  transition: all 0.5s ease;
}

.cover-art-fullscreen-container:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}

.cover-art-fullscreen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: all 0.8s ease-in-out;
  opacity: 0;
  transform: scale(0.95);
}

.cover-art-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
}

.track-info-fullscreen {
  margin-bottom: 3rem;
  max-width: 600px;
}

.track-title-fullscreen {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  letter-spacing: -0.5px;
  transition: all 0.8s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

.track-artist-fullscreen {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.8s ease-in-out;
  transform: translateY(0);
}


/* VU Meter for Fullscreen */
.vu-meter-fullscreen {
  position: absolute;
  left: 2rem;
  width: 5em;
  height: 95vh;
  z-index: 20;
  border-radius: 15px;
  transition: all 0.6s ease-in-out;
}

.vu-meter-fullscreen canvas {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Radio Carousel at Bottom */
.radio-carousel-fullscreen {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);

  max-width: 70%;
  height: 120px;
  z-index: 20;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  padding: 0 60px;
}

.carousel-item {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  margin: 0 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.carousel-item.active {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.carousel-item:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.carousel-item-text {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 4px;
  line-height: 1.1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Responsive Design for Fullscreen */
@media (max-width: 768px) {
  .cover-art-fullscreen-container {
    width: 300px;
    height: 300px;
  }
  
  .track-title-fullscreen {
    font-size: 2rem;
  }
  
  .track-artist-fullscreen {
    font-size: 1.5rem;
  }
  
  
  .vu-meter-fullscreen {
    width: 80px;
    height: 100vh;
    left: 1rem;
  }
  
  .radio-carousel-fullscreen {
    width: 95%;
    height: 100px;
  }
  
  .carousel-item {
    width: 60px;
    height: 60px;
    margin: 0 8px;
  }
  
  .carousel-item-text {
    font-size: 0.65rem;
    padding: 3px;
  }
  
  .fullscreen-clock {
    top: 1.5rem;
    padding: 0.8rem 1.5rem;
  }
  
  #clock-time {
    font-size: 2rem;
    margin-bottom: 0.3rem;
  }
  
  #clock-date {
    font-size: 0.9rem;
  }
  
  .carousel-track {
    padding: 0 50px;
  }
  
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cover-art-fullscreen-container {
    width: 250px;
    height: 250px;
  }
  
  .track-title-fullscreen {
    font-size: 1.5rem;
  }
  
  .track-artist-fullscreen {
    font-size: 1.2rem;
  }
  
  
  .vu-meter-fullscreen {
    width: 60px;
    height: 100vh;
    left: 0.5rem;
  }
  
  .radio-carousel-fullscreen {
    width: 98%;
    height: 90px;
  }
  
  .carousel-item {
    width: 50px;
    height: 50px;
    margin: 0 6px;
  }
  
  .carousel-item-text {
    font-size: 0.6rem;
    padding: 2px;
  }
  
  .fullscreen-clock {
    top: 1rem;
    padding: 0.6rem 1rem;
  }
  
  #clock-time {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  
  #clock-date {
    font-size: 0.8rem;
  }
  
  .carousel-track {
    padding: 0 40px;
  }
  
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}


.episode-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 0;
  transition: background-color 0.2s ease;
}

.episode-item:hover {
  background-color: #f8fafc;
}

.episode-item:last-child {
  border-bottom: none;
}

.play-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.play-button:active {
  transform: scale(0.95);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.category-btn {
  padding: 10px 20px;
  border-radius: 25px;
  border: 2px solid #e5e7eb;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #374151;
}

.category-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-container {
  position: relative;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.episode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.episode-modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  margin: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #374151;
}


.episode-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.episode-date {
  color: #6b7280;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.episode-description {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  
  .category-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .episode-modal-content {
    margin: 10px;
    padding: 20px;
    max-height: 90vh;
  }
  
  .search-container {
    margin-bottom: 20px;
  }
  
  .search-input {
    padding: 12px 45px 12px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  
  .episode-modal-content {
    margin: 5px;
    padding: 15px;
  }
  
  .category-filter {
    gap: 8px;
  }
  
  .category-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

