:root {
  --schedule-bg: var(--it-theme-bg, #f7f8fa);
  --schedule-surface: var(--it-theme-surface, #fff);
  --schedule-surface-raised: color-mix(in srgb, var(--schedule-surface) 96%, var(--schedule-text) 4%);
  --schedule-muted: var(--it-theme-muted, #667085);
  --schedule-text: var(--it-theme-text, #101828);
  --schedule-border: var(--it-theme-border, #e4e7ec);
  --schedule-green: var(--it-theme-accent, #087b49);
  --schedule-green-soft: color-mix(in srgb, var(--schedule-green) 8%, var(--schedule-surface));
  --schedule-blue: #1769d2;
  --schedule-blue-soft: color-mix(in srgb, #1769d2 11%, var(--schedule-surface));
  --schedule-purple: #6741c2;
  --schedule-purple-soft: color-mix(in srgb, #7957d5 12%, var(--schedule-surface));
  --schedule-shadow: 0 12px 34px rgba(15, 23, 42, .075);
}

/* Under-player TV guide */
.player-weekly-guide {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: 16px;
  background: var(--schedule-surface);
  color: var(--schedule-text);
  box-shadow: var(--schedule-shadow);
}

.player-guide-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--schedule-border);
}

.player-guide-heading > div:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.player-guide-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.player-guide-heading b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--schedule-green);
  color: #fff;
}

.player-guide-heading p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--schedule-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-guide-icon {
  color: var(--schedule-green);
  font-size: 24px;
}

.player-guide-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.player-guide-controls button,
.player-guide-days button {
  border: 1px solid var(--schedule-border);
  background: var(--schedule-surface);
  color: var(--schedule-text);
}

.player-guide-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 24px;
  cursor: pointer;
}

.player-guide-controls button:hover,
.player-guide-days button:hover {
  background: var(--schedule-green-soft);
}

.player-guide-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 16px 22px 0;
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: 12px;
}

.player-guide-days button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  border: 0;
  border-right: 1px solid var(--schedule-border);
  cursor: pointer;
}

.player-guide-days button:last-child { border-right: 0; }

.player-guide-days button.is-active {
  background: var(--schedule-green-soft);
  color: var(--schedule-green);
  box-shadow: inset 0 -3px 0 var(--schedule-green);
}

.player-guide-days strong { font-size: 20px; }
.player-guide-days span { font-size: 13px; }

.player-guide-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  padding: 34px 34px 12px;
  color: var(--schedule-muted);
}

.player-guide-timeline::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 0;
  left: 34px;
  border-bottom: 1px solid var(--schedule-border);
}

.player-guide-timeline span { text-align: center; }

.player-guide-timeline b {
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--schedule-green);
  color: #fff;
}

.player-guide-timeline b::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: 16px;
  border-left: 2px solid var(--schedule-green);
}

.player-guide-carousel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .9fr);
  align-items: stretch;
  gap: 18px;
  padding: 22px;
}

.schedule-carousel-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 294px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: 14px;
  background: var(--schedule-surface);
  transition: transform .32s ease, opacity .32s ease, box-shadow .32s ease;
}

.schedule-carousel-card.is-current {
  border-color: var(--schedule-green);
  background: var(--schedule-green-soft);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--schedule-green) 15%, transparent);
  transform: translateY(-4px);
}

.schedule-carousel-card.is-empty {
  align-items: center;
  justify-content: center;
  color: var(--schedule-muted);
  text-align: center;
}

.schedule-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eef1f5;
  color: #475467;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.1;
}

.state-live .schedule-state-chip,
.state-chip-live {
  background: var(--schedule-green);
  color: #fff;
}

.state-playback_recorded .schedule-state-chip,
.state-chip-playback_recorded {
  background: var(--schedule-blue-soft);
  color: var(--schedule-blue);
}

.state-upcoming .schedule-state-chip,
.state-chip-upcoming {
  background: color-mix(in srgb, var(--schedule-muted) 12%, var(--schedule-surface));
  color: var(--schedule-muted);
}

.schedule-card-body {
  display: grid;
  grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
  flex: 1;
  gap: 15px;
  min-height: 0;
  margin-top: 12px;
}

.schedule-card-thumb {
  align-self: start;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #101828 center / cover no-repeat;
  color: #fff;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.schedule-card-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  min-width: 0;
}

