/* 点歌页专属布局与终态视觉覆盖。基础控件样式继续由 style/reservation.css 提供。 */
body.radio-page .main-content {
  width: min(1200px, calc(100% - 32px));
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.radio-page .radio-header {
  text-align: left;
  max-width: none;
  margin: 0;
  padding: 0 0 4px;
}

body.radio-page .radio-title {
  margin: 0 0 6px;
  line-height: 1.25;
}

body.radio-page .radio-subtitle {
  margin: 0;
}

body.radio-page .radio-card,
body.radio-page .radio-form-card,
body.radio-page .hot-songs-section {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(36, 78, 72, .1);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(32, 65, 60, .08);
}

body.radio-page .radio-form-card::before,
body.radio-page .hot-songs-section::before,
body.radio-page .playlist-item::before {
  display: none !important;
  content: none !important;
}

body.radio-page .playlist-item {
  overflow: visible;
}

body.radio-page .radio-form-card {
  padding: 24px;
}

body.radio-page .radio-playlist-card {
  padding: 20px;
}

body.radio-page .hot-songs-section {
  padding: 24px;
}

body.radio-page .radio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.radio-page .radio-card-header .section-title {
  margin: 0;
}

body.radio-page .radio-card-kicker {
  flex: 0 0 auto;
  color: #7a8c87;
  font-size: .76rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

body.radio-page .remaining-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(181, 133, 55, .25);
  border-radius: 999px;
  background: #fff8e8 !important;
  color: #76562a !important;
  box-shadow: none;
  font-size: .8rem;
  line-height: 1.2;
  white-space: nowrap;
}

body.radio-page .radio-notice-bar {
  display: flex;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 104, .1);
  border-radius: 8px;
  background: #f2f8f5;
  color: #416963;
  font-size: .84rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.radio-page .radio-form {
  gap: 0 18px;
}

body.radio-page .radio-form .form-group {
  min-width: 0;
}

body.radio-page .radio-form .form-actions {
  width: 100%;
  margin-top: 4px;
}

body.radio-page .radio-slot-group .slot-cards-grid {
  margin-top: 8px;
}

/* 时段按钮保留原有卡片视觉，但恢复原生键盘焦点和语义。 */
body.radio-page .slot-card-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  font: inherit;
  line-height: inherit;
  text-align: center;
}

body.radio-page .slot-card-item:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .45);
  outline-offset: 2px;
}

/* 暂无时段只保留一行轻量提示，避免状态组件把表单撑得过高。 */
body.radio-page .radio-slot-group .slot-cards-grid.radio-state {
  display: flex;
  min-height: 40px;
  box-sizing: border-box;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(47, 111, 104, .16);
  border-radius: 10px;
  background: #fbfdfc;
  color: #83938e;
  text-align: left;
}

body.radio-page .radio-slot-group .slot-cards-grid .radio-state-icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

body.radio-page .radio-slot-group .slot-cards-grid .radio-state-message {
  font-size: .8rem;
  line-height: 1.35;
}

body.radio-page .radio-form .btn-publish {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, .2);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.radio-page .radio-form .btn-publish:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 14px 26px rgba(249, 115, 22, .28);
  filter: saturate(1.06);
  transform: translateY(-2px);
}

body.radio-page .radio-form .btn-publish:active {
  transform: translateY(0) scale(.99);
}

body.radio-page .playlist {
  max-height: none !important;
  padding-right: 0;
  overflow: visible !important;
}

body.radio-page .playlist-empty {
  box-sizing: border-box;
  min-height: 40px;
  margin: 0;
  padding: 11px 12px;
  border: 1px dashed rgba(47, 111, 104, .18);
  border-radius: 8px;
  background: #fbfdfc;
  color: #83938e;
  text-align: center;
}

body.radio-page .hot-songs-section .section-title {
  margin-bottom: 8px;
}

body.radio-page .hot-songs-section .radio-intro {
  margin: 0 0 16px;
  color: #7a8c87;
  font-size: .84rem;
}

body.radio-page .hot-songs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

body.radio-page .hot-song-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(36, 78, 72, .08);
  border-radius: 12px;
  background: #fbfdfc;
  box-shadow: none;
  transform: none;
}

body.radio-page .hot-song-item:hover {
  border-color: rgba(47, 111, 104, .2);
  box-shadow: 0 6px 16px rgba(32, 65, 60, .07);
  transform: translateY(-1px);
}

body.radio-page .hot-song-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: #eef2f1;
  color: #71817d;
  font-size: .82rem;
  font-weight: 800;
}

