:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f4f6fb;
  --border: #e0e4ef;
  --text: #111827;
  --text-muted: #4b5675;
  --sbs: #e8321a;
  --sbs-love: #e83264;
  --kbs: #1a7ae8;
  --mbc: #7e1ae8;
  --mbc-std: #0fa870;
  --accent: #d4a017;
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }

.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header h1 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; }
.site-header h1 a { color: var(--text); }
.site-header h1 span { color: var(--sbs); }
.site-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

.channel-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 20px; }
.channel-nav-title { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; text-align: center; }
.channel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 900px; margin: 0 auto; }
@media (min-width: 600px) { .channel-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .channel-grid { grid-template-columns: repeat(5, 1fr); } }
.ch-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 12px 8px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 700; font-size: 0.8rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s; min-height: 66px; text-align: center;
  min-height: 56px;
}
.ch-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.ch-btn .freq { font-size: 0.7rem; font-weight: 600; opacity: 0.9; }
.ch-btn.sbs-p { background: linear-gradient(135deg, #e8321a 0%, #c42010 100%); color: #fff; }
.ch-btn.sbs-l { background: linear-gradient(135deg, #e83264 0%, #c41050 100%); color: #fff; }
.ch-btn.kbs-c { background: linear-gradient(135deg, #1a7ae8 0%, #1060c4 100%); color: #fff; }
.ch-btn.mbc-f { background: linear-gradient(135deg, #7e1ae8 0%, #6010c4 100%); color: #fff; }
.ch-btn.mbc-s { background: linear-gradient(135deg, #0fa870 0%, #088558 100%); color: #fff; }
.ch-btn.active { border-color: #d4a017; box-shadow: 0 0 0 3px rgba(212,160,23,0.25); }

.ad-banner { background: var(--surface2); border: 1px dashed var(--border); border-radius: var(--radius-sm); text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.8rem; margin: 14px auto; max-width: 900px; }

.main { max-width: 900px; margin: 0 auto; padding: 24px 20px; }

.breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }

.page-hero {
  padding: 24px 0 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.page-hero .ch-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 10px;
}
.badge-sbs-p { background: rgba(232,50,26,0.12); color: #c02812; border: 1px solid rgba(232,50,26,0.25); }
.badge-sbs-l { background: rgba(232,50,100,0.12); color: #b01045; border: 1px solid rgba(232,50,100,0.25); }
.badge-kbs { background: rgba(26,122,232,0.12); color: #1060c0; border: 1px solid rgba(26,122,232,0.25); }
.badge-mbc-f { background: rgba(126,26,232,0.12); color: #6010b0; border: 1px solid rgba(126,26,232,0.25); }
.badge-mbc-s { background: rgba(15,168,112,0.12); color: #087850; border: 1px solid rgba(15,168,112,0.25); }

.page-hero h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 8px; color: var(--text); }
.page-hero .freq-info { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.page-hero p { font-size: 0.92rem; color: var(--text-muted); max-width: 620px; }

/* ===== LISTEN NOW BUTTON ===== */
.listen-now-block { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; }
.listen-btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 30px;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.listen-btn-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.listen-btn-app {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 18px; border-radius: 30px;
  font-weight: 700; font-size: 0.88rem;
  background: #fff; color: var(--text);
  border: 2px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.listen-btn-app:hover { transform: translateY(-2px); border-color: #aab0c8; }
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #fff; border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
  margin-right: 2px;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.info-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.info-card .label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 4px; }
.info-card .value { font-size: 1rem; font-weight: 700; color: var(--text); }

.section-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); color: var(--text); }

/* ===== SCHEDULE TABLE ===== */
.schedule-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 0.88rem; }
.schedule-table th { background: var(--surface2); padding: 10px 12px; text-align: left; font-size: 0.78rem; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.schedule-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; background: var(--surface); }
.schedule-table tr:hover td { background: var(--surface2); }
.schedule-table .time { font-weight: 700; white-space: nowrap; color: var(--sbs); width: 80px; }
.schedule-table .prog-name { font-weight: 700; color: var(--text); }
.schedule-table .prog-name a { color: var(--text); }
.schedule-table .prog-name a:hover { color: var(--sbs); text-decoration: underline; }
.schedule-table .dj { color: var(--text-muted); font-size: 0.82rem; }
.time-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.72rem; margin-left: 6px; vertical-align: middle; }
.tag-nationwide { background: rgba(212,160,23,0.15); color: #a07000; }

/* ===== PROGRAM CARDS (for channel index) ===== */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 32px; }
.prog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s; display: block;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.prog-card:hover { border-color: #b0b8d4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.prog-card .time-slot { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }
.prog-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; color: var(--text); }
.prog-card .dj-name { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.prog-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }
.prog-card .read-more { font-size: 0.78rem; color: var(--sbs); margin-top: 10px; display: block; font-weight: 700; }

/* ===== PROGRAM DETAIL ===== */
.prog-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 28px; }
.meta-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.meta-item .label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.meta-item .value { font-size: 0.95rem; font-weight: 700; color: var(--text); }

.prog-desc { font-size: 0.92rem; color: #3a4060; line-height: 1.75; margin-bottom: 24px; }
.prog-intro { font-size: .95rem; color: #3a4060; line-height: 1.85; margin-bottom: 20px; }
.prog-intro p { margin-bottom: 12px; }

.corner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 8px; }
.corner-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.corner-name { font-size: .9rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.corner-card p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

.highlight-box { background: var(--surface2); border-left: 4px solid; border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; font-size: .88rem; color: #3a4060; line-height: 1.75; }

/* ===== FAQ ===== */
.faq-section { margin-top: 40px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; background: var(--surface); }
.faq-q { padding: 13px 16px; font-weight: 700; font-size: 0.9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--surface); user-select: none; color: var(--text); }
.faq-q .icon { transition: transform 0.25s; color: var(--text-muted); }
.faq-item.open .faq-q .icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.2s; font-size: 0.86rem; color: #3a4060; background: var(--surface2); padding: 0 16px; }
.faq-item.open .faq-a { max-height: 300px; padding: 13px 16px; }

/* ===== RELATED PROGRAMS ===== */
.related-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.related-link { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.82rem; transition: background 0.15s, border-color 0.15s; color: var(--text); }
.related-link:hover { background: var(--surface2); border-color: #b0b8d4; }

/* ===== FOOTER ===== */
footer { background: var(--surface); border-top: 2px solid var(--border); padding: 24px 20px; text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 48px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .main { padding: 16px 14px; }
  .page-hero h1 { font-size: 1.5rem; }
  .listen-btn-main, .listen-btn-app { padding: 14px 18px; font-size: 0.9rem; width: 100%; justify-content: center; }
  .listen-now-block { flex-direction: column; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .prog-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .corner-grid { grid-template-columns: 1fr; }
  .schedule-table { font-size: 0.82rem; }
  .schedule-table .dj { display: none; }
  .ch-btn { font-size: 0.75rem; padding: 10px 6px; min-height: 52px; }
  .faq-q { font-size: 0.85rem; }
}
@media (max-width: 400px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
}