.schedule-card-copy time {
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-card-copy h3 {
  display: -webkit-box;
  min-height: 2.65em;
  margin: 6px 0 4px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.325;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-card-presenter {
  display: block;
  min-height: 1.25em;
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-card-copy p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.player-weekly-guide footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--schedule-border);
  color: var(--schedule-muted);
}

.player-weekly-guide footer a {
  position: relative;
  z-index: 3;
  color: var(--schedule-green);
  font-weight: 900;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

/* Full weekly schedule */
.schedule-public-page .page-content,
.schedule-public-page .content-area,
.schedule-public-page main {
  min-width: 0;
}

.schedule-page {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
  padding: 4px 0 26px;
  color: var(--schedule-text);
  container-type: inline-size;
  container-name: itahuka-schedule;
}

.schedule-page.is-loading { cursor: progress; }
.schedule-page.is-stale::before {
  content: "Schedule temporarily unavailable. Showing the last loaded information.";
  display: block;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, #d92d20 30%, var(--schedule-border));
  border-radius: 10px;
  background: color-mix(in srgb, #d92d20 6%, var(--schedule-surface));
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.schedule-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.schedule-page-kicker {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--schedule-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
}

.schedule-page-head h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.schedule-page-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--schedule-muted);
  font-size: 13px;
}

.schedule-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--schedule-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--schedule-green) 10%, transparent);
}

.schedule-refresh-mark { color: var(--schedule-green); font-weight: 900; }

.schedule-timezone {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--schedule-border);
  border-radius: 11px;
  background: var(--schedule-surface);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
  font-size: 13px;
}

.schedule-week-navigation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  gap: 8px;
}

.schedule-week-arrow {
  display: grid;
  place-items: center;
  border: 1px solid var(--schedule-border);
  border-radius: 12px;
  background: var(--schedule-surface);
  color: var(--schedule-text);
  font-size: 24px;
  text-decoration: none;
}

.schedule-week-arrow:hover { background: var(--schedule-green-soft); color: var(--schedule-green); }

.schedule-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: 13px;
  background: var(--schedule-surface);
}

.schedule-week-strip button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 76px;
  border: 0;
  border-right: 1px solid var(--schedule-border);
  background: transparent;
  color: var(--schedule-text);
  cursor: pointer;
}

.schedule-week-strip button:last-child { border-right: 0; }
.schedule-week-strip button:hover { background: var(--schedule-green-soft); }

.schedule-week-strip button.is-active {
  margin: 7px;
  min-height: 62px;
  border-radius: 9px;
  background: var(--schedule-green);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--schedule-green) 24%, transparent);
}

.schedule-week-strip strong { font-size: 15px; }
.schedule-week-strip span { font-size: 12px; }

.schedule-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--schedule-border);
  border-radius: 10px;
  background: var(--schedule-surface);
  color: var(--schedule-text);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.schedule-filters button:hover { background: var(--schedule-green-soft); }
.schedule-filters button[aria-pressed="true"] {
  border-color: var(--schedule-green);
  background: var(--schedule-green);
  color: #fff;
}

.schedule-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(500px, 1.78fr) minmax(290px, .92fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
}

.schedule-now-column,
.schedule-side-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.schedule-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--schedule-border);
  border-radius: 15px;
  background: var(--schedule-surface);
  box-shadow: var(--schedule-shadow);
}

.schedule-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--schedule-border);
}

.schedule-panel-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--schedule-green);
  font-size: 14px;
  letter-spacing: .02em;
}

.schedule-list-heading {
  display: grid;
  grid-template-columns: 72px 1fr;
  justify-content: initial;
}

.schedule-list-heading h2 { color: var(--schedule-muted); font-size: 11px; }
.schedule-list-heading strong { font-size: 12px; }

.now-playing-body {
  padding: 18px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--schedule-green) 10%, transparent), transparent 47%),
    var(--schedule-green-soft);
}

.now-playing-main {
  display: grid;
  grid-template-columns: minmax(100px, 42%) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.now-playing-art {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #062e26 center / cover no-repeat;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.now-playing-copy { min-width: 0; }
.now-playing-copy h2 {
  margin: 0 0 7px;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.16;
}

.now-playing-copy strong {
  color: var(--schedule-muted);
  font-size: 12px;
}

.now-playing-copy p {
  margin: 13px 0;
  color: var(--schedule-muted);
  font-size: 13px;
  line-height: 1.55;
}

.now-playing-copy time {
  display: block;
  color: var(--schedule-text);
  font-size: 12px;
  font-weight: 800;
}

.schedule-progress {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--schedule-green) 20%, var(--schedule-border));
}

