/* PSC bar v1 for the videos site (Claude, 14 Nov 2026): the same top bar as the forum and PSC Home
   (PSC Home · Forums · Videos and the light/dark switch), the header row laid out like theirs, and the
   forum's round back-to-top arrow. Loaded after styles.css. Dark is the default look; light is
   html[data-theme="light"]. */

/* The PSC bar. */
.psc-network {
  --psc-deep-teal: #0c3037;
  --psc-mint: #c5e9d1;
  --psc-gold: #f4d0a2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  min-block-size: 2.875rem;
  padding: .25rem max(.75rem, env(safe-area-inset-right)) .25rem max(.75rem, env(safe-area-inset-left));
  background: #0a2125;
  border-block-end: 1px solid #354c4c;
  color: #e6f4ed;
  font: 650 .875rem/1.2 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  position: relative;
  z-index: 3;
}
html[data-theme="light"] .psc-network { background: var(--psc-deep-teal); border-block-end-color: transparent; }
.psc-network svg {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.psc-network__brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  color: #e6f4ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.psc-network__brand svg { inline-size: 1.3rem; block-size: 1.3rem; color: var(--psc-mint); }
.psc-network__sites { display: flex; align-items: center; gap: .3rem; }
.psc-network__tools { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; }
.psc-network a,
.psc-network button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-block-size: 2.375rem;
  padding: 0 .95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(230, 244, 237, .9);
  font: inherit;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.psc-network a:hover,
.psc-network button:hover { background: rgba(197, 233, 209, .14); color: #fff; text-decoration: none; }
.psc-network a[aria-current="true"] { background: var(--psc-mint); color: var(--psc-deep-teal); }
.psc-network a:focus-visible,
.psc-network button:focus-visible { outline: 2px solid var(--psc-gold); outline-offset: 2px; }
.psc-network .psc-network__tool { position: relative; justify-content: center; min-inline-size: 2.5rem; padding: 0 .6rem; }
.psc-network__label {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.psc-network [hidden] { display: none !important; }
.psc-network__moon,
html[data-theme="light"] .psc-network__sun { display: none; }
html[data-theme="light"] .psc-network__moon { display: block; }
@media (max-width: 56rem) {
  .psc-network { grid-template-columns: minmax(0, 1fr) auto; }
  .psc-network__brand { display: none; }
  .psc-network__sites { overflow-x: auto; scrollbar-width: none; justify-self: start; max-inline-size: 100%; }
  .psc-network__sites::-webkit-scrollbar { display: none; }
}
@media (max-width: 26rem) {
  .psc-network a,
  .psc-network button { padding: 0 .7rem; }
  .psc-network__sites svg { display: none; }
}
@media print { .psc-network { display: none; } }
/* The app's own player shows none of this. */
.app-playback .psc-network,
.app-playback .topper-wrap { display: none !important; }

/* The switch lives in the bar: the header's older switch never shows. */
.site-header .header-access [data-theme-switch] { display: none !important; }

/* The header row, like the forum's and PSC Home's: the PSC logo and name, the account, the menu. */
.site-header .brand .brand-logo {
  inline-size: 40px;
  block-size: 40px;
  flex: none;
  padding: 3px;
  border-radius: 10px;
  background: #e9eeea;
  box-sizing: border-box;
}
.site-header .brand .brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.site-header .header-account-status { white-space: nowrap; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.site-header .navigation { flex-wrap: nowrap; }

@media (max-width: 880px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem .75rem;
    min-height: 0;
    padding-top: .65rem;
  }
  .site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .site-header .brand .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .site-header .header-access,
  .site-header .header-access:has(.header-account-status:not([hidden])) {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    margin: 0;
    min-width: 0;
  }
  .site-header .navigation,
  .site-header .navigation:has(.nav-action:not([hidden])),
  .site-header .header-inner:has(.header-account-status:not([hidden])) .navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: .25rem;
    margin: 0;
    padding: .3rem 0 .45rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line, #d9e1dc);
  }
  .site-header .navigation::-webkit-scrollbar { display: none; }
  .site-header .navigation a,
  .site-header .navigation .nav-action {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0 .75rem;
    border-radius: 999px;
    font-size: .88rem;
  }
  .site-header .navigation .nav-library { display: inline-flex; }
}
@media (max-width: 600px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand .brand-logo { inline-size: 34px; block-size: 34px; }
  .site-header .brand .brand-name { font-size: 14.5px; }
  .site-header .header-access .button { min-height: 2.35rem; padding-inline: .8rem; font-size: .82rem; }
  .site-header .header-account-status { max-width: 9rem; font-size: .85rem; text-align: end; }
  .site-header .psc-account-prefix { display: none; }
  .site-header .navigation { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .site-header .header-access,
  .site-header .header-access:has(.header-account-status:not([hidden])) { gap: .45rem; }
  .site-header .header-access .button { padding-inline: .65rem; font-size: .8rem; }
}

/* Back to top: the forum's round arrow (its "Topper"), the same look, size and place. */
:root {
  --topper-size: 48px;
  --topper-size-mobile: 40px;
  --topper-bg: #111827;
  --topper-bg-hover: #0f172a;
  --topper-icon: #ffffff;
  --topper-opacity: .9;
  --topper-offset-x: 24px;
  --topper-offset-y: 24px;
  --topper-offset-y-mobile: 32px;
  --topper-pwa-offset: 0px;
  --topper-mobile-gutter: -20px;
}
.topper-wrap { position: fixed; z-index: 2147483000; display: none; align-items: center; pointer-events: none; }
.topper-wrap.is-on { display: flex; }
.topper-wrap.pos-br { right: var(--topper-offset-x); bottom: var(--topper-offset-y); }
.topper-stack { display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.topper-btn {
  position: relative;
  width: var(--topper-size);
  height: var(--topper-size);
  background: var(--topper-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  outline: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .18s, background .18s, opacity .18s, box-shadow .18s, visibility .18s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  border-radius: 12px;
}
.topper-btn.shape-circle { border-radius: 50%; }
.topper-btn.is-visible { visibility: visible; opacity: var(--topper-opacity); transform: translateY(0); }
.topper-btn:hover,
.topper-btn:focus-visible { background: var(--topper-bg-hover); transform: translateY(-2px); opacity: 1; }
.topper-btn:focus-visible { box-shadow: 0 0 0 3px #f4d0a2, 0 8px 24px rgba(0, 0, 0, .25); }
.topper-btn > svg {
  width: 55%;
  height: 55%;
  display: block;
  fill: none;
  stroke: var(--topper-icon);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topper-ring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.topper-ring svg { position: absolute; width: 100%; height: 100%; transform: rotate(-90deg); }
.topper-ring circle { fill: none; stroke: var(--topper-icon); opacity: .35; stroke-width: 3; }
.topper-ring .topper-prog { stroke: var(--topper-icon); opacity: .9; stroke-width: 3; stroke-dasharray: 0 1; }
@media (max-width: 768px) {
  .topper-wrap .topper-btn { width: var(--topper-size-mobile); height: var(--topper-size-mobile); }
  #topperDownBtn { display: none !important; }
  .topper-wrap.pos-br {
    right: max(4px, calc(var(--topper-offset-x) + var(--topper-mobile-gutter)));
    bottom: calc(var(--topper-offset-y-mobile) + var(--topper-pwa-offset) + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .topper-btn { transition: none; }
}
@media print { .topper-wrap { display: none !important; } }

/* The name with PSC's line under it, as on the forum, and the name opens PSC Home (Claude, 15 Nov 2026, Ahmed 16:20).
   Here and not in the page: the videos site's security policy lets no style in the page itself. */
.site-header .brand .brand-text { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.site-header .brand .brand-name { display: block; line-height: 1.2; }
.site-header .brand .brand-text > .brand-tag { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.2; color: var(--muted); }
@media (max-width: 40rem) {
  .site-header .brand .brand-text > .brand-tag { white-space: normal; font-size: 11px; line-height: 1.15; }
}

/* The PSC bar's shield opens PSC Home and shows on phones too, as on the other PSC sites (Claude, 15 Nov 2026, Ahmed 17:04 and 17:12). */
.psc-network a.psc-network__brand { justify-content: center; min-inline-size: 2.5rem; padding: 0 .6rem; color: #e6f4ed; }
@media (max-width: 56rem) {
  .psc-network { grid-template-columns: auto minmax(0, 1fr) auto; }
  .psc-network a.psc-network__brand { display: inline-flex; grid-column: 1; min-inline-size: 2.25rem; padding: 0 .45rem; }
  .psc-network .psc-network__sites { grid-column: 2; }
  .psc-network .psc-network__tools { grid-column: 3; }
}

/* PSC app prompt on phones (Claude, 16 Nov 2026): psc-bar-v1.js draws it for browsers that don't show Apple's own banner. */
#psc-app-banner{display:flex;align-items:center;gap:12px;margin:8px;padding:10px 10px 10px 12px;border:1px solid #d9e3d9;border-radius:16px;background:#fffef9;color:#102e2c;font:14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-shadow:0 6px 18px rgba(4,42,39,.12)}
#psc-app-banner img{width:44px;height:44px;border-radius:11px;flex:none}
#psc-app-banner .psc-app-banner__copy{flex:1;min-width:0}
#psc-app-banner strong{display:block;font-size:15px}
#psc-app-banner span{display:block;color:#49635e;font-size:13px}
#psc-app-banner a{flex:none;padding:9px 16px;border-radius:999px;background:#086254;color:#fff;font-weight:700;text-decoration:none}
#psc-app-banner button{flex:none;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#49635e;font-size:22px;line-height:1}
html:not([data-theme="light"]) #psc-app-banner{background:#172b29;border-color:#34514c;color:#eaf6ef}
html:not([data-theme="light"]) #psc-app-banner span,html:not([data-theme="light"]) #psc-app-banner button{color:#aac0b7}
html:not([data-theme="light"]) #psc-app-banner a{background:#9ce6cf;color:#102e2c}

/* PSC Videos polish v1 (Claude, 16 Nov 2026; Ahmed: one finer look on every PSC page, dark and light; the white Library
   order menu). The forum's and PSC Home's softer corners and depth for the library, and menus in the look's own colours.
   Only looks. */
:root {
  --pv-radius: 14px;
  --pv-shadow: 0 1px 2px rgb(12 48 55 / .06), 0 10px 26px -18px rgb(12 48 55 / .35);
  --pv-lift: 0 2px 4px rgb(12 48 55 / .08), 0 18px 34px -18px rgb(12 48 55 / .4);
}
html:not([data-theme="light"]) {
  --pv-shadow: 0 1px 2px rgb(0 0 0 / .18), 0 10px 28px -16px rgb(0 0 0 / .55);
  --pv-lift: 0 2px 4px rgb(0 0 0 / .2), 0 16px 32px -16px rgb(0 0 0 / .6);
}
/* Menus: the list a browser opens for Library order, the filters and the player takes the look's surface and ink. Some
   browsers drew it white, with the dark look's pale words on it. */
.sort-field select, .filter-field select, .player-select select { background-color: var(--surface); }
.sort-field select option, .filter-field select option, .player-select select option { background-color: var(--surface); color: var(--ink); }
/* Cards. */
.card-button { border-radius: var(--pv-radius); box-shadow: var(--pv-shadow); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card-button:hover, .card-button:focus-visible,
html:not([data-theme="light"]) .card-button:hover, html:not([data-theme="light"]) .card-button:focus-visible { transform: translateY(-2px); box-shadow: var(--pv-lift); }
.card-art img { transition: transform .35s ease; }
.card-button:hover .card-art img { transform: scale(1.04); }
/* Buttons, fields and boxes: the same corners as the forum. */
.button { border-radius: 10px; }
.search-field, .sort-field, .filter-field select { border-radius: 10px; }
.search-field:focus-within, .sort-field:focus-within { border-color: var(--teal); }
.continue-watching { border-radius: var(--pv-radius); }
.continue-item { border-radius: 10px; }
.video-dialog { border-radius: 18px; }
.tag-filters button { transition: border-color .15s ease, background-color .15s ease; }
/* Viewing history: rows answer the pointer; a video's name is a link like the member's. */
.history-table tbody tr:hover td { background: rgb(28 101 92 / .07); }
html:not([data-theme="light"]) .history-table tbody tr:hover td { background: rgb(197 233 209 / .07); }
.history-table a { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .card-button, .card-art img, .tag-filters button { transition: none; }
  .card-button:hover, .card-button:focus-visible, .card-button:hover .card-art img,
  html:not([data-theme="light"]) .card-button:hover, html:not([data-theme="light"]) .card-button:focus-visible { transform: none; }
}
/* end PSC Videos polish v1 */

/* PSC Videos: note, flashcard and collections for the open video (Claude, 17 Nov 2026; psc-video-study.js). */
.psc-video-study { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.psc-video-study[hidden] { display: none !important; }
.psc-video-collections { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .9rem 0 .2rem; }
.psc-video-collections[hidden] { display: none !important; }
.psc-video-collections__label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-right: .2rem; }
.psc-video-collections__chip { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .8rem; border-radius: 999px;
    border: 1px solid currentColor; text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.2; opacity: .92; }
.psc-video-collections__chip:hover, .psc-video-collections__chip:focus-visible { opacity: 1; text-decoration: underline; }
