.radio-grid { grid-template-columns:repeat(17,minmax(0,1fr)); }
.weather-qr-modal { position:fixed; z-index:10000; top:0; right:0; bottom:0; left:0; display:flex; align-items:center; justify-content:center; padding:80px 20px 24px; background:rgba(0,0,0,.88); }
.weather-qr-panel { position:relative; width:430px; max-width:100%; }
.weather-qr-panel img { display:block; width:100%; height:auto; max-height:calc(100vh - 120px); object-fit:contain; background:#fff; border:8px solid #fff; border-radius:12px; }
#weather-qr-close { position:absolute; top:-68px; right:0; }
body.weather-qr-open { overflow:hidden; }
@media (orientation:portrait), (orientation:landscape) and (max-height:600px) {
  .radio-grid { grid-template-columns:repeat(9,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); }
  .radio-item { padding-left:2px; padding-right:2px; }
}
@supports not (display:grid) {
  .radio-item { width:calc((100% - 192px) / 17); }
  .radio-item:nth-child(n) { margin:0 12px 0 0; }
  .radio-item:nth-child(17n) { margin-right:0; }
  @media (orientation:portrait), (orientation:landscape) and (max-height:600px) {
    .radio-item { width:calc((100% - 64px) / 9); height:calc(50% - 4px); }
    .radio-item:nth-child(n) { margin:0 8px 0 0; }
    .radio-item:nth-child(9n) { margin-right:0; }
    .radio-item:nth-child(-n+9) { margin-bottom:8px; }
  }
}

.tv-grid { grid-template-columns:repeat(6,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); }
.channel-bazhou { background:#5a4483; border-color:#8069a8; }
.channel-bazhou:hover { background:#4b386f; border-color:#ac99cf; }
.channel-ordos { background:#275d72; border-color:#4889a0; text-decoration:none; }
.channel-ordos:hover { background:#204e61; border-color:#88baca; }
.channel-movies { background:#206b61; border-color:#398f82; }
.channel-movies:hover { background:#185b53; border-color:#8cc9bd; }
.movie-symbol { display:block; width:100%; height:auto; }
@media (orientation:portrait) {
  .tv-grid { grid-gap:8px; gap:8px; }
  .channel { padding-left:6px; padding-right:6px; }
  .channel-icon { flex-basis:44px; width:100%; max-width:44px; height:44px; margin-bottom:16px; }
  .channel-name { height:calc(100% - 60px); }
}
@media (orientation:landscape) and (max-height:600px) {
  .tv-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); }
  .channel-bazhou .channel-name { font-size:clamp(14px, 3.5vh, 24px); }
}
@media (orientation:landscape) and (max-height:480px) {
  .channel-name { top:6%; height:88%; }
}

.channel-programs { background:#6b4d20; border-color:#987439; }
.channel-programs:hover { background:#5b4118; border-color:#d1af72; }
.program-symbol { display:block; width:100%; height:auto; }

.tv-nav-note {
  flex:0 0 auto;
  width:100%;
  max-width:1680px;
  margin:0 auto;
  padding:0 32px 12px;
  padding-bottom:max(12px, env(safe-area-inset-bottom));
  color:#8397a8;
  font-size:12px;
  line-height:1.55;
  text-align:center;
}
.tv-nav-note p { margin:0; }
.tv-nav-note strong { font-weight:600; }
.tv-contact-button { min-height:28px; padding:0 2px; border:0; border-radius:4px; background:transparent; color:#91a9bd; cursor:pointer; text-decoration:underline; }
.tv-contact-button:focus { outline:2px solid #8ccaff; outline-offset:2px; }
.weather-qr-modal.is-contact { padding:20px; }
.weather-qr-modal.is-contact .weather-qr-panel { width:340px; }
.weather-qr-modal.is-contact #weather-qr-close { top:8px; right:8px; width:36px; height:36px; }
.weather-qr-modal.is-contact #weather-qr-close svg { width:18px; height:18px; }
.tv-contact-details { padding:38px 20px 28px; border:1px solid #38546e; border-radius:14px; background:#101b27; color:#fff; text-align:center; }
.tv-contact-details h2 { margin:0 0 10px; font-size:18px; }
.tv-contact-details p { margin:0; font-size:24px; font-variant-numeric:tabular-nums; user-select:text; }
@media (orientation:portrait), (orientation:landscape) and (max-height:600px) {
  .tv-nav-note { padding-left:18px; padding-right:18px; font-size:11px; }
}