.schedule-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--schedule-green);
  transition: width .4s ease;
}

.schedule-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--schedule-muted);
  font-size: 11px;
}

.schedule-auto-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--schedule-border);
  border-radius: 13px;
  background: var(--schedule-surface);
  color: var(--schedule-muted);
  box-shadow: 0 7px 20px rgba(15, 23, 42, .045);
  font-size: 12px;
}

.schedule-auto-icon { color: var(--schedule-green); font-size: 19px; }
.schedule-auto-dots { display: flex; gap: 6px; }
.schedule-auto-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--schedule-border); }
.schedule-auto-dots i:first-child { background: var(--schedule-green); }
.schedule-auto-dots i:nth-child(2) { background: color-mix(in srgb, var(--schedule-green) 52%, var(--schedule-border)); }

.schedule-world-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--schedule-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.schedule-world-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--schedule-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--schedule-green) 11%, transparent);
}

.schedule-world-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.schedule-world-clock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--schedule-border);
  border-radius: 10px;
  background: var(--schedule-surface-raised);
}

.schedule-world-clock.is-primary {
  border-color: color-mix(in srgb, var(--schedule-green) 48%, var(--schedule-border));
  background: var(--schedule-green-soft);
  box-shadow: inset 3px 0 0 var(--schedule-green);
}

.schedule-world-location,
.schedule-world-value {
  display: grid;
  min-width: 0;
}

.schedule-world-location { gap: 3px; }
.schedule-world-location strong {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-world-location span,
.schedule-world-value small {
  color: var(--schedule-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.schedule-world-value {
  justify-items: end;
  gap: 2px;
}

.schedule-world-value time {
  color: var(--schedule-text);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
  white-space: nowrap;
}

.schedule-world-clock.is-primary .schedule-world-location strong,
.schedule-world-clock.is-primary .schedule-world-value time {
  color: var(--schedule-green);
}

.schedule-world-clock.has-clock-error { opacity: .65; }

.schedule-world-note {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--schedule-muted);
  font-size: 9px;
  line-height: 1.4;
}

.schedule-day-list { display: grid; scroll-margin-top: 90px; }

.schedule-list-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--schedule-border);
  border-left: 4px solid #98a2b3;
  background: var(--schedule-surface);
}

.schedule-list-row:last-child { border-bottom: 0; }
.schedule-list-row:hover { background: var(--schedule-surface-raised); }
.schedule-list-row[data-state="live"] { border-left-color: var(--schedule-green); }
.schedule-list-row[data-state="upcoming"] { border-left-color: var(--schedule-blue); }
.schedule-list-row[data-state="playback_recorded"] { border-left-color: #98a2b3; }
.schedule-list-row.is-current { background: var(--schedule-green-soft); }

.schedule-list-row time {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--schedule-text);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.schedule-list-row time i { color: var(--schedule-muted); font-style: normal; }
.schedule-list-copy { min-width: 0; }
.schedule-list-copy .schedule-state-chip { margin-bottom: 5px; }

.schedule-list-copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.3;
}

.schedule-list-copy strong,
.schedule-list-copy p {
  display: block;
  margin: 3px 0 0;
  color: var(--schedule-muted);
  font-size: 11px;
}

.schedule-list-copy p { line-height: 1.4; }

.schedule-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--schedule-green);
  border-radius: 9px;
  background: transparent;
  color: var(--schedule-green);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.schedule-row-action:hover,
.schedule-row-action.is-confirmed {
  background: var(--schedule-green);
  color: #fff;
}

.schedule-row-action.is-watching { background: var(--schedule-green); color: #fff; }
.schedule-row-action.is-disabled { border-color: var(--schedule-border); color: var(--schedule-muted); cursor: default; }

.schedule-side-list { padding: 8px 16px 14px; }
.schedule-next-list { padding-top: 14px; }

.schedule-next-card,
.schedule-side-item {
  display: grid;
  grid-template-columns: 48px 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.schedule-side-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--schedule-border);
}

.schedule-side-item:last-child { border-bottom: 0; }

