:root {
  --sf-bg: #0a0e14;
  --sf-panel: #101722;
  --sf-yellow: #d6cb3e;
  --sf-blue: #1e56a6;
  --sf-text: #e8ecf4;
  --sf-dim: #8a93a5;
  --sf-line: rgba(138, 147, 165, 0.16);
  --sf-card: rgba(16, 23, 34, 0.72);
  --sf-card-border: rgba(30, 86, 166, 0.4);
}

/* global: display:flex/grid on components must never defeat [hidden] */
[hidden] { display: none !important; }

/* ---- sami-flix tokens ---- */
@font-face {
  font-family: "Sami Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/SamiGrotesk-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Sami Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/SamiGrotesk-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Sami Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/SamiGrotesk-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Sami Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/SamiGrotesk-Bold.woff2") format("woff2");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(30, 86, 166, 0.28), transparent 60%),
    radial-gradient(900px 420px at 50% 115%, rgba(214, 203, 62, 0.06), transparent 60%),
    var(--sf-bg);
  color: var(--sf-text);
  font-family: "Sami Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 16px 12px;
}

.sf-mascot {
  width: 58px;
  height: 58px;
  margin-right: 14px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.sf-wordmark {
  width: min(340px, 72vw);
  height: auto;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.6));
}

.sf-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sf-playerWrap {
  position: relative;
  width: min(1100px, 100%);
}

.sf-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  border: 1px solid rgba(94, 140, 200, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 18px 60px rgba(0, 0, 0, 0.55),
    0 0 46px rgba(30, 86, 166, 0.18);
}

.sf-liveTag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 14, 20, 0.82);
  border: 1px solid rgba(214, 203, 62, 0.5);
  color: var(--sf-yellow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 18px rgba(214, 203, 62, 0.16);
}

.sf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sf-yellow);
  animation: sf-pulse 1.6s ease-in-out infinite;
}

.sf-ccBtn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(10, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 11px;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s, border-color 0.15s;
  z-index: 5;
}
.sf-ccBtn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.sf-ccBtn[aria-pressed="true"] {
  color: #0b1220;
  background: var(--sf-yellow, #ffd75e);
  border-color: var(--sf-yellow, #ffd75e);
}

@keyframes sf-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sf-offline {
  position: relative;
  text-align: center;
  padding: 40px 12px 26px;
}

.sf-offline::before {
  content: "";
  position: absolute;
  inset: -6% -18%;
  background: radial-gradient(closest-side, rgba(30, 86, 166, 0.16), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.sf-lockup {
  width: min(760px, 92vw);
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7));
  animation: sf-float 7s ease-in-out infinite;
}

@keyframes sf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sf-offlineText {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--sf-dim);
  letter-spacing: 0.04em;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  padding: 8px 20px;
  background: rgba(16, 23, 34, 0.6);
}

.sf-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 0 30px;
  color: var(--sf-dim);
}