body.radio-page .hot-song-rank.rank-1 { background: #ffe2a8; color: #a45d00; }
body.radio-page .hot-song-rank.rank-2 { background: #e8edf0; color: #5d6b73; }
body.radio-page .hot-song-rank.rank-3 { background: #ffd9bd; color: #a94f1c; }

body.radio-page .hot-song-content {
  min-width: 0;
  flex: 1 1 auto;
}

body.radio-page .hot-song-name {
  min-width: 0;
  margin: 0 0 4px;
  overflow: hidden;
  color: #29433f;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.radio-page .hot-song-artist {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7a8c87;
  font-size: .78rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.radio-page .hot-song-meta {
  gap: 4px;
  overflow: hidden;
  color: #8b9995;
  font-size: .72rem;
  line-height: 1.35;
}

body.radio-page .hot-song-author,
body.radio-page .hot-song-recipient {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.radio-page .hot-song-recipient::before {
  content: '·';
  margin: 0 4px;
}

body.radio-page .hot-song-message {
  max-width: 100%;
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  font-size: .72rem;
  text-overflow: ellipsis;
}

body.radio-page .hot-song-vote {
  flex: 0 0 auto;
}

body.radio-page .hot-song-vote .vote-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(205, 105, 77, .2);
  border-radius: 999px;
  background: #fff7f1;
  color: #aa6045;
  box-shadow: none;
}

body.radio-page .hot-song-vote .vote-btn:hover {
  border-color: rgba(205, 105, 77, .38);
  background: #ffefe4;
  transform: none;
}

body.radio-page .hot-song-vote .vote-icon { font-size: .92rem; }
body.radio-page .hot-song-vote .vote-count { color: #aa6045; font-size: .78rem; }

@media (min-width: 769px) {
  body.radio-page .navbar .nav-inner {
    width: min(1200px, calc(100% - 48px));
    box-sizing: border-box;
  }

  body.radio-page .bottom-tab-bar {
    display: none !important;
  }

  body.radio-page .main-content {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: 24px;
    padding: calc(var(--navbar-height, 64px) + 24px) 24px 72px;
  }

  body.radio-page .radio-header,
  body.radio-page #mySongsSection {
    grid-column: 1 / -1;
  }

  body.radio-page .radio-header {
    grid-row: 1;
    margin-bottom: 0;
  }

  body.radio-page .radio-section,
  body.radio-page .radio-form-section,
  body.radio-page .playlist-section {
    min-width: 0;
  }

  body.radio-page .radio-form-section {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  body.radio-page .playlist-section {
    grid-column: 2;
    grid-row: 2;
  }

  body.radio-page .hot-songs-section {
    grid-column: 2;
    grid-row: 3;
  }

  body.radio-page #mySongsSection {
    grid-row: 4;
  }

  body.radio-page .radio-form-card {
    height: 100%;
  }

  body.radio-page .radio-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  body.radio-page .radio-form .radio-form-wide,
  body.radio-page .radio-form .radio-anonymous,
  body.radio-page .radio-form .form-actions {
    grid-column: 1 / -1;
  }

  body.radio-page .playlist {
    max-height: none;
    overflow: visible;
  }

  body.radio-page .side-cards-container {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.radio-page {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.radio-page .main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: calc(var(--navbar-height, 56px) + 12px) 16px 90px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  body.radio-page .radio-header {
    order: 1;
    max-width: 100%;
    padding-bottom: 0;
  }

  body.radio-page .playlist-section { order: 2; }
  body.radio-page .radio-form-section { order: 3; }
  body.radio-page .hot-songs-section { order: 4; }
  body.radio-page #mySongsSection { order: 5; }

  body.radio-page .radio-section,
  body.radio-page .radio-card,
  body.radio-page .radio-form-card,
  body.radio-page .playlist,
  body.radio-page .hot-songs-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.radio-page .radio-form-card {
    height: auto;
  }

  body.radio-page .radio-playlist-card,
  body.radio-page .radio-form-card,
  body.radio-page .hot-songs-section {
    padding: 18px;
  }

  body.radio-page .radio-form {
    display: block;
  }

  body.radio-page .radio-form .form-group {
    width: 100%;
  }

  body.radio-page .radio-form .form-actions {
    margin-top: 8px;
    padding-bottom: 20px;
  }

  body.radio-page .radio-card-header {
    margin-bottom: 14px;
  }

  body.radio-page .remaining-count {
    width: auto;
    min-height: 30px;
    margin: 0;
    padding-inline: 10px;
    font-size: .75rem;
  }

  body.radio-page .radio-title { font-size: 1.4rem; }
  body.radio-page .radio-subtitle { font-size: .86rem; }
  body.radio-page .hot-song-item { gap: 9px; padding: 10px; }
  body.radio-page .hot-song-name { font-size: .88rem; }
  body.radio-page .hot-song-vote .vote-btn { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  body.radio-page .hot-song-item,
  body.radio-page .hot-song-vote .vote-btn,
  body.radio-page .radio-form .btn-publish {
    transition: none;
  }
}
/* End radio page styles. */

html.notification-sidebar-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* 横屏桌面：排行榜改为表单和今日排歌下方的横向浏览区。 */
@media (min-width: 769px) and (orientation: landscape) {
  body.radio-page .radio-form-section {
    grid-row: 2;
  }

  body.radio-page .hot-songs-section {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  body.radio-page .hot-songs-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 0 8px;
  }

  body.radio-page .hot-song-item {
    height: 100%;
    align-items: flex-start;
  }
}