.schedule-side-time {
  display: grid;
  justify-items: center;
  color: var(--schedule-text);
  font-size: 10px;
  line-height: 1.25;
}

.schedule-side-time i { color: var(--schedule-muted); font-style: normal; }
.schedule-side-thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  background: #162033 center / cover no-repeat;
}

.schedule-side-copy { min-width: 0; }
.schedule-side-copy h3 {
  display: -webkit-box;
  margin: 0 0 3px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-side-copy small {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  color: var(--schedule-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-side-copy .schedule-state-chip { font-size: 8px; }

.schedule-side-button,
.schedule-view-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--schedule-green) 35%, var(--schedule-border));
  border-radius: 9px;
  background: transparent;
  color: var(--schedule-green);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.schedule-side-button:hover,
.schedule-view-day:hover { background: var(--schedule-green-soft); }

.schedule-later-panel { margin-top: 0; }
.schedule-view-day {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

.schedule-page-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border: 1px solid var(--schedule-border);
  border-radius: 12px;
  background: var(--schedule-surface);
  color: var(--schedule-muted);
  font-size: 11px;
}

.schedule-page-note span:last-child { white-space: nowrap; }
.schedule-page-note i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--schedule-green);
}

.empty-state {
  margin: 0;
  padding: 24px;
  color: var(--schedule-muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .schedule-dashboard {
    grid-template-columns: minmax(250px, .8fr) minmax(450px, 1.7fr);
  }
  .schedule-side-column {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

/* Container-responsive schedule shell.
   This is intentionally based on the actual schedule canvas width, not only
   the browser viewport, so Boxed mode, zoomed windows and embedded/narrow
   content areas cannot leave the desktop three-column grid clipped. */
.schedule-dashboard,
.schedule-dashboard > *,
.schedule-now-column,
.schedule-now-column > *,
.schedule-side-column,
.schedule-side-column > * {
  min-width: 0;
  max-width: 100%;
}

.schedule-dashboard {
  align-content: start;
  grid-auto-rows: max-content;
}

@container itahuka-schedule (max-width: 1180px) {
  .schedule-dashboard {
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
  }

  .schedule-side-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container itahuka-schedule (max-width: 980px) {
  .schedule-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-now-column {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    align-items: start;
  }

  .schedule-now-panel { grid-row: 1 / span 2; }
  .schedule-world-panel { grid-column: 2; grid-row: 1; }
  .schedule-auto-card { grid-column: 2; grid-row: 2; }

  .schedule-side-column {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container itahuka-schedule (max-width: 760px) {
  .schedule-dashboard {
    gap: 14px;
  }

  .schedule-now-column,
  .schedule-side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-now-panel,
  .schedule-world-panel,
  .schedule-auto-card {
    grid-column: auto;
    grid-row: auto;
  }

  .schedule-now-column,
  .schedule-list-panel,
  .schedule-side-column,
  .schedule-panel,
  .schedule-auto-card {
    width: 100%;
    max-width: 100%;
  }
}

@container itahuka-schedule (max-width: 520px) {
  .now-playing-main {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .now-playing-copy p {
    display: none;
  }

  .schedule-next-card,
  .schedule-side-item {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .player-guide-carousel { grid-template-columns: 1fr 1.15fr; }
  .schedule-carousel-card.is-next { display: none; }
  .schedule-dashboard { grid-template-columns: 1fr; }
  .schedule-now-column { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: start; }
  .schedule-now-panel { grid-row: 1 / span 2; }
  .schedule-world-panel { grid-column: 2; grid-row: 1; }
  .schedule-auto-card { grid-column: 2; grid-row: 2; }
  .schedule-side-column { grid-column: auto; }
}

@media (max-width: 760px) {
  .player-guide-heading { padding-inline: 15px; }
  .player-guide-heading p { display: none; }
  .player-guide-heading h2 { font-size: 20px; }
  .player-guide-days {
    grid-template-columns: repeat(7, 92px);
    margin-inline: 10px;
    overflow-x: auto;
  }
  .player-guide-carousel { grid-template-columns: 1fr; padding: 14px; }
  .schedule-carousel-card { min-height: 270px; }
  .schedule-carousel-card:not(.is-current) { display: none; }
  .player-guide-timeline { display: none; }
  .player-weekly-guide footer { flex-direction: column; }
  .schedule-page-head { align-items: flex-start; flex-direction: column; }
  .schedule-timezone { width: 100%; justify-content: center; }
  .schedule-week-navigation { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .schedule-week-strip { grid-template-columns: repeat(7, 92px); overflow-x: auto; }
  .schedule-week-strip button.is-active { margin: 5px; }
  .schedule-now-column,
  .schedule-side-column { grid-template-columns: 1fr; }
  .schedule-now-panel,
  .schedule-world-panel,
  .schedule-auto-card { grid-column: auto; grid-row: auto; }
  .schedule-list-row { grid-template-columns: 58px minmax(0, 1fr); padding-right: 12px; }
  .schedule-row-action { grid-column: 2; justify-self: start; }
  .schedule-list-heading { grid-template-columns: 58px 1fr; }
  .schedule-page-note { align-items: flex-start; flex-direction: column; }
  .schedule-page-note span:last-child { white-space: normal; }
}

@media (max-width: 520px) {
  .schedule-page-head h1 { font-size: 30px; }
  .schedule-page-head p { align-items: flex-start; flex-wrap: wrap; }
  .schedule-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .schedule-filters button { justify-content: center; padding-inline: 8px; }
  .now-playing-main { grid-template-columns: 104px minmax(0, 1fr); }
  .now-playing-copy p { display: none; }
  .schedule-next-card,
  .schedule-side-item { grid-template-columns: 42px 70px minmax(0, 1fr); }
  .schedule-card-body { grid-template-columns: 90px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-carousel-card,
  .schedule-progress span { transition: none !important; }
}


/* ---------- Studio schedule management (v4.7.1) ---------- */
body.schedule-admin-page .page-heading,
body.schedule-upgrade-page .page-heading {
  margin-bottom: 20px;
}

.schedule-admin-heading .button {
  white-space: nowrap;
}

.schedule-admin-metrics {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 16px;
  margin-bottom: 18px;
}

body.admin-area .schedule-admin-metric {
  display: flex;
  flex-direction: column;
  min-height: 154px;
  margin-top: 0;
  padding: 20px 22px;
  border-top: 4px solid var(--schedule-green);
}

.schedule-admin-metric > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.schedule-admin-metric strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--ink);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
}

.schedule-admin-metric strong em {
  margin-left: 3px;
  color: var(--muted);
  font-size: .48em;
  font-style: normal;
  font-weight: 800;
}

.schedule-admin-metric small {
  margin-top: auto;
  color: var(--muted);
}

.schedule-admin-metric.has-warning { border-top-color: #d98a00; }
.schedule-admin-metric.is-clear { border-top-color: var(--schedule-green); }

.schedule-admin-progress {
  height: 7px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--schedule-green) 14%, var(--line));
}

.schedule-admin-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--schedule-green);
  transition: width .25s ease;
}

body.admin-area .schedule-admin-grid {
  align-items: start !important;
  gap: 18px !important;
}

body.admin-area .schedule-admin-card {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.schedule-admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--schedule-green) 4%, var(--paper));
}

.schedule-admin-card-heading > div:first-child {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 11px;
  min-width: 0;
}

.schedule-admin-card-heading h2 {
  margin: 0;
  align-self: center;
  font-size: 21px;
}

.schedule-admin-card-heading p {
  grid-column: 2;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.schedule-step {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--schedule-green);
  color: #fff;
  font-weight: 900;
}

.schedule-admin-form {
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

body.admin-area .schedule-admin-form label {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

body.admin-area .schedule-admin-form input,
body.admin-area .schedule-admin-form textarea,
body.admin-area .schedule-admin-form select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  box-shadow: none;
}

body.admin-area .schedule-admin-form textarea {
  min-height: 104px;
  resize: vertical;
}

body.admin-area .schedule-admin-form input:focus,
body.admin-area .schedule-admin-form textarea:focus,
body.admin-area .schedule-admin-form select:focus {
  border-color: var(--schedule-green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--schedule-green) 13%, transparent);
}

body.admin-area .schedule-admin-form input::placeholder,
body.admin-area .schedule-admin-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.schedule-admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}

body.admin-area .schedule-admin-form .check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 0;
  color: var(--ink);
}

body.admin-area .schedule-admin-form .check-row input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--schedule-green);
}

