
/* Layout recovered from the saved widget, with the existing 눈팅티비 palette. */
.broadcast-page { clear: both; color: #f0f2f2; }
.broadcast-page .content_box_title_box { display: flex; align-items: center; gap: 12px; }
.broadcast-page .content_box_title {
  display: flex;
  align-items: center;
  flex: 1; max-width: none; float: none; height: auto; min-height: 64px;
  min-width: 0;
  white-space: normal;
  line-height: 1.35;
}
.broadcast-page .title_box_tab { flex: none; min-width: 128px; width: auto; padding-right: 12px; }
.broadcast-page .title_box_tab ul { display: flex; align-items: center; overflow: visible; }
.broadcast-page .title_box_tab li { flex: none; margin: 0; }
.broadcast-page .title_box_tab li a { display: flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; padding-inline: 8px; font-size: 15px; white-space: nowrap; }
.broadcast-app {
  clear: both;
  --radius-lg: 10px;
  --radius-md: 7px;
  --radius-sm: 5px;
  --accent-text: #fff;
  --page-bg: #191e1f;
  --surface: #232a2d;
  --surface-muted: #2c3438;
  --surface-hover: #30474b;
  --row-hover: #243539;
  --border: #394449;
  --border-strong: #53666b;
  --text: #f1f4f2;
  --text-muted: #a3b5b7;
  --accent: #376b76;
  --accent-strong: #88c4ca;
  --waiting-bg: #3c4445;
  --waiting-text: #bcc6c6;
  --channel-bg: #35464b;
  --channel-text: #bfd9d9;
  box-sizing: border-box;
  line-height: 1.5;
  border-radius: 0 0 10px 10px;
}
.broadcast-app.is-light {
  --page-bg: #eef4f3;
  --surface: #fff;
  --surface-muted: #f3f7f6;
  --surface-hover: #e6f1ef;
  --row-hover: #e8f2f1;
  --text: #213638;
  --text-muted: #55696a;
  --border: #cbdad8;
  --border-strong: #a1bbb9;
  --waiting-bg: #dce6e4;
  --waiting-text: #4b6162;
  --channel-bg: #dfebe9;
  --channel-text: #355456;
}
.broadcast-app a { color: inherit; }
/* The archived shell assigns a fixed gray to div/td; keep widget text theme-aware. */
.broadcast-app div, .broadcast-app td { color: inherit; }
.broadcast-app svg { width: 1em; height: 1em; }
.broadcast-app .sport-symbol {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 34px;
}
.broadcast-app .category-filter { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.broadcast-app .category-button { text-decoration: none; gap: 4px; padding-top: 12px; }
.broadcast-app .category-icon-wrap { height: 44px; }
.broadcast-app .category-button .sport-image { width: 40px; height: 40px; object-fit: contain; }
.broadcast-app .view-selector .view-pill[href="/live"]::before,
.broadcast-app .view-selector .view-pill[data-channels="1"]::before { background-image: url('/assets/broadcast/icon_ch1.png'); }
.broadcast-app .view-selector .view-pill::before { filter: hue-rotate(55deg) saturate(.55); }
.broadcast-app .category-name { font-size: 12px; }
.broadcast-app .all-sports {
  display: grid;
  place-items: center;
  height: 52px;
  color: var(--accent-strong);
  font-size: 21px;
  font-weight: 800;
}
.broadcast-app .watch-button:only-child,
.broadcast-app .view-pill.is-active,
.broadcast-app .watch-button.is-active { color: #fff; }
.broadcast-app .player-grid { scroll-margin-top: 18px; }
.broadcast-app .player-frame video { display: block; width: 100%; height: 100%; background: #050605; object-fit: contain; }
.broadcast-app .player-message { margin: 0; padding: 8px 10px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.broadcast-app .player-retry, .broadcast-app [data-feed-refresh] { min-height: 42px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-hover); color: var(--text); font: inherit; cursor: pointer; }
.broadcast-app .feed-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.broadcast-app .feed-status { flex: 1; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.broadcast-app .broadcast-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.broadcast-app .media-title a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.broadcast-app .media-table thead { display: table-header-group; }
.broadcast-app .media-table th { height: 0; padding: 0; border: 0; }
.broadcast-app .media-title a:hover { color: var(--accent-strong); }
.broadcast-app .watch-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
.broadcast-app .media-status { width: 180px; }
.broadcast-app[data-channel-count="1"] .media-status { width: 100px; }
.broadcast-app .media-category { width: 48px; }
.broadcast-app .media-category img { width: 32px; height: 32px; }
.broadcast-app .media-time { width: 80px; }
.broadcast-app .media-league { width: 112px; }
.broadcast-app .media-thumb { width: 78px; }
.broadcast-app .icon-button { width: 40px; height: 40px; }
.broadcast-app .more-button { min-height: 40px; }
.broadcast-app .media-category .sport-symbol { font-size: 25px; }
.broadcast-app .thumb-placeholder {
  position: static; display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 28px; padding: 0 8px; margin: 0; vertical-align: middle;
  border: 1px solid var(--border-strong); border-radius: 6px;
  background: var(--surface-muted); color: var(--text-muted); font-size: 12px; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.broadcast-app .thumb-placeholder.is-live { border-color: #8e704d; background: #393126; color: #f6c281; }
.broadcast-app .status-waiting { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 40px; padding: 0 8px; white-space: nowrap; }
.broadcast-app .pager ul { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.broadcast-app .pager a,
.broadcast-app .pager span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.broadcast-app .pager [aria-current] { color: #fff; background: var(--accent); }
.broadcast-details { display: grid; gap: 24px; padding-top: 24px; }
.broadcast-intro { color: #b8c5c6; font-size: 14px; line-height: 1.7; }
.broadcast-page .faq {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-panel);
}
.broadcast-page .faq h2 { font-size: 19px; }
.broadcast-page .faq h3 { margin-bottom: 6px; font-size: 15px; }
.broadcast-page .faq p { color: #b8c5c6; font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) {
  .broadcast-app .category-filter { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .broadcast-page .content_box_title { padding-inline: 14px; font-size: 15px; }
  .broadcast-app .category-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .broadcast-app .category-name { font-size: 11px; }
  .broadcast-app .category-icon-wrap { height: 36px; }
  .broadcast-app .category-button .sport-image { width: 34px; height: 34px; }
  .broadcast-app .all-sports { height: 39px; font-size: 17px; }
  .broadcast-app .sport-symbol { font-size: 28px; height: 39px; }
  .broadcast-app .media-category .sport-symbol { font-size: 22px; }
  .broadcast-app .media-status, .broadcast-app[data-channel-count="1"] .media-status { width: 64px; }
  .broadcast-app .media-category { width: 34px; }
  .broadcast-app .media-category img { width: 24px; height: 24px; }
  .broadcast-app .media-time { width: 48px; }
  .broadcast-app .media-thumb { width: 54px; }
  .broadcast-app .thumb-placeholder { width: 44px; height: 24px; padding: 0 4px; font-size: 10px; }
  .broadcast-app .status-waiting { min-width: 54px; padding-inline: 4px; font-size: 10px; }
  .broadcast-app .watch-button { min-width: 0; }
}


/* 인기 리그(src/major-leagues.js): 팀 이름을 금색으로, 분류 칸에 리그 이름 표시 */
.broadcast-app .media-title.is-major a { color: #ffd27a; font-weight: 800; }
.broadcast-app .media-title.is-major a:hover, .broadcast-app .media-title.is-major a:focus-visible { color: #ffe7b0; }
.broadcast-app .major-league-badge { display: inline-block; max-width: 100%; padding: 2px 8px; overflow: hidden; border: 1px solid #c99a3e; border-radius: 999px; background: #3a2f14; color: #ffd98a; font-size: 13px; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
