#mgsg-tv {
  --tv-ink: #faf7f0;
  --tv-muted: #ccc6bd;
  --tv-gold: #ffd34d;
  --tv-line: #433f39;
  --tv-focus: #ffda73;
  box-sizing: border-box;
  align-self: stretch;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(16px, 3vw, 36px);
  color: var(--tv-ink);
  font: 400 16px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
html[data-mgsg-background="2"] #mgsg-tv {
  --tv-ink: #25211d;
  --tv-muted: #685f54;
  --tv-gold: #8a611a;
  --tv-line: #d8d0c3;
  --tv-focus: #815910;
}
#mgsg-tv .mgsg-tv-content { max-width: 1100px; margin: 0 auto; }
#mgsg-tv .mgsg-tv-heading { display:flex; align-items:center; gap: 1em; margin-bottom: 16px; }
#mgsg-tv h1, #mgsg-tv h2, #mgsg-tv p { margin: 0; }
#mgsg-tv h1 { color: var(--tv-gold); font-size: clamp(1.8rem, 3.8vw, 2.65rem); letter-spacing: -.045em; line-height:1.1; }
#mgsg-tv .mgsg-tv-air { color: var(--tv-muted); font-size:.9rem; font-weight:600; border-inline-start:1px solid var(--tv-line); padding-inline-start: 1em; }
#mgsg-tv .mgsg-tv-screen {
  position:relative; width:100%; aspect-ratio:16/9; min-height:200px; overflow:hidden;
  background: #0a0d13 url('/assets/assets/intro/mgsg-cinematic-cloud-intro-16x9.77386dd18c13efea01d75e46078a6ae9.png') center / cover no-repeat;
  border-radius: 12px;
}
#mgsg-tv .mgsg-tv-screen video { position:absolute; inset:0; display:block; border:0; width:100%; height:100%; background:#080808; object-fit:contain; }
#mgsg-tv .mgsg-tv-bar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem 0; border-bottom:1px solid var(--tv-line); }
#mgsg-tv .mgsg-tv-bar p, #mgsg-tv time { color:var(--tv-muted); font-size:.87rem; }
#mgsg-tv .mgsg-tv-bar p[data-state="playing"]::before { content:""; display:inline-block; vertical-align: .04em; width:.55em; height:.55em; margin-inline-end:.5em; border-radius:50%; background:var(--tv-gold); }
#mgsg-tv .mgsg-tv-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem; }
#mgsg-tv button {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; min-height:44px; margin:0; padding:8px 13px;
  color:var(--tv-ink) !important; border:1px solid var(--tv-line); border-radius:8px;
  background:transparent !important; box-shadow:none; font-family:inherit; font-size:.9rem; font-weight:600; line-height:1.25; text-decoration:none; cursor:pointer;
}
#mgsg-tv button[data-tv-play] { color:#251b05 !important; background:#ffd34d !important; border-color:#ffd34d; }
#mgsg-tv :is(button,a):focus-visible { outline: 2px solid var(--tv-focus); outline-offset:2px; }
#mgsg-tv [hidden] {display:none !important;}
#mgsg-tv .mgsg-tv-guide { display:grid; grid-template-columns: 1fr 1.25fr; margin-top:20px; gap: clamp(16px, 3vw, 36px); }
#mgsg-tv .mgsg-tv-listing { min-width:0; }
#mgsg-tv .mgsg-tv-listing h2 { font-size:.83rem; font-weight:700; line-height:1.3; color:var(--tv-gold); margin-bottom:.4rem; }
#mgsg-tv .mgsg-tv-listing p { color:var(--tv-ink); font-weight:650; font-size:clamp(1rem, 2vw, 1.3rem); overflow-wrap:anywhere; line-height:1.35; }
#mgsg-tv time { display:block; margin-top:.45rem; }
#mgsg-tv .mgsg-tv-progress { background:var(--tv-line); height:3px; max-width:12rem; margin-top:.8rem; border-radius:1.5px; overflow:hidden; }
#mgsg-tv .mgsg-tv-progress i { display:block; height:100%; background:var(--tv-gold); }
@media (max-width:600px) {
  #mgsg-tv .mgsg-tv-guide { grid-template-columns:1fr; gap:18px; }
  #mgsg-tv .mgsg-tv-bar { flex-wrap:wrap; }
}
@media (min-width:900px) and (min-height:620px) {
  #mgsg-tv .mgsg-tv-content { max-width:min(1100px, calc(177.78dvh - 455px)); }
}


#mgsg-tv .mgsg-tv-guide-title { display:flex; align-items:baseline; justify-content:space-between; gap:.8rem; }
#mgsg-tv .mgsg-tv-guide-title small, #mgsg-tv .mgsg-tv-upcoming small { color:var(--tv-muted); font-size:.8rem; }
#mgsg-tv .mgsg-tv-upcoming { list-style:none; margin:0; padding:0; }
#mgsg-tv .mgsg-tv-upcoming li { display:grid; grid-template-columns:minmax(5.7rem,auto) 1fr; gap:.75rem; align-items:baseline; padding:.6rem 0; }
#mgsg-tv .mgsg-tv-upcoming li + li { border-top:1px solid var(--tv-line); }
#mgsg-tv .mgsg-tv-upcoming time { margin:0; font-weight:650; font-variant-numeric:tabular-nums; }
#mgsg-tv .mgsg-tv-upcoming small { display:block; margin-top:.1rem; }
#mgsg-tv .mgsg-tv-upcoming p { font-size:1rem; line-height:1.35; }
#mgsg-tv .mgsg-tv-frame { position:absolute; inset:0; }
#mgsg-tv .mgsg-tv-notice { margin-top:1.2rem; }
#mgsg-tv .mgsg-tv-notice h2 { font-size:1.3rem; color:var(--tv-ink); }
#mgsg-tv .mgsg-tv-notice p { margin-top:.4rem; color:var(--tv-muted); }