body.admin-area .schedule-admin-form .button {
  min-width: 138px;
  background: var(--schedule-green);
  border-color: var(--schedule-green);
}

body.admin-area .schedule-admin-form .button:hover {
  filter: brightness(.92);
}

.schedule-admin-list {
  display: grid;
  margin: 0;
  padding: 0 22px 10px;
}

.schedule-admin-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.schedule-admin-list article:first-child { border-top: 0; }

.schedule-admin-list-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.schedule-admin-list-copy > div { min-width: 0; }

.schedule-admin-list-copy strong,
.schedule-admin-list-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-admin-list-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.schedule-admin-list-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--schedule-green) 10%, var(--paper));
  color: var(--schedule-green);
  font-size: 12px;
}

.schedule-admin-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 74px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #475467;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.schedule-admin-state.state-live {
  background: var(--schedule-green);
  color: #fff;
}

.schedule-admin-state.state-upcoming {
  background: var(--schedule-blue-soft);
  color: var(--schedule-blue);
}

.schedule-admin-state.state-playback,
.schedule-admin-state.state-playback_recorded {
  background: color-mix(in srgb, #7957d5 12%, var(--paper));
  color: #6741c2;
}

.schedule-admin-empty {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.schedule-admin-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.schedule-admin-empty span {
  margin-top: 4px;
  font-size: 12px;
}

.schedule-admin-dependency-notice {
  margin: 22px;
}

.schedule-upgrade-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 0;
  padding: 28px;
}

.schedule-upgrade-card h2 { margin: 0 0 6px; }
.schedule-upgrade-card p { margin: 0; color: var(--muted); }
.schedule-upgrade-card ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }

