/* Mobile Styles for Xfinite Radio */

body {
  margin: 0;
  padding: 0;
  background-color: #1e1e2f;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.navbar {
  background-color: #111;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  max-width: 350px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.store-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.store-icons img {
  width: 100px;
  height: auto;
}

.hamburger {
  font-size: 24px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #111;
  border-radius: 8px;
  padding: 10px;
  width: 200px;
  z-index: 1001;
}


.nav-menu a,
.dropdown-btn {
  padding: 12px 14px;
  border-bottom: 1px solid #333;
  width: 100%;
  box-sizing: border-box;
}


.dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dropdown-btn {
  background: none;
  color: white;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  border: none;
  cursor: pointer;
}

.dropdown-content a {
  padding: 10px 16px;
  font-size: 14px;
}

.dropdown-content a {
  padding: 8px 14px;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  color: white;
}

.hidden {
  display: none !important;
}



.grid-heading {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
  color: #ccc;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 10px;
}

.station-tile {
  background: #2c2c3a;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  position: relative;
  overflow: hidden; /* ✅ Important to prevent overflow */
}


.station-tile img {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  object-fit: contain;
  background-color: #1e1e2f; /* Optional: adds nice background framing */
  display: block;
}




.station-tile div {
  font-size: 14px;
  font-weight: bold;
  margin: px 0;
}

.station-tile .description {
  font-size: 12px;
  color: #ccc;
}

.star-btn {
  background: none;
  border: none;
  color: gold;
  font-size: 22px;
  position: absolute;
  top: 6px;
  right: 6px;
  cursor: pointer;
}

.player-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #111;
  padding: 12px 10px 30px; /* Extra bottom space */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
}

.player-art {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.player-info {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  min-width: 0;
  flex: 1;
}

.player-info div {
  max-width: calc(100vw - 100px); /* prevent overflow */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* For scrolling Now Playing text */
.scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 8s linear infinite;
  font-size: 15px;
  color: #fff;
}

@keyframes scrollText {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
  margin-bottom: 12px;
}

/* Make the controls big */
.player-controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
}

/* Make Song History button smaller */
.history-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}


.song-history-popup {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  background: #2c2c3a;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  font-size: px; /* Smaller font */
  z-index: 999;
  display: none;
  flex-direction: column;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.song-history-popup.show {
  display: flex;
}

.song-history-popup .close-history {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #2c2c3a;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
}

.modal-content input,
.modal-content button {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
}

.modal-content button {
  background-color: #9b59b6;
  color: white;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}
/* Fullscreen Player Styles */
.fullscreen-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e1e2f;
  color: white;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  overflow-y: auto;
  text-align: center;
}

.fullscreen-player {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


.fullscreen-player.hidden {
  display: none;
}

.fullscreen-art {
  width: 80%;
  max-width: 300px;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.fullscreen-meta {
  margin-top: 10px;
}

.fullscreen-meta div {
  font-size: 18px;
  margin: 6px 0;
  word-wrap: break-word;
}

.fullscreen-controls {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 20px;
}

.fullscreen-controls button {
  font-size: 48px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fullscreen-controls button:hover {
  transform: scale(1.2);
  color: #9b59b6;
}

.fullscreen-history {
  margin-top: 20px;
  padding: 10px;
  max-width: 90%;
  background: #2a2a3b;
  border-radius: 10px;
  font-size: 14px;
  color: #ccc;
  text-align: left;
  line-height: 1.6;
}

.close-fullscreen {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}
.fullscreen-fav {
  background: none;
  border: none;
  color: gold;
  font-size: 26px;
  margin-top: -10px;
  margin-bottom: 10px;
  cursor: pointer;
}
/* Updated menu styles */
.nav-menu {
  background-color: rgba(0, 0, 0, 0.85); /* Transparent black */
  color: #e6ccff; /* Light purple */
}

.nav-menu a,
.dropdown-btn {
  color: #e6ccff;
}

.dropdown-content {
  background-color: rgba(0, 0, 0, 0.85); /* Match main menu */
}

.dropdown-content a {
  color: #e6ccff;
}
.nav-menu {
  transition: all 0.3s ease;
}
.song-history-popup {
  position: fixed;
  bottom: 60px; /* pushes it just above the player bar */
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  color: white;
  z-index: 1002;
  padding: 10px 15px;
  max-height: 200px;
  overflow-y: auto;
  border-top: 2px solid #9b59b6;
  font-size: 14px;
}
.hidden {
  display: none;
}


.song-history-popup.hidden {
  display: none;
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body {
  padding-top: 70px; /* Push content below the fixed navbar */
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  z-index: 1000;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.navbar-row {
  width: 100%;
  position: relative; /* important for absolute positioning of hamburger */
}


.navbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 2;
}

.logo {
  height: 40px;
  margin-bottom: 4px;
}

.reload-hint {
  font-size: 12px;
  color: #ccc;
}
.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}
.nav-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* 🔄 feel free to increase from 12px to 16px */
  margin-top: 6px;
  position: relative;
}
.station-grid::after {
  content: "";
  display: block;
  height: 170px; /* Adjust if needed based on your player bar height */
}
