/* Grid */
.station-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}

/* Card */
.stationCard{
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stationCard:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Logo */
.stationLogo{
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  flex: 0 0 auto;
  background: #f5f5f5;
  padding: 6px;
}

/* Text */
.stationText{ min-width: 0; }
.stationName{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #111111;
}
.stationMeta{
  margin-top: 4px;
  font-size: 13px;
  color: #666666;
  line-height: 1.3;
}

/* Mobile */
@media (max-width: 600px){
  .station-grid{ grid-template-columns: 1fr; }
  .stationLogo{ width: 72px; height: 72px; }
  .stationName{ font-size: 15px; }
}

/* Sister Stations Slider (tab-link style + logo) */
.sister-slider{
  max-width: 100%;
  margin: 18px 0 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.sister-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 0 10px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.sister-title{
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 10px 8px 10px 8px;
}

.sister-controls{
  display: flex;
  gap: 6px;
  padding: 8px 8px 8px 0;
}

.sister-arrow{
  flex: 0 0 auto;
  width: 44px;
  text-align: center;
  padding: 10px 0;
}

.sister-track{
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.sister-track::-webkit-scrollbar{ height: 10px; }
.sister-track::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

/* Each slide uses tab-link styling but becomes a mini card */
.sister-item{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 999px; /* pill */
  padding: 10px 14px;
  text-align: left;
}

/* Logo in the pill */
.sister-logo{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 4px;
  flex: 0 0 auto;
}

.sister-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Mobile: hide arrows (swipe instead), tighten */
@media (max-width: 600px){
  .sister-controls{ display: none; }
  .sister-item{ padding: 10px 12px; }
  .sister-logo{ width: 34px; height: 34px; }
}

/* ===== Sister Stations slider – FORCE logo sizing & stop tab flex ===== */

#mainsection .sister-track{
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#mainsection .sister-item{
  /* override .tab-link (which has flex:1 for tabs) */
  flex: 0 0 auto !important;

  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  /* keep the same tab-button look but as a pill */
  border-radius: 999px !important;
  padding: 10px 14px !important;

  white-space: nowrap !important;
  text-decoration: none !important;

  /* protect layout */
  max-width: 320px;
  overflow: hidden;
}

/* Fixed logo box */
#mainsection .sister-logoBox{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

/* HARD cap the image size */
#mainsection img.sister-logo{
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  display: block !important;
}

#mainsection .sister-name{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

/* Mobile tweaks */
@media (max-width: 600px){
  #mainsection .sister-logoBox{ width: 38px; height: 38px; border-radius: 10px; }
  #mainsection img.sister-logo{ width: 34px !important; height: 34px !important; }
}