.schedule-upgrade-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--schedule-green) 10%, var(--paper));
  color: var(--schedule-green);
  font-size: 32px;
}

@media (max-width: 1100px) {
  .schedule-admin-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .schedule-admin-metrics { grid-template-columns: 1fr; }
  body.admin-area .schedule-admin-metric { min-height: 132px; }
  .schedule-upgrade-card { grid-template-columns: 60px minmax(0, 1fr); }
  .schedule-upgrade-card form { grid-column: 1 / -1; }
  .schedule-upgrade-card .button { width: 100%; }
}

@media (max-width: 620px) {
  .schedule-admin-card-heading,
  .schedule-admin-form,
  .schedule-admin-list { padding-left: 16px; padding-right: 16px; }
  .schedule-admin-form-actions { align-items: stretch; flex-direction: column; }
  body.admin-area .schedule-admin-form .button { width: 100%; }
  .schedule-admin-list article { align-items: flex-start; }
  .schedule-admin-list-copy { align-items: flex-start; }
  .schedule-admin-list-copy strong,
  .schedule-admin-list-copy small { white-space: normal; }
  .schedule-upgrade-card { grid-template-columns: 1fr; padding: 22px; }
}

/* ---------- Professional starter clock (v4.7.2) ---------- */
body.admin-area .schedule-starter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, .8fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 18px;
  padding: 24px;
  overflow: hidden;
  border-top: 4px solid var(--schedule-green);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--schedule-green) 9%, transparent), transparent 34%),
    var(--paper);
}

.schedule-starter-copy h2 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
}

.schedule-starter-copy > p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-starter-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.schedule-starter-features li {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--schedule-green) 4%, var(--paper));
}

.schedule-starter-features strong,
.schedule-starter-features span {
  display: block;
}

.schedule-starter-features strong {
  color: var(--schedule-green);
  font-size: 23px;
  line-height: 1;
}

.schedule-starter-features span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-starter-titles {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.schedule-starter-titles span {
  max-width: min(100%, 330px);
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-starter-action {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--schedule-green) 5%, var(--paper));
}

.schedule-starter-action .button {
  width: 100%;
  min-height: 45px;
}

.schedule-starter-action .check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.schedule-starter-action .check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--schedule-green);
}

.schedule-starter-warning {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  body.admin-area .schedule-starter-panel {
    grid-template-columns: 1fr;
  }

  .schedule-starter-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.admin-area .schedule-starter-panel {
    padding: 18px;
  }

  .schedule-starter-features {
    grid-template-columns: 1fr 1fr;
  }
}

.schedule-admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.schedule-admin-row-actions form { margin: 0; }

.schedule-admin-row-actions .button-small,
.schedule-admin-row-actions .danger-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

@media (max-width: 620px) {
  .schedule-admin-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-admin-row-actions {
    width: 100%;
  }
}