.sf-footBy {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.sf-footLogo {
  height: 16px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.15s;
}

.sf-foot:hover .sf-footLogo { opacity: 1; }

.sf-sched {
  width: min(760px, 94vw);
  margin: 0 auto 40px;
  padding: 20px 22px;
  background: var(--sf-card);
  border: 1px solid var(--sf-card-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sf-schedTitle {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-dim);
  margin-bottom: 12px;
}

.sf-schedItem {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(138, 147, 165, 0.14);
}

.sf-schedItem:last-child { border-bottom: none; }

.sf-schedMovie {
  font-size: 16px;
  color: var(--sf-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-schedTime {
  font-size: 14px;
  color: var(--sf-yellow);
  white-space: nowrap;
}

.sf-schedZone {
  display: block;
  font-size: 12px;
  color: var(--sf-dim);
  margin-top: 2px;
}

/* ---- now playing card ---- */
.sf-now {
  width: min(760px, 94vw);
  margin: 0 auto 22px;
}

.sf-nowCard {
  display: flex;
  gap: 16px;
  align-items: stretch;
  background: rgba(16, 23, 34, 0.85);
  border: 1px solid rgba(30, 86, 166, 0.5);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sf-nowPoster {
  width: 100px;
  min-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  background: #0d1420;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.sf-nowInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.sf-nowLabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-yellow);
}

.sf-nowLabel::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sf-yellow);
  animation: sf-pulse 1.6s ease-in-out infinite;
}

.sf-nowTitle {
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sf-nowSub {
  font-size: 14px;
  color: var(--sf-dim);
  line-height: 1.4;
}

/* posters in schedule rows */
.sf-schedItem {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}

.sf-schedPoster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: #0d1420;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sf-schedItemText {
  min-width: 0;
}

.sf-schedMeta {
  font-size: 12px;
  color: var(--sf-dim);
  margin-top: 2px;
}


/* episode stills are 16:9 - widen instead of cropping into poster shape */
.sf-nowPoster.sf-artStill {
  width: 168px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* ---- schedule guide ---- */
.sf-schedTz {
  font-size: 12px;
  color: var(--sf-dim);
  margin: -6px 0 14px;
}

.sf-guideDay {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-yellow, #d6cb3e);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(214, 203, 62, 0.5), rgba(214, 203, 62, 0.04)) 1;
}
.sf-guideDay:first-child { margin-top: 0; }

.sf-guideRow {
  display: grid;
  grid-template-columns: 64px 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  transition: background 0.15s;
}

.sf-guideRow:hover { background: rgba(255, 255, 255, 0.035); }

.sf-guideTime {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sf-text, #eee);
}

.sf-guideInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sf-guideBadge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sf-dim, #999);
  text-align: right;
  white-space: nowrap;
}

.sf-badgeLive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6cb3e;
  border: 1px solid rgba(214, 203, 62, 0.5);
  border-radius: 999px;
  padding: 3px 10px;
}

.sf-onAir .sf-schedMovie { color: #d6cb3e; }
.sf-onAir { background: rgba(214, 203, 62, 0.05); }

.sf-aired { opacity: 0.45; }

.sf-guideEmpty {
  color: var(--sf-dim, #999);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
}

/* ---- how-it-works guide ---- */
.sf-guide {
  width: min(760px, 94vw);
  margin: 0 auto 40px;
  padding: 20px 22px;
  background: var(--sf-card);
  border: 1px solid var(--sf-card-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sf-guideList {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sf-dim);
}

.sf-guideList b { color: var(--sf-text); }

/* ---- admin panel on the main page ---- */
.sf-admin { border-color: rgba(214, 203, 62, 0.4); }

.sf-adminBar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sf-adminNote { font-size: 12.5px; color: var(--sf-dim); }

.sf-adminHead {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sf-yellow);
  margin: 14px 0 8px;
}

.sf-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  background: var(--sf-yellow);
  color: #1a1a10;
  padding: 7px 14px;
}

.sf-btnDim {
  background: rgba(138, 147, 165, 0.18);
  color: var(--sf-text);
}

.sf-qRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: rgba(13, 20, 32, 0.75);
  border: 1px solid rgba(30, 86, 166, 0.4);
  border-radius: 10px;
}

.sf-qRow.sf-current { border-color: rgba(214, 203, 62, 0.55); }
.sf-qNum { color: var(--sf-yellow); font-weight: 700; width: 18px; text-align: right; }
.sf-qPoster { width: 28px; height: 42px; object-fit: cover; border-radius: 4px; background: #0d1420; flex-shrink: 0; }
.sf-qTitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-qRow.sf-current .sf-qTitle { color: var(--sf-yellow); }
.sf-x {
  cursor: pointer; border: none; background: none; color: var(--sf-dim);
  font-size: 15px; padding: 2px 7px; border-radius: 6px;
}
.sf-x:hover { color: #e05252; }
.sf-ar {
  cursor: pointer; border: none; background: none; color: var(--sf-dim);
  font-size: 16px; padding: 2px 6px;
}
.sf-ar:hover:not(:disabled) { color: var(--sf-text); }
.sf-ar:disabled { opacity: 0.3; cursor: default; }
.sf-qEmpty { color: var(--sf-dim); font-size: 14px; padding: 8px 2px; }

.sf-libRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  margin-bottom: 6px;
  background: rgba(13, 20, 32, 0.6);
  border: 1px solid rgba(30, 86, 166, 0.3);
  border-radius: 10px;
  font-size: 14px;
}

.sf-libName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sf-drop {
  border: 2px dashed rgba(30, 86, 166, 0.55);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  font-size: 14.5px;
}

.sf-drop.sf-over { border-color: var(--sf-yellow); background: rgba(214, 203, 62, 0.06); }
.sf-libSize { color: var(--sf-dim); font-size: 12.5px; flex-shrink: 0; }

/* ---- now-playing head row (title + rating) & overview ---- */
.sf-nowHeadRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.sf-nowRating {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-yellow);
  background: rgba(30, 86, 166, 0.35);
  border: 1px solid rgba(30, 86, 166, 0.6);
  border-radius: 6px;
  padding: 1px 7px;
}

.sf-nowOverview {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(232, 234, 246, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- schedule countdown ---- */
.sf-guideCountdown {
  font-size: 12px;
  font-weight: 600;
  color: var(--sf-yellow);
  margin-top: 2px;
  white-space: nowrap;
}

/* ---- fullscreen button (top-right, under LIVE badge's z-order) ---- */
.sf-fsBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(214, 203, 62, 0.5);
  background: rgba(10, 14, 20, 0.82);
  color: var(--sf-yellow);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}
.sf-fsBtn:hover { background: rgba(20, 28, 40, 0.92); }
.sf-fsBtn:active { transform: scale(0.96); }

/* ---- shared remote: rewind / restart / catch-up ---- */
.sf-remote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sf-line);
}

.sf-rDivider {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: var(--sf-line);
}
.sf-rbtn {
  border: 1px solid rgba(214, 203, 62, 0.45);
  background: rgba(18, 26, 38, 0.85);
  color: var(--sf-yellow, #d6cb3e);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  -webkit-appearance: none;
  appearance: none;
}
.sf-rbtn:hover:not(:disabled) { background: rgba(32, 44, 62, 0.95); }
.sf-rbtn:active:not(:disabled) { transform: scale(0.96); }
.sf-rbtn:disabled { opacity: 0.45; cursor: wait; }
.sf-rbtnRestart { border-color: rgba(255, 255, 255, 0.35); color: #e8edf3; }

.sf-rbtnStop {
  border-color: rgba(224, 82, 82, 0.6);
  color: #e05252;
  background: rgba(224, 82, 82, 0.08);
}
.sf-rbtnStop:hover:not(:disabled) { background: rgba(224, 82, 82, 0.2); }

.sf-rbtnSkip {
  background: rgba(214, 203, 62, 0.14);
  border-color: rgba(214, 203, 62, 0.65);
}

.sf-rbtnSkip:hover:not(:disabled) { background: rgba(214, 203, 62, 0.24); }
.sf-pos {
  margin-top: 10px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.sf-posBar {
  height: 4px;
  border-radius: 999px;
  background: rgba(138, 147, 165, 0.18);
  overflow: hidden;
}

.sf-posFill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sf-blue), #4d84d8);
  transition: width 0.6s ease;
}

.sf-posText { margin-top: 6px; opacity: 0.75; }

/* marker class only (JS feature detection); no styling attached */
.sf-remoteMsg {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--sf-yellow, #d6cb3e);
  min-height: 1.1em;
}

/* ---- polish: focus, selection, scrollbar, motion ---- */
.sf-rbtn:focus-visible,
.sf-btn:focus-visible,
.sf-ccBtn:focus-visible,
.sf-fsBtn:focus-visible,
.sf-x:focus-visible,
.sf-ar:focus-visible {
  outline: 2px solid var(--sf-yellow);
  outline-offset: 2px;
}

::selection { background: rgba(214, 203, 62, 0.35); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #1d2a3d;
  border-radius: 999px;
  border: 2px solid var(--sf-bg);
}

.sf-guideCountdown { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .sf-lockup { animation: none; }
  .sf-dot { animation: none; }
}

/* ---- live-state extras ---- */
.sf-nowRating {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sf-qRow.sf-current {
  box-shadow: 0 0 0 1px rgba(214, 203, 62, 0.12), 0 4px 16px rgba(214, 203, 62, 0.06);
}

/* ---- viewer accounts + requests (seerr) ---- */
.sf-reqIntro {
  color: var(--sf-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 16px;
}
.sf-reqDim { opacity: 0.8; }
.sf-reqLink { color: var(--sf-yellow); text-decoration: none; }
.sf-reqLink:hover { text-decoration: underline; }
.sf-reqForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sf-reqInput {
  flex: 1 1 170px;
  min-width: 0;
  background: rgba(10, 14, 20, 0.75);
  border: 1px solid var(--sf-line);
  border-radius: 10px;
  color: var(--sf-text);
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
}
.sf-reqInput:focus { border-color: rgba(214, 203, 62, 0.55); }
.sf-reqInput::placeholder { color: var(--sf-dim); opacity: 0.75; }
.sf-reqMsg {
  flex-basis: 100%;
  min-height: 1em;
  color: var(--sf-dim);
  font-size: 13px;
}
.sf-reqPanel { display: flex; flex-direction: column; gap: 12px; }
.sf-reqBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-reqWho { color: var(--sf-dim); font-size: 13.5px; }
.sf-reqSearch { display: flex; gap: 10px; }
.sf-reqQuery { flex: 1 1 auto; }
.sf-reqResults { display: flex; flex-direction: column; gap: 8px; }
.sf-reqRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.45);
}
.sf-reqRow .sf-qPoster { width: 34px; height: 50px; }
.sf-reqInfo { flex: 1; min-width: 0; }
.sf-reqTitle { font-size: 14.5px; color: var(--sf-text); }
.sf-reqOverview {
  color: var(--sf-dim);
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sf-reqBtn { flex-shrink: 0; }
.sf-reqTabs { display: flex; gap: 8px; }
.sf-ingestLabel { color: var(--sf-dim); white-space: nowrap; }
.sf-ingestTitle {
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-ingestBar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(138, 147, 165, 0.18);
  overflow: hidden;
}
.sf-ingestFill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--sf-yellow);
  transition: width 2s linear;
}
.sf-reqTab {
  background: transparent;
  border: 1px solid var(--sf-line);
  border-radius: 999px;
  color: var(--sf-dim);
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
}
.sf-reqTabOn {
  background: var(--sf-yellow);
  border-color: var(--sf-yellow);
  color: #16281c;
  font-weight: 600;
}
.sf-pcPanel { display: flex; flex-direction: column; gap: 12px; }
.sf-tvSeason {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--sf-line);
  padding-left: 10px;
}
/* ---- PC TV series browser: card list -> expand -> seasons -> episodes ---- */
.sf-pcTvSearch {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--sf-line);
  background: rgba(10, 14, 20, 0.55);
  color: var(--sf-text);
  font: inherit;
}
.sf-pcTvSearch:focus { outline: 2px solid var(--sf-blue); border-color: var(--sf-blue); }
.sf-pcTvList { display: flex; flex-direction: column; gap: 8px; }
.sf-pcShow {
  border: 1px solid var(--sf-line);
  border-radius: 12px;
  background: rgba(16, 23, 34, 0.6);
  overflow: hidden;
}
.sf-pcShowHead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--sf-text);
  font: inherit;
  text-align: left;
}
.sf-pcShowHead:hover { background: rgba(30, 86, 166, 0.14); }
.sf-pcShowOpen .sf-pcShowHead { border-bottom: 1px solid var(--sf-line); }
.sf-pcShowOpen { border-color: rgba(30, 86, 166, 0.5); }
.sf-pcShowBody {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}
.sf-pcShowBody[hidden] { display: none; }
.sf-pcSeasonChip { align-self: flex-start; }
.sf-upBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--sf-line);
  border-radius: 12px;
}
.sf-upCard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--sf-card-border);
  border-radius: 10px;
  background: var(--sf-card);
  transition: opacity 0.9s ease;
}
.sf-upCard.sf-upDone { opacity: 0; }
.sf-upCardTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.sf-upCardTop span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sf-upCardTop #sf-upCardPct,
.sf-upCardTop #sf-adCardPct { flex-shrink: 0; color: var(--sf-yellow); }
.sf-upTrack {
  height: 8px;
  border-radius: 5px;
  background: rgba(138, 147, 165, 0.18);
  overflow: hidden;
}
.sf-upFill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: var(--sf-yellow);
  transition: width 0.4s ease;
}
.sf-upFill.sf-upFail { background: #e05252; }
.sf-upCardStat { font-size: 12.5px; color: var(--sf-dim); }
.sf-resetBox summary { cursor: pointer; width: fit-content; }
.sf-resetBox form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin-top: 8px;
}
@media (max-width: 560px) {
  .sf-reqRow { flex-wrap: wrap; }
  .sf-reqInfo { flex-basis: calc(100% - 60px); }
}
