:root {
  --navy: #003366;
  --link: #008080;
  --now-red: #cc0000;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #222;
  background: #51bdfe;
}
.topbar {
  text-align: center;
  padding: 18px 12px 10px;
  color: #0f4c81;
}
.topbar h1,
.topbar .station-title {
  margin: 0;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 22px;
}
.brand-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: min(980px, 96%);
  margin: 0 auto;
}
.topbar .station-logo,
.topbar .station-logo-mobile {
  width: 100%;
  max-width: 980px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}
.topbar .station-logo { display: none !important; }
.topbar .station-logo-mobile { display: none !important; }
.topbar .station-title { display: block; }
.topbar .sub {
  display: block;
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: none;
  color: #4a6a88;
}
.mode-live { color: #c41212; font-size: 16px; font-weight: 800; letter-spacing: 1px; }
@media (min-width: 768px) {
  .topbar .station-logo { display: block; }
  .topbar .station-logo-mobile,
  .topbar .station-logo { display: none !important; }
}
.wrap {
  max-width: 980px;
  margin: 8px auto 40px;
  background: #fff;
  padding: 16px 20px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  color: #666;
}
.search-row input { width: 220px; padding: 3px 6px; }
@media (max-width: 767px) {
  .search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: center;
  }
  .search-row input { width: 100%; max-width: 100%; box-sizing: border-box; }
  .search-row button { align-self: center; }
}
.layout { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
.section-head {
  background: var(--navy);
  color: #fff;
  font-weight: bold;
  padding: 4px 8px;
}
.track {
  display: grid;
  grid-template-columns: 88px 1fr 90px 48px;
  align-items: center;
  gap: 10px;
  background: #e6e6e6;
  padding: 6px 8px;
  border-bottom: 1px solid #ccc;
}
.track:nth-child(odd) { background: #efefef; }
.track.now { background: #d9d9d9; }
.cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #bbb;
  border: 1px solid #999;
}
.artist { color: #1a4a8a; font-size: 13px; }
.title { margin-top: 3px; }
.yt { text-align: center; }
.yt-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: none;
  padding: 0;
}
.yt-img {
  display: inline-block;
  width: 65px;
  height: 28px;
  border: 0;
  vertical-align: middle;
}
.yt-img-list {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 0;
  vertical-align: middle;
}
.dur { color: #1a4a8a; font-size: 12px; text-align: right; }
.soon { padding: 6px 8px; font-size: 12px; }
.soon .next { color: var(--now-red); font-weight: bold; }
.req-label {
  color: var(--now-red);
  font-weight: normal;
  font-style: italic;
  font-size: 12px;
  margin-top: 3px;
}
.top10 { background: #f3f3f3; border: 1px solid #ddd; font-size: 12px; }
.top10 h3 {
  margin: 0;
  background: #cfcfcf;
  padding: 4px 8px;
  font-size: 13px;
}
.top10 ol { margin: 8px 8px 10px 0; padding-left: 28px; }
.top10 a { color: var(--link); text-decoration: none; }
.top10 a:hover { text-decoration: underline; }
.count { color: #666; }
.nav {
  text-align: center;
  margin: 0 0 12px;
}
.nav a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.nav a.off { background: #888; }
.alpha { text-align: center; color: var(--link); margin: 8px 0; }
.alpha a { color: var(--link); text-decoration: none; margin: 0 2px; }
.alpha a.on { font-weight: bold; text-decoration: underline; }
.list-head {
  background: var(--navy);
  color: #fff;
  padding: 6px 8px;
  font-weight: bold;
}
table.playlist { width: 100%; border-collapse: collapse; }
table.playlist td { padding: 5px 8px; border-bottom: 1px solid #ddd; }
table.playlist tr:nth-child(odd) td { background: #e8e8e8; }
table.playlist tr:nth-child(even) td { background: #fafafa; }
.btn {
  background: #2a5a8a;
  color: #fff;
  border: 0;
  padding: 3px 8px;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
}
.btn.off { background: #c45a12; cursor: default; }
.pager { text-align: center; margin: 12px 0; }
.pager a { margin: 0 4px; color: var(--link); }
.req-ok {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 10px;
  background: #f6f9fc;
  border-left: 4px solid #2a7a2a;
}
.req-ok .cover { width: 90px; height: 90px; }
.flash { padding: 8px 10px; border-left: 4px solid var(--navy); background: #f6f9fc; }
.flash.ok { border-color: #2a7a2a; }
.flash.err { border-color: #cc0000; background: #fff3f3; }
.dedi { background: #fff8e8; border-bottom: 1px solid #ddd; padding: 8px; margin-bottom: 6px; }
.dedi h3 { background: #c9a227; color: #fff; }
.dedi p { margin: 6px 8px; font-size: 12px; }
.modal {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  align-items: center; justify-content: center; z-index: 999;
}
.modal.open { display: flex; }
.modal-box {
  background: #e8e8e8; width: min(720px, 94vw); min-height: 420px; max-height: 92vh; overflow: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.modal-head { background: var(--navy); color: #fff; padding: 8px 12px; font-weight: bold; }
.modal-grid {
  display: grid; grid-template-columns: 140px 1fr 1fr; gap: 14px; padding: 14px;
}
.modal-grid .cover { width: 170px; height: 170px; }
.modal-grid label { display: block; margin: 8px 0 3px; font-size: 12px; }
.modal-grid input, .modal-grid textarea { width: 100%; box-sizing: border-box; }
.modal-grid button { margin: 10px 8px 0 0; }
@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; }
}
.player-dock {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 230px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  padding: 16px 16px 14px;
  z-index: 800;
  text-align: center;
}
.dock-cover {
  width: 196px;
  height: 196px;
  object-fit: cover;
  background: #eee;
  border-radius: 8px;
}
.dock-artist {
  margin-top: 8px;
  font-size: 14px;
  color: #1a4a8a;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-title {
  font-size: 13px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.dock-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 20px;
  background: #f3f3f3;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.dock-ico:first-child { background: linear-gradient(#ffe36a,#f0b400); }
.dock-ico:nth-child(2) { background: linear-gradient(#6ad0ff,#2a7ad4); color: #fff; }
.dock-web { background: linear-gradient(#333,#111); color: #fff; }
.dock-socan { display: block; margin-top: 8px; line-height: 0; text-align: center; }
.dock-socan img { width: 120px; height: auto; }
.dock-socan-mobile { display: none; }
@media (max-width: 760px) {
  .player-dock { display: none !important; }
  .dock-socan-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    text-align: center;
    background: #fff;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 10px rgba(0,0,0,.15);
  }
  .dock-socan-mobile img { width: 110px; height: auto; }
  body { padding-bottom: 56px; }
}
.webplayer {
  text-align: center;
  max-width: 520px;
  margin: 10px auto 0;
}
.wp-cover {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  background: #ddd;
  border: 1px solid #ccc;
}
.wp-artist { margin-top: 12px; color: #1a4a8a; font-size: 20px; font-weight: bold; }
.wp-title { font-size: 16px; color: #333; margin-top: 4px; }
.wp-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 16px 0 8px;
}
.wp-play {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #003366;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.wp-controls input[type=range] { width: 180px; }
.wp-status { font-size: 12px; color: #666; margin-bottom: 12px; }
.wp-apps { display: flex; justify-content: center; gap: 16px; margin: 8px 0 16px; }
.wp-apps a { color: #008080; text-decoration: none; font-size: 13px; }
.wp-req {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 8px 16px;
  background: #cc0000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}
.wp-socan img { width: 140px; height: auto; }
@media (max-width: 760px) {
  .wp-cover { width: 160px; height: 160px; }
  .wp-artist { font-size: 16px; }
}
.m-saved { margin: 10px 0 0; color: #cc0000; font-size: 13px; }

#req-modal #m-artist { font-size: 22px; font-weight: normal; display: inline-block; }
#req-modal #m-title { font-size: 16px; font-weight: normal; display: inline-block; }
#req-modal .m-meta-artist { margin: 0 0 1.6em; }
#req-modal .m-meta-title { margin: 0 0 2.6em; }
#req-modal .m-stats { margin: 8px 0 0; font-size: 12px; color: #333; line-height: 1.4; }
.foot { margin-top: 16px; font-size: 12px; color: #666; text-align: center; }
.foot-tc img { width: min(480px, 95%); height: auto; }
.empty { padding: 16px; color: #666; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .track { grid-template-columns: 72px 1fr 70px; }
  .track.now { grid-template-columns: 72px 1fr 70px; }
  .cover { width: 64px; height: 64px; }
  .artist { font-size: 12px; }
  .dur { display: none; }
}

.yt-cell { white-space: nowrap; }
.info-btn {
  display: inline-block;
  margin-left: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  vertical-align: middle;
  font-size: 11px;
  color: #003366;
}
.info-btn img { width: 16px; height: 16px; display: block; }

#req-modal .m-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 0 14px 16px;
}
#req-modal #m-do-req.btn {
  font-size: 18px !important;
  padding: 10px 22px !important;
}
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .topbar { position: relative; }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    border: 0;
    background: transparent;
    color: #0f4c81;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav a, .nav a.hide-phone { display: block; margin: 6px 0; }
}
