@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');

/* ANTI-SCROLL AND RESPONSIVENESS FIXES */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  width: 100vw;
}
* { box-sizing: border-box; min-width: 0; }
img, .logo, .channel-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* MAIN DESIGN */
body, html {
  background: #fff9ef;
  color: #35210d;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.main-header {
  display: flex;
  align-items: center;
  background: #ffe6ad;
  padding: 1.6em 1em 1em 1em;
  border-bottom: 5px solid #099eac;
  box-shadow: 0 2px 14px #d6b37433;
  position: relative;
}
.logo {
  width: 110px;
  height: 110px;
  margin-right: 1.5em;
  border-radius: 24px;
  border: 2.5px solid #099eac;
  background: #fff;
  box-shadow: 0 1px 14px #9c9e9210;
  transition: box-shadow 0.15s;
}
.logo:hover { box-shadow: 0 0 24px #099eac55; }
.brand h1 {
  color: #bf7c2d;
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0 0 0.1em 0;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px #f9e9a0a0;
}
.pop-sub {
  color: #099eac;
  font-size: 1.3em;
  font-weight: 800;
  margin: 0 0 0.15em 0;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px #ffe68070;
}
.tagline {
  color: #fff;
  background: linear-gradient(90deg, #099eac 0%, #ffdf3a 80%);
  display: inline-block;
  padding: 0.3em 1em 0.2em 1em;
  border-radius: 1.1em;
  margin-top: 0.7em;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 1px 5px #ffdf3a60;
  letter-spacing: 0.06em;
}
.clockbox {
  position: absolute;
  right: 2.2em;
  top: 1.6em;
  font-size: 1.08em;
  color: #099eac;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: #ffdf3a;
  padding: 0.45em 1.12em;
  border-radius: 1.1em;
  box-shadow: 0 0 8px #099eac40;
  min-width: 120px;
  text-align: center;
  z-index: 100;
}
.listeners-box {
  position: absolute;
  right: 2.3em;
  top: 4.6em;
  font-size: 1em;
  background: #ecf9f8;
  color: #099eac;
  padding: 0.3em 1.1em;
  border-radius: 1.2em;
  box-shadow: 0 0 8px #099eac29;
  font-weight: 700;
}
@media (max-width: 900px) {
  .clockbox { position: static; display: block; margin: 0.8em auto 0 auto; }
  .listeners-box { position: static; margin: 0.8em auto 0 auto; display: inline-block;}
}

.main-header { position: relative; }

.main-nav {
  background: #ecf9f8;
  display: flex;
  justify-content: center;
  gap: 2.1rem;
  padding: 0.9em 0;
  font-size: 1.18em;
  box-shadow: 0 2px 8px #d6b37418;
  flex-wrap: wrap; /* ensure nav wraps on small screens */
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.main-nav a {
  color: #099eac;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.2em;
  border-radius: 0.7em;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.03em;
}
.main-nav a.active,
.main-nav a:hover {
  background: #ffdf3a;
  color: #302018;
}
#main-content, .main-content {
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin: 2.1em auto;
  padding: 1.7em;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 28px #ffd65650;
  min-width: 0;
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  background: #fffbe4;
  border-radius: 9px;
  overflow: hidden;
}
.status-table th, .status-table td {
  padding: 0.7em 0.8em;
  text-align: left;
  font-size: 1em;
  border-bottom: 1px solid #f8cc2e44;
}
.status-table th {
  background: #099eac;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.04em;
}
.status-table tr:last-child td { border-bottom: none; }
.loader {
  text-align: center;
  padding: 2.3em 0;
  font-size: 1.25em;
  color: #099eac;
}
.mount-box {
  background: #fffbe4;
  border-radius: 11px;
  padding: 1em 1.2em 0.7em 1.2em;
  margin-bottom: 2em;
  box-shadow: 0 2px 14px #099eac22;
  border-left: 7px solid #099eac;
}
.mount-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2em;
  min-width: 0;
}
.mount-head h3 {
  margin: 0;
  color: #099eac;
  font-weight: 900;
  font-size: 1.17em;
}
.mount-actions {
  display: flex;
  gap: 1.2em;
}
.stream-btn {
  background: #099eac;
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.45em 1.15em;
  font-weight: 700;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 2px 8px #099eac29;
  transition: background 0.14s, color 0.14s;
  text-decoration: none;
  cursor: pointer;
}
.stream-btn:hover, .stream-btn:focus {
  background: #ffdf3a;
  color: #099eac;
}
.mount-info {
  padding: 0.7em 0.3em 0.1em 0.3em;
}
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.08em;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}
.stats li {
  padding: 0.11em 0;
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-width: 0;
}
.stats li span {
  color: #ffdf3a;
  margin-right: 0.2em;
}
.stats li a {
  color: #099eac;
  text-decoration: underline;
}
.stats li a:hover {
  color: #bf7c2d;
}
audio {
  width: 98%;
  margin: 0.6em 0 1em 0;
  background: #fffbe0;
  border-radius: 8px;
  outline: none;
  border: 1.5px solid #099eac50;
  box-shadow: 0 1px 4px #ffdf3a25;
}
.now-playing-bar {
  background: linear-gradient(90deg, #ffe6ad 60%, #ffdf3a 100%);
  color: #099eac;
  font-size: 1.12em;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.3em 0.8em;
  border-top: 1px solid #ffd656;
  border-bottom: 1px solid #ffd656;
  text-shadow: 0 2px 6px #fff9ef44;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.now-playing-scroll {
  display: inline-block;
  min-width: 60vw;
  animation: scroll-left 18s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(100%);}
  100% {transform: translateX(-100%);}
}
.footer-player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffe6ad;
  border-top: 3px solid #099eac;
  color: #099eac;
  padding: 0.6em 0.7em;
  display: flex;
  align-items: center;
  gap: 1em;
  z-index: 9999;
  box-shadow: 0 -2px 12px #099eac14;
  font-size: 1.18em;
  width: 100vw;
  min-width: 0;
}
.player-btn {
  background: none;
  border: none;
  color: #099eac;
  font-size: 1.23em;
  cursor: pointer;
  margin-right: 0.4em;
}
.player-btn:focus { outline: none; }
.player-time {
  min-width: 48px;
  font-family: 'Roboto', monospace, Arial;
  font-size: 1.1em;
  font-weight: 700;
  color: #bf7c2d;
  margin-right: 0.3em;
}
.player-progress, .player-volume {
  accent-color: #099eac;
}
.player-progress {
  width: 21vw;
  min-width: 120px;
  max-width: 360px;
  vertical-align: middle;
  margin: 0 0.7em;
}
.player-volume {
  width: 6vw; min-width: 56px; max-width: 120px;
  margin: 0 0.4em;
  vertical-align: middle;
}
.footer-track-title {
  font-weight: bold;
  color: #bf7c2d;
  margin-left: 1em;
  font-size: 1.08em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 40vw;
}
.cookie-banner {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 3.1em;
  background: #fffbe4;
  color: #35210d;
  border-top: 2px solid #ffdf3a;
  font-size: 1.02em;
  text-align: center;
  padding: 0.8em 0.9em;
  z-index: 9999;
}
.cookie-banner button {
  margin-left: 1.2em;
  padding: 0.33em 1.6em;
  background: #099eac;
  color: #fff;
  border: none;
  border-radius: 0.5em;
  font-weight: bold;
  cursor: pointer;
  font-size: 1em;
}
.song-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5em;
  background: #fffbe4;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 10px #ffdf3a22;
}
.song-history-table th,
.song-history-table td {
  padding: 0.7em 0.8em;
  text-align: left;
  font-size: 1em;
  border-bottom: 1px solid #f8cc2e44;
}
.song-history-table th {
  background: #099eac;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.04em;
  font-size: 1.08em;
}
.song-history-table tr:last-child td { border-bottom: none; }
.song-history-legend {
  color: #099eac;
  font-weight: 700;
  margin-bottom: 1.5em;
  font-size: 1.14em;
}

/* MOBILE & TABLET FIXES */
@media (max-width: 900px) {
  .main-header { flex-direction: column; align-items: flex-start; padding: 1.1em 0.6em 0.7em 0.6em;}
  .logo { margin-bottom: 0.5em;}
  #main-content, .main-content { padding: 0.8em; }
  .footer-player { font-size: 1em;}
  .now-playing-bar { font-size: 0.98em;}
  .footer-track-title { max-width: 70vw; }
  .main-nav { flex-wrap: wrap; gap: 1em; }
}
@media (max-width: 700px) {
  #main-content, .main-content { padding: 0.6em; }
  .footer-player { font-size: 0.98em; }
  .main-nav { flex-wrap: wrap; gap: 0.6em; }
}

/* NO SIDE SCROLL ON MOBILE, HARD ENFORCEMENT */
@media (max-width: 700px) {
  html, body, .footer-player, .main-nav, #main-content, .main-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }
}
