/* foot90.me — watch page */
.watch { padding-block: 8px 28px; }
.page-watch { --wrap: 960px; }
.page-watch .header .wrap,
.page-watch .watch { max-width: var(--wrap); }
.page-watch .header-content { width: 100%; }

.back { width: var(--player-w); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-bottom: 6px; color: var(--muted); font-weight: 600; font-size: .9375rem; text-decoration: none; }
@media (hover: hover) { .back:hover { color: var(--ink); } }

.stream-container {
  --player-w: min(100%, 1000px, calc((100dvh - 270px) * 16 / 9));
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 900px) and (orientation: landscape) { .stream-container { --player-w: min(100%, calc((100dvh - 80px) * 16 / 9)); } }
@media (max-width: 760px) and (orientation: portrait) { .stream-container { --player-w: 100%; } }

.stream-meta { width: var(--player-w); margin: 0 0 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stream-title { margin: 0; font: 700 clamp(1.5rem, 4.4vw, 2.4rem)/1.05 var(--font-display); letter-spacing: -.045em; text-wrap: balance; }
.viewers-text { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: #d9ccff; font-size: .8125rem; font-weight: 600; }
.viewers-text::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(167,139,250,.6); }

.iframe-container {
  width: var(--player-w); aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: #000; border-radius: 24px; border: 1px solid rgba(169, 142, 255, 0.38);
  box-shadow: 0 30px 80px -30px rgba(124, 58, 237, .5);
}
iframe { display: block; width: 100%; height: 100%; border: none; }
.iframe-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.65); z-index: 40; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.14); border-top-color: #a78bfa; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: spin 3s linear infinite !important; } }

.stream-issue-notice { width: var(--player-w); margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.stream-issue-notice a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .stream-issue-notice a:hover { text-decoration: underline; } }

/* Streams */
.sources-panel { width: var(--player-w); margin-top: 28px; }
.sources-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.035em; }
.sources-count { font: 600 .8125rem var(--font-body); color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.sources-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.source-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
@media (hover: hover) { .source-row:hover { border-color: var(--accent-text); } }
.source-row.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.source-name { font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.source-meta { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.source-row.active .source-meta { color: rgba(255,255,255,.75); }
.source-badge { margin-left: auto; flex-shrink: 0; padding: 2px 9px; border-radius: 999px; font: 700 .6875rem var(--font-body); background: #fff; color: #07060b; }
.source-badge.is-sd { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.source-row.active .source-badge.is-sd { color: #fff; border-color: rgba(255,255,255,.5); }

@media (max-width: 560px) {
  .stream-title { font-size: 1.25rem; line-height: 1.15; }
  .sources-panel { margin-top: 22px; }
  .sources-title { margin-bottom: 8px; font-size: 1.125rem; }
  .source-row { min-height: 48px; padding: 8px 12px; border-radius: 12px; }
  .source-name { font-size: .8125rem; }
  .source-badge { padding: 1px 7px; font-size: .625rem; }
}
