* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: #061126;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: #ffffff;
}
.is-hidden { display: none !important; }
.stage {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: linear-gradient(180deg, #06132b 0%, #0a1f44 55%, #071734 100%);
}
.studio-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 1080px;
  height: 1920px;
  z-index: 0;
}
.header {
  position: relative;
  z-index: 5;
  height: 168px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #050f24 0%, #0a1e42 100%);
  border-bottom: 4px solid #38bdf8;
}
.brand { display: flex; align-items: center; }
.logo { width: 112px; height: 112px; object-fit: contain; flex-shrink: 0; margin-right: 20px; }
.brand-text { display: flex; flex-direction: column; }
.station-tag { font-size: 28px; font-weight: 700; color: #7dd3fc; letter-spacing: 0.08em; line-height: 1.15; margin-bottom: 4px; }
.school-name { font-size: 42px; font-weight: 800; color: #ffffff; line-height: 1.15; white-space: nowrap; }
.status-box { display: flex; align-items: center; }
.date-weather { display: flex; flex-direction: column; align-items: flex-end; margin-right: 22px; }
.date-txt { font-size: 30px; font-weight: 600; color: #bae6fd; line-height: 1.15; white-space: nowrap; }
.weather-row { display: flex; align-items: center; font-size: 38px; font-weight: 700; color: #ffffff; line-height: 1.1; margin-top: 6px; }
.weather-icon { margin-right: 10px; flex-shrink: 0; }
.v-div { width: 2px; height: 78px; background: rgba(56, 189, 248, 0.45); margin-right: 22px; }
.clock { font-size: 64px; font-weight: 900; color: #ffffff; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(56, 189, 248, 0.45); }
.screen-wrap { position: relative; z-index: 3; padding: 28px 36px 0; }
.led-screen {
  position: relative;
  height: 840px;
  border-radius: 26px;
  background: linear-gradient(160deg, #0c234b 0%, #091a38 60%, #07142d 100%);
  border: 2px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  padding: 32px 38px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.led-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #0ea5e9, #7dd3fc, #38bdf8); }
.meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.subtitle { display: flex; align-items: center; font-size: 40px; font-weight: 800; color: #38bdf8; line-height: 1.15; }
.subtitle-icon { margin-right: 14px; flex-shrink: 0; }
.studio-bug { display: flex; align-items: center; font-size: 28px; font-weight: 700; color: #bae6fd; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.45); border-radius: 8px; padding: 6px 18px; }
.bug-dot { width: 12px; height: 12px; background: #38bdf8; border-radius: 2px; margin-right: 10px; }
.headline {
  font-size: 76px; line-height: 1.2; font-weight: 900; color: #ffffff;
  margin: 0 0 20px 0; letter-spacing: 0.01em; word-break: break-word;
}
.hl-accent { color: #7dd3fc; }
.photo-frame {
  flex: 1 1 0%; min-height: 0; width: 100%; border-radius: 18px;
  border: 2px solid rgba(56, 189, 248, 0.45); overflow: hidden;
  background: #07152e; position: relative;
}
.slide-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 24px; background: linear-gradient(180deg, rgba(6, 19, 43, 0) 0%, rgba(6, 19, 43, 0.88) 45%);
  font-size: 32px; font-weight: 600; color: #e0f2fe; line-height: 1.35;
  overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 120px;
}
.slide-text-panel {
  flex: 1 1 0%; min-height: 0; width: 100%; border-radius: 18px;
  border: 2px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(7, 21, 46, 0.86) 100%);
  padding: 36px 40px; display: flex; flex-direction: column; justify-content: center;
}
.slide-body-text { font-size: 46px; font-weight: 600; color: #e0f2fe; line-height: 1.48; word-break: break-word; }
.slide-time-tag {
  margin-top: 22px; align-self: flex-start;
  font-size: 34px; font-weight: 700; color: #7dd3fc;
  background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px; padding: 8px 20px;
}
.welcome-panel {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 20px 32px;
}
.welcome-school { font-size: 64px; font-weight: 900; color: #ffffff; margin-bottom: 18px; }
.welcome-sub { font-size: 38px; font-weight: 600; color: #7dd3fc; }
.dots-bar { margin-top: auto; padding-top: 18px; display: flex; justify-content: center; align-items: center; }
.dot-active { width: 56px; height: 14px; border-radius: 7px; background: #38bdf8; margin: 0 9px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(148, 163, 184, 0.45); margin: 0 9px; }
.lower-col { position: absolute; left: 36px; top: 1056px; width: 596px; display: flex; flex-direction: column; z-index: 3; }
.card-act {
  background: rgba(10, 29, 64, 0.92); border: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 22px; padding: 18px 18px; margin-bottom: 14px;
}
.card-title { display: flex; align-items: center; font-size: 36px; font-weight: 800; color: #ffffff; margin-bottom: 12px; line-height: 1.15; }
.card-title-icon { margin-right: 12px; flex-shrink: 0; }
.act-list { display: flex; flex-direction: column; }
.act-row {
  display: flex; align-items: center; background: rgba(56, 189, 248, 0.1);
  border-left: 6px solid #38bdf8; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.act-row:last-child { margin-bottom: 0; }
.act-time { width: 112px; flex-shrink: 0; text-align: center; font-size: 32px; font-weight: 800; color: #7dd3fc; font-variant-numeric: tabular-nums; line-height: 1.1; margin-right: 12px; }
.act-name { font-size: 34px; font-weight: 700; color: #ffffff; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cd {
  background: linear-gradient(135deg, #0d2b5c 0%, #091d42 100%);
  border: 2px solid rgba(56, 189, 248, 0.55); border-left: 8px solid #fbbf24;
  border-radius: 20px; padding: 16px 18px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.cd-left { display: flex; align-items: center; font-size: 34px; font-weight: 700; color: #e0f2fe; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.cd-icon { margin-right: 10px; flex-shrink: 0; }
.cd-right { display: flex; align-items: baseline; font-size: 34px; font-weight: 700; color: #ffffff; white-space: nowrap; flex-shrink: 0; }
.cd-num { font-size: 52px; font-weight: 900; color: #fbbf24; line-height: 1; font-variant-numeric: tabular-nums; margin: 0 6px; }
.card-daily {
  background: linear-gradient(155deg, rgba(16, 42, 86, 0.94) 0%, rgba(9, 24, 54, 0.96) 100%);
  border: 2px solid rgba(125, 211, 252, 0.5); border-left: 8px solid #38bdf8;
  border-radius: 22px; padding: 18px 20px;
}
.daily-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.daily-label { font-size: 32px; font-weight: 800; color: #7dd3fc; }
.daily-phase {
  font-size: 22px; font-weight: 700; color: #061329; background: #7dd3fc;
  border-radius: 8px; padding: 4px 12px;
}
.daily-phase.is-answer { background: #fbbf24; color: #061329; }
.daily-question { font-size: 32px; font-weight: 700; color: #ffffff; line-height: 1.38; word-break: break-word; }
.daily-hint { margin-top: 8px; font-size: 24px; font-weight: 500; color: #bae6fd; line-height: 1.35; word-break: break-word; }
.daily-answer-text { margin-top: 10px; font-size: 40px; font-weight: 900; color: #fbbf24; line-height: 1.25; word-break: break-word; }
.anchor-wrap { position: absolute; left: 598px; top: 1056px; z-index: 2; }
.anchor-media { height: 790px; width: auto; display: block; }
.desk-wrap { position: absolute; right: 0; bottom: 124px; width: 460px; height: 310px; z-index: 4; }
.ticker {
  position: absolute; left: 0; bottom: 0; width: 1080px; height: 124px; z-index: 5;
  background: #050e20; border-top: 4px solid #38bdf8; display: flex; align-items: stretch;
}
.ticker-badge {
  width: 248px; flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  display: flex; align-items: center; padding-left: 24px;
  font-size: 38px; font-weight: 900; color: #061329;
}
.ticker-icon { margin-right: 10px; flex-shrink: 0; }
.ticker-text {
  flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 28px 0 18px;
  font-size: 40px; font-weight: 700; color: #ffffff;
  white-space: nowrap; overflow: hidden;
}

/* Sunny campus theme (SIR 2026-11-24) */
html, body, .stage { background: #bfe4ff; color: #12365c; }
.header { background: rgba(255, 255, 255, 0.94); border-bottom-color: #f9b61f; }
.station-tag, .date-txt { color: #0b6cae; }
.school-name, .weather-row, .clock { color: #12365c; text-shadow: none; }
.v-div { background: #a9cfea; }
.led-screen { background: rgba(255, 255, 255, 0.95); border-color: #ffffff; box-shadow: 0 14px 36px rgba(20, 80, 130, 0.28); }
.led-top-bar { height: 10px; background: linear-gradient(90deg, #f9b61f, #ffd766 50%, #4bb3f0); }
.subtitle { color: #0b6cae; }
.studio-bug { color: #7a4b00; background: #fff1c9; border-color: #f9b61f; }
.bug-dot { background: #f59e0b; }
.headline, .welcome-school { color: #12365c; }
.slide-text-panel { background: linear-gradient(135deg, #e6f5ff 0%, #fff8e1 100%); border-color: #cfe7f8; }
.photo-frame { background: #e6f5ff; border-color: #cfe7f8; }
.slide-body-text { color: #173f69; }
.slide-photo-caption { background: rgba(255, 255, 255, 0.92); color: #173f69; }
.slide-time-tag { color: #0b5c96; background: #ffffff; border-color: #8cc7ee; }
.welcome-sub, .daily-label { color: #0b6cae; }
.dot-active { background: #f59e0b; }
.dot { background: #a9cfea; }
.card-act, .card-cd, .card-daily { background: rgba(255, 255, 255, 0.95); border-color: #ffffff; box-shadow: 0 8px 22px rgba(20, 80, 130, 0.22); }
.card-cd { border-left-color: #f9b61f; }
.card-daily { border-left-color: #38a85c; }
.card-title, .act-name, .daily-question, .cd-left, .cd-right { color: #12365c; }
.act-row { background: #e9f6ff; border-left-color: #38a9ec; }
.act-time { color: #0b6cae; }
.cd-num, .daily-answer-text { color: #c2410c; }
.daily-phase { color: #ffffff; background: #1f7a41; font-size: 28px; }
.daily-phase.is-answer { color: #ffffff; background: #c2410c; }
.daily-hint { color: #31597f; font-size: 28px; }
.anchor-wrap { left: 590px; top: 1046px; width: 490px; height: 750px; overflow: hidden; }
.anchor-media { height: 1150px; margin-left: -138px; margin-top: 6px; }
.anchor-media { -webkit-filter: drop-shadow(0 0 8px rgba(10, 60, 100, 0.4)); filter: drop-shadow(0 0 8px rgba(10, 60, 100, 0.4)); }
.ticker { background: #ffffff; border-top-color: #f9b61f; }
.ticker-badge { background: #f9b61f; color: #3d2600; }
.ticker-text { color: #12365c; }
.ticker-inner { display: inline-block; white-space: nowrap; }
.ticker-inner.is-marquee {
  padding-left: 100%;
  -webkit-animation: lobby-marquee 12s linear infinite;
  animation: lobby-marquee 12s linear infinite;
}
@-webkit-keyframes lobby-marquee {
  0% { -webkit-transform: translateX(0); transform: translateX(0); }
  100% { -webkit-transform: translateX(-100%); transform: translateX(-100%); }
}
@keyframes lobby-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.lower-col.is-compact .card-act { padding: 12px 14px; margin-bottom: 10px; }
.lower-col.is-compact .card-title { font-size: 30px; margin-bottom: 8px; }
.lower-col.is-compact .act-row { padding: 8px 12px; margin-bottom: 6px; }
.lower-col.is-compact .act-time { font-size: 26px; width: 96px; }
.lower-col.is-compact .act-name { font-size: 28px; }
.lower-col.is-compact .card-cd { padding: 10px 14px; margin-bottom: 10px; }
.lower-col.is-compact .cd-left,
.lower-col.is-compact .cd-right { font-size: 28px; }
.lower-col.is-compact .cd-num { font-size: 42px; }
.lower-col.is-compact .card-daily { padding: 12px 16px; }
.lower-col.is-compact .daily-label { font-size: 28px; }
.lower-col.is-compact .daily-phase { font-size: 24px; }
.lower-col.is-compact .daily-question { font-size: 28px; line-height: 1.3; }
.lower-col.is-compact .daily-hint { font-size: 24px; line-height: 1.25; }
.lower-col.is-compact .daily-answer-text { font-size: 32px; margin-top: 6px; }
.lower-col.is-tight .card-act { padding: 10px 12px; margin-bottom: 8px; }
.lower-col.is-tight .card-title { font-size: 26px; margin-bottom: 6px; }
.lower-col.is-tight .act-row { padding: 6px 10px; margin-bottom: 5px; }
.lower-col.is-tight .act-time { font-size: 23px; width: 88px; }
.lower-col.is-tight .act-name { font-size: 24px; }
.lower-col.is-tight .card-cd { padding: 8px 12px; margin-bottom: 8px; }
.lower-col.is-tight .cd-left,
.lower-col.is-tight .cd-right { font-size: 25px; }
.lower-col.is-tight .cd-num { font-size: 36px; }
.lower-col.is-tight .card-daily { padding: 10px 14px; }
.lower-col.is-tight .daily-head { margin-bottom: 6px; }
.lower-col.is-tight .daily-label { font-size: 24px; }
.lower-col.is-tight .daily-phase { font-size: 20px; padding: 3px 10px; }
.lower-col.is-tight .daily-question { font-size: 24px; line-height: 1.25; }
.lower-col.is-tight .daily-hint { font-size: 21px; margin-top: 4px; line-height: 1.2; }
.lower-col.is-tight .daily-answer-text { font-size: 28px; margin-top: 6px; line-height: 1.2; }

/* The loop video already contains the background and shadow (tools/make_loop.py). */
#anchorVideo, #anchorVideo2 { position: absolute; left: 0; top: 0; width: 490px; height: 750px; margin: 0; -webkit-filter: none; filter: none; }
/* 60 CJK characters must fit the two caption lines. */
.slide-photo-caption { font-size: 28px; }
