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

/* Prevent mobile/desktop side-scroll and container overflow */
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;
}

body, html {
  background: #fcf1d7;
  color: #52301B;
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.main-header {
  display: flex;
  align-items: center;
  background: #F8E8C0;
  padding: 1.7em 1em 1em 1em;
  border-bottom: 4px solid #9D6222;
  box-shadow: 0 2px 12px #cbb17630;
  position: relative;
}
.logo {
  width: 110px;
  height: 110px;
  margin-right: 1.8em;
  border-radius: 22px;
  border: 2px solid #9D6222;
  background: #fff;
  box-shadow: 0 1px 12px #9D622215;
  transition: box-shadow 0.15s;
}
.logo:hover {
  box-shadow: 0 0 16px #2b632380;
}
.brand h1 {
  color: #96571B;
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 #f0e6d8;
}
.country-sub {
  color: #2B6323;
  margin: 0 0 0.15em 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.10em;
}
.tagline {
  color: #B58133;
  background: #fff3dd;
  display: inline-block;
  padding: 0.28em 1em 0.18em 1em;
  border-radius: 1.1em;
  margin-top: 0.7em;
  font-weight: 700;
  font-size: 1em;
  box-shadow: 0 1px 6px #e7d7b830;
  letter-spacing: 0.04em;
}
.clockbox {
  position: absolute;
  right: 2.1em;
  top: 1.4em;
  font-size: 1.07em;
  color: #2B6323;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: #ffefb8;
  padding: 0.44em 1.07em;
  border-radius: 1.05em;
  box-shadow: 0 0 7px #2b632330;
  min-width: 120px;
  text-align: center;
  z-index: 100;
}
@media (max-width: 900px) {
  .clockbox { position: static; display: block; margin: 0.8em auto 0 auto; }
}
.main-header { position: relative; }

.main-nav {
  background: #FAF2DD;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8em 0;
  font-size: 1.15em;
  box-shadow: 0 1px 6px #cbb17625;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  flex-wrap: wrap;
}
.main-nav a {
  color: #96571B;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.1em;
  border-radius: 0.7em;
  transition: background 0.14s, color 0.12s;
}
.main-nav a.active,
.main-nav a:hover {
  background: #D6A54C;
  color: #fff;
}

#main-content, .main-content {
  width: 98vw;
  max-width: 820px;
  margin: 2em auto 2em auto;
  padding: 2em 2.3em 2em 2.3em;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px #e7d7b870;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
@media (max-width: 900px) {
  #main-content, .main-content { max-width: 96vw; padding: 1.1em 0.3em;}
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: #FAF2DD;
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.11em;
}
.status-table th,
.status-table td {
  padding: 0.6em 0.7em;
  text-align: left;
  font-size: 1em;
  border-bottom: 1px solid #e0c796;
}
.status-table th {
  background: #D6A54C;
  color: #fff;
  font-weight: bold;
}
.status-table tr:last-child td {
  border-bottom: none;
}
.loader {
  text-align: center;
  padding: 2.5em 0;
  font-size: 1.2em;
  color: #96571B;
}

.mounts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 1em 0;
  background: #faf2dd;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.06em;
  box-shadow: 0 2px 18px #e7d7b870;
}
.mounts-table th, .mounts-table td {
  padding: 0.64em 0.9em;
  text-align: left;
  border-bottom: 1px solid #e0c796;
}
.mounts-table th {
  background: #C59A54;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.03em;
  font-size: 1.01em;
}
.mounts-table tr:last-child td { border-bottom: none; }

.mounts-table .mount-link a {
  color: #2B6323;
  font-weight: bold;
  text-decoration: underline;
}
.mounts-table .mount-link a:hover {
  color: #b58133;
}

.song-history-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 13px #e7d7b870;
  padding: 1.7em 1.7em 1.2em 1.7em;
  margin-bottom: 2em;
  margin-top: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.song-history-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0 0.1em 0;
  font-size: 1em;
  background: #FAF2DD;
  border-radius: 8px;
  overflow: hidden;
}
.song-history-table th, .song-history-table td {
  padding: 0.5em 0.7em;
  text-align: left;
  border-bottom: 1px solid #e0c796;
}
.song-history-table th {
  background: #C59A54;
  color: #fff;
  font-weight: bold;
  font-size: 1.06em;
}
.song-history-table tr:last-child td { border-bottom: none; }
.song-history-table td {
  color: #52301B;
  font-size: 1.01em;
}


/* Responsive: prevent mobile left/right scroll and fix player bar size */
@media (max-width: 650px) {
  .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.7em; min-width: 90vw;}
  .audio-player-footer { flex-direction: column; height: auto; min-height: 54px; font-size: 0.98em;}
  .audio-player-footer .apf-song { max-width: 96vw; font-size: 1em;}
  .main-nav { flex-wrap: wrap; gap: 1em; }
}

/* Prevent side-scroll at all times, hard enforcement */
@media (max-width: 700px) {
  html, body, .audio-player-footer, .main-nav, #main-content, .main-content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }
}

footer {
  padding: 1.3em 0 1em 0;
  text-align: center;
  background: #F8E8C0;
  border-top: 2px solid #9D6222;
  color: #93641B;
  font-size: 1em;
  letter-spacing: 0.04em;
}
.footer-content a {
  color: #2B6323;
  font-weight: 700;
  text-decoration: underline;
}

.audio-player-footer {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #FAE8C6;
  border-top: 2px solid #C59A54;
  color: #b58133;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.15em 0.6em;
  box-shadow: 0 2px 9px #bda06c18;
  height: 38px;              /* Smaller height, matches pop.css */
  font-size: 1em;
  gap: 0.2em;
}

.audio-player-footer .apf-btn {
  background: none;
  border: none;
  color: #C59A54;
  font-size: 1.13em;        /* Match pop.css sizing */
  margin: 0 0.35em 0 0;
  cursor: pointer;
  transition: color 0.14s;
  padding: 0;
  width: 2em;
  height: 2em;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-player-footer .apf-btn:hover { color: #B58133; }

.audio-player-footer .apf-seek, .audio-player-footer .apf-volume {
  margin: 0 0.55em;
  accent-color: #C59A54;
  width: 90px;
  height: 4px;
  border-radius: 6px;
  background: #fff;
}

.audio-player-footer .apf-time {
  font-size: 0.97em;
  min-width: 40px;
  text-align: center;
  padding: 0 0.18em;
}

.audio-player-footer .apf-song {
  flex: 1 1 auto;
  text-align: right;
  font-weight: 700;
  font-size: 1em;
  color: #b58133;
  margin-right: 0.45em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 45vw;
}

/* --- MOBILE (match pop channel) --- */
@media (max-width: 650px) {
  .audio-player-footer {
    flex-direction: column;
    height: auto;
    min-height: 38px;
    padding: 0.18em 0.18em;
    font-size: 0.97em;
    gap: 0.05em;
  }
  .audio-player-footer .apf-song {
    max-width: 88vw;
    font-size: 0.95em;
    margin-right: 0;
    margin-top: 0.18em;
  }
  .main-header, #main-content { min-width: 0; }
}