/* Task-oriented screens: watching, other sports, and optional tools. */
[hidden] { display: none !important; }
.simplified .container { max-width: 1100px; padding: 0 24px; }
.simplified .topbar { max-width: 1100px; padding: 0 24px; height: 78px; gap: 32px; }
.simplified .topbar nav { margin-left: auto; gap: 24px; }
.simplified .topbar nav a { font-size: 13px; padding: 26px 0; }
.simplified .topbar nav a.active { color: var(--white); border-bottom: 2px solid var(--red); }
.simplified .match-card { background: #271b21; background-image: none; border-color: #50313b; margin: 24px 0 18px; min-height: 0; }
.simplified .match-card::after { display: none; }
.compact-match { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.compact-match > img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.compact-match > img:last-child { margin-left: auto; }
.compact-match h1 { font-size: 25px; line-height: 1.3; margin: 3px 0 7px; letter-spacing: -.6px; max-width: none; }
.match-label { font-size: 11px; color: #e4b7c1; }
.match-when { font-size: 13px; line-height: 1.7; color: #c8bec3; }
.match-when strong { color: var(--white); }
.current-game-context { margin: 0 0 12px; padding: 8px 10px; border-left: 2px solid var(--gold); background: #f8bb4208; color: #c8bec3; font-size: 10px; line-height: 1.55; border-radius: 0 5px 5px 0; }
.current-game-context.history { border-left-color: var(--muted); background: #ffffff08; }
.current-game-context strong { color: var(--white); }
.historical-match { box-shadow: inset 3px 0 #77737a; }
.source-freshness { display:block; margin-left:22px; color:var(--muted); font-size:9px; font-weight:400; }
.history-label { margin-top:14px; color:var(--muted); font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.simplified #watchView { max-width: 880px; margin: 0 auto; }
.simplified .player-panel { margin: 0; width: 100%; padding: 20px; }
.simplified .player-video > .section-top { margin-bottom: 12px; }
.player-video, .player-sidebar { min-width:0; }
.sidebar-heading { font-size:14px; letter-spacing:0; margin:16px 0 8px; }
.simplified .player-panel .section-top .eyebrow { display: none; }
.simplified .player-panel .section-top h2 { font-size: 20px; }
.watch-secondary { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; padding: 14px 0; }
.watch-secondary > * { font-size: 12px; color: #c8c8d1; }
.watch-secondary > *:hover { color: var(--white); }
.chiefs-page #findFeedBtn { display: none; }
.simplified .player-overlay h3 { font-size: 19px; }
.simplified .player-overlay p { font-size: 12px; }
.simplified .now-playing { min-height: 49px; }
.simplified .now-playing > span { font-size: 12px; overflow-wrap: anywhere; }
.player-options { border-top: 1px solid var(--line); padding-top: 12px; font-size: 11px; }
.player-options > summary { cursor: pointer; color: var(--muted); padding: 3px 0; }
.player-options[open] > summary { margin-bottom: 14px; color: var(--gold); }
.player-options .playback-logs { margin-top: 12px; }
.view-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 28px 0 20px; }
.view-heading h1 { font-size: 28px; line-height: 1.3; letter-spacing: -.5px; }
.view-heading > a { font-size: 12px; }
.tools-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 20px; }
.tools-tabs a { font-size: 13px; padding: 9px 14px; color: var(--muted); border: 1px solid transparent; border-radius: 6px; }
.tools-tabs a.active { color: var(--white); border-color: #4a3e43; background: #35252c; }
.directory-help { margin-bottom:14px; }
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tool-cards > a { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.tool-cards > a:hover { border-color: #7b4a58; }
.tool-cards strong { font-size: 18px; }
.tool-cards span { font-size: 13px; color: var(--muted); }
.simplified #toolsView > .panel { margin-top: 0; }
.simplified #feeds { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding-right: 5px; }
.simplified .stream-options { font-size: 11px; padding-top: 16px; color: var(--muted); }
.stream-options > summary { cursor: pointer; }
.stream-options .discovery-toolbar { margin-top: 16px; }
.simplified .quality-dashboard { margin: 0; padding: 0; border: 0; }
.simplified .quality-dashboard > summary { color: var(--muted); font-size: 11px; }
.simplified #qualityResults { max-height: 540px; overflow: auto; overscroll-behavior: contain; padding-right: 8px; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
.tools-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; margin: 20px 0; }
.tools-status .server-status { display: inline-flex; margin: 0; }
.simplified footer { max-width: 880px; margin: 22px auto 0; padding: 20px 0; font-size: 10px; }
.simplified footer a { color: var(--muted); }
.simplified.sports-page .panel { margin-bottom: 0; }
.simplified.sports-page .view-heading { margin-bottom: 14px; }
.simplified.sports-page #todayListings { max-height: 620px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.simplified.sports-page .today-card h3 { font-size: 16px; }
.simplified.sports-page .today-card .button { font-size: 12px; padding: 9px 15px; }
.simplified.sports-page .event-search { border: 0; background: transparent; padding: 0; }
.simplified.sports-page #sources > .section-top { display: none; }
.simplified.sports-page .event-search label { color: var(--white); font-size: 16px; }
.simplified.sports-page .event-search-row input { font-size: 15px; padding: 13px; }
.simplified.sports-page .event-search-row .button { font-size: 13px; }
.search-options { margin-top: 12px; font-size: 11px; color: var(--muted); }
.search-options summary { cursor: pointer; }
.search-options select { margin-top: 10px; }
.player-options > .button { margin-top: 12px; }
.simplified.sports-page .event-result strong { font-size: 14px; }
.simplified.sports-page .event-result small { font-size: 11px; }
.simplified.sports-page .player-panel { max-width: 880px; margin: 0 auto; }
.simplified.sports-page .today-card details { font-size: 10px; color: var(--muted); }
.simplified.sports-page .today-card details summary { cursor: pointer; }
.simplified.sports-page .today-card details > div { display: flex; gap: 8px; margin-top: 10px; }
.simplified.theater .container, .simplified.theater #watchView { max-width: 1400px; }
@media(max-width:600px) {
  .simplified .container { padding: 0 14px; }
  .simplified .topbar { height: auto; min-height:70px; padding: 12px 14px 0; gap: 8px 14px; flex-wrap: wrap; }
  .simplified .topbar nav { width:100%; margin-left:0; justify-content:space-between; gap:10px; flex-wrap: wrap; }
  .simplified .topbar nav a { font-size: 11px; padding: 10px 0; white-space: nowrap; }
  .simplified .brandmark { font-size: 11px; gap: 6px; }
  .simplified .brand-sub { font-size: 7px; letter-spacing: 1px; }
  .simplified .monogram { width: 32px; height: 35px; font-size: 18px; }
  .compact-match { padding: 16px; gap: 12px; }
  .compact-match > img { width: 37px; height: 37px; }
  .compact-match > img:last-child { display: none; }
  .compact-match h1 { font-size: 22px; margin-bottom: 5px; }
  .match-label { font-size: 10px; }
  .match-when { font-size: 12px; }
  .simplified .match-card { margin-top: 18px; }
  .simplified .player-panel { padding: 15px; }
  .simplified .player-overlay h3 { font-size: 16px; }
  .simplified .player-overlay p { font-size: 11px; }
  .watch-secondary { gap: 20px; }
  .view-heading h1 { font-size: 25px; }
  .tools-tabs { gap: 3px; }
  .tools-tabs a { font-size: 11px; padding: 8px 10px; }
  .tool-cards, .schedule-layout { grid-template-columns: 1fr; }
  .tool-cards > a { padding: 20px; }
  .tool-cards strong { font-size: 16px; }
  .tool-cards span { font-size: 12px; }
  .simplified .now-playing > span { font-size: 11px; }
  .simplified footer { gap: 10px; font-size: 9px; }
}

.search-warning { color: #edb8a0; }
.plex-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 0; }
.plex-controls[hidden] { display:none; }
.plex-controls .form-help { flex:1 1 200px; margin:0; overflow-wrap:anywhere; }
.working-streams { border-top: 1px solid var(--line); padding: 14px 0; }
.working-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#workingProgress { font-size: 11px; line-height: 1.6; color: var(--muted); flex: 1 1 220px; }
.working-controls #workingProgress { order:1; flex-basis:100%; }
#workingResults { margin-top: 12px; max-height: 360px; overflow-y: auto; }
.working-stream { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.working-stream > div { min-width: 0; flex: 1; }
.working-stream strong { font-size: 12px; overflow-wrap: anywhere; }
.working-stream small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; line-height: 1.5; }
.working-stream small.working-quick { color:var(--gold); }
.working-stream small.working-verified { color:var(--green); }
.working-stream > button { flex: none; }
.working-match { display: inline-block; color: var(--gold); font-size: 9px; margin-left: 7px; }
.working-details { display: inline-block; font-size: 11px; margin: 12px 0 0 12px; }

@media(min-width:960px) {
  .simplified .container, .simplified .topbar { max-width:none; padding-left:12px; padding-right:12px; }
  .simplified .topbar { height:66px; }
  .simplified .topbar nav a { padding:20px 0; }
  .simplified #watchView, .simplified.sports-page .player-panel { max-width:none; }
  .simplified .match-card { margin:14px 0 12px; }
  .compact-match { padding:12px 18px; }
  .compact-match > img { width:38px; height:38px; }
  .compact-match h1 { font-size:22px; margin:0 0 3px; }
  .match-label { font-size:10px; }
  .match-when { font-size:12px; }
  .simplified .player-panel { padding:16px; }
  .player-workspace { --player-width:clamp(480px,calc((100dvh - 270px) * 1.777778),1120px); display:grid; grid-template-columns:minmax(300px,1fr) minmax(0,min(calc(100% - 320px),var(--player-width))); grid-template-areas:'controls video'; gap:20px; align-items:start; }
  .player-video { grid-area:video; width:100%; justify-self:end; }
  .simplified .player-video .stage { width:100%; max-height:calc(100dvh - 270px); min-height:260px; }
  .simplified .player-video .stage:fullscreen { max-height:none; height:100%; aspect-ratio:auto; }
  .player-sidebar { grid-area:controls; display:flex; flex-direction:column; max-height:calc(100dvh - 210px); overflow-y:auto; padding-right:14px; border-right:1px solid var(--line); }
  .sidebar-heading { order:-3; margin:3px 0 12px; }
  .player-sidebar > * { flex-shrink:0; }
  .player-sidebar .working-streams { order:-2; border-top:0; padding:0 0 8px; }
  .player-sidebar .working-controls { gap:8px; }
  .player-sidebar #findWorkingStreams { width:100%; min-height:36px; }
  .player-sidebar .working-controls > a { flex:1; text-align:center; }
  .player-sidebar #workingResults { max-height:200px; margin-top:8px; }
  .player-sidebar .working-stream { gap:8px; padding:8px 0; }
  .player-sidebar .working-stream strong { font-size:12px; }
  .player-sidebar #workingProgress { font-size:12px; }
  .player-sidebar .working-stream > button { padding:7px 9px; }
  .player-sidebar .working-details { margin:8px 0 0; }
  .player-sidebar .watch-secondary { order:-1; padding:8px 0; gap:4px 14px; }
  .player-sidebar .watch-secondary > a[href='#backups'] { display:none; }
  .player-sidebar .now-playing { flex-wrap:wrap; justify-content:flex-start; padding:9px 0; gap:8px; }
  .player-sidebar .now-playing > span { width:100%; }
  .player-sidebar .now-playing > div { flex-wrap:wrap; }
  .player-sidebar .plex-controls { margin:10px 0; gap:8px; }
  .player-sidebar .plex-controls .form-help { font-size:10px; }
  .player-sidebar .player-controls { flex-wrap:wrap; gap:10px; }
  .player-sidebar .player-controls .text-button { margin-left:0; }
  .player-sidebar .input-row { flex-wrap:wrap; }
  .player-sidebar .input-row input { width:100%; min-width:0; }
  .player-sidebar .diagnostic-controls { flex-wrap:wrap; }
  .player-sidebar .playback-logs { padding:10px; }
  .simplified footer { max-width:none; margin-top:12px; padding:14px 0; }
  .simplified.theater .container, .simplified.theater #watchView { max-width:none; }
  .theater .player-workspace { --player-width:1440px; }
}
