* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Anek Devanagari', system-ui, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  padding-bottom: 100px;
}

header {
  background: #1565c0;
  color: #fff;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
}
header .logo img { height: 32px; width: 32px; }

main { max-width: 1100px; margin: 0 auto; padding: 20px; }
h1 { font-size: 24px; margin-bottom: 16px; }

.search-box { position: relative; max-width: 420px; margin-bottom: 16px; }
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 2px rgba(21,101,192,.2);
}
.search-box::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .6;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all .2s;
}
.filters button:hover { border-color: #1565c0; }
.filters button.active {
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
}

.count { font-size: 13px; color: #777; margin-bottom: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  border-color: #1565c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,101,192,.15);
}
.card.active {
  border-color: #1565c0;
  box-shadow: 0 0 0 2px rgba(21,101,192,.3);
}
.card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: #eee;
}
.card .name { font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.3; }
.card .freq { font-size: 11px; color: #1565c0; font-weight: 600; margin-top: 2px; }
.card .loc  { font-size: 10px; color: #777; margin-top: 2px; }

.empty { text-align: center; padding: 40px; color: #888; }

.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #222;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,.3);
}
.player-bar .now {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 160px;
}
.player-bar .now img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #444;
}
.player-bar .now .info { min-width: 0; }
.player-bar .now .p-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar .now .p-freq { font-size: 11px; color: #64b5f6; }

.controls { display: flex; align-items: center; gap: 4px; }
.controls button {
  background: transparent;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.controls button:hover { background: rgba(255,255,255,.15); }
.controls button:disabled { opacity: .35; cursor: not-allowed; }
.controls .main {
  background: #1565c0;
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.controls .main:hover { background: #1e88e5; }

.volume-box { display: flex; align-items: center; gap: 6px; }
.volume-box input[type="range"] { width: 80px; accent-color: #1565c0; }
.volume-box .v-label { font-size: 12px; color: #ccc; width: 28px; text-align: right; }

.status {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  width: 100%;
  padding-top: 4px;
}
.status.error { color: #64b5f6; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 600px) {
  .volume-box input[type="range"] { width: 70px; }
  .player-bar .now .p-name { font-size: 13px; }
}