.syp-player {
  --syp-accent: #77e0ba;
  --syp-ratio: 16/9;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  overflow: hidden;
  background: #101a20;
  color: #f2f7f5;
  border: 1px solid #344148;
  border-radius: 14px;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  color-scheme: dark;
}
.syp-player *, .syp-player *::before, .syp-player *::after { box-sizing: border-box; }
.syp-player [hidden] { display: none !important; }
.syp-player .syp-viewport { position: relative; width: 100%; aspect-ratio: var(--syp-ratio); min-height: 200px; background: #060c10; overflow: hidden; }
.syp-player .syp-engine { position: absolute; inset: 0; }
.syp-player .syp-engine iframe { display: block; position: absolute; width: 100%; height: 100%; left: 0; top: 0; margin: 0; padding: 0; border: 0; max-width: none; max-height: none; }
/* Experimental presentation only. This does not alter YouTube or protect media. */
.syp-player.syp-mode-focus .syp-engine iframe { height: 200%; top: -50%; pointer-events: none; }
/* Deny visibility by default; only the playback gate grants a visible surface. */
.syp-player.syp-mode-focus:not([data-surface="visible"]) .syp-engine { opacity: 0; pointer-events: none; }
.syp-player.syp-mode-focus[data-state="error"] .syp-engine { display: none !important; }
.syp-player[data-state="error"] .syp-poster-image { display: none; }
.syp-player .syp-poster { z-index: 2; }
.syp-player button { font: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: none; }
.syp-player button:focus-visible, .syp-player input:focus-visible, .syp-player select:focus-visible, .syp-player:focus-visible { outline: 3px solid var(--syp-accent); outline-offset: 3px; }
.syp-player .syp-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 24px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; color: #f2f7f5; background: radial-gradient(ellipse at 25% 0%, #214137 0%, #101e26 45%, #080f14 100%); }
.syp-player .syp-poster-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.syp-player .syp-poster-shade { position: absolute; inset: 0; background: linear-gradient(0deg, #04090c99, transparent 65%); }
.syp-player .syp-start-icon { display: grid; place-items: center; flex: 0 0 auto; position: relative; width: 64px; height: 64px; padding-left: 4px; border-radius: 50%; color: #10241e; background: var(--syp-accent); font-size: 24px; transition: transform 160ms ease; }
.syp-player .syp-poster:hover .syp-start-icon { transform: scale(1.07); }
.syp-player .syp-poster-label { position: relative; font-weight: 600; font-size: 15px; }
.syp-player .syp-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 60px; padding: 12px 16px; border-top: 1px solid #2c393f; }
.syp-player .syp-controls button, .syp-player .syp-recovery button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; border: 1px solid #46565f; border-radius: 7px; background: #1c2c34; color: #f2f7f5; line-height: 1.25; }
.syp-player .syp-controls button:hover:not(:disabled), .syp-player .syp-recovery button:hover { border-color: var(--syp-accent); background: #263d44; }
.syp-player .syp-toggle { min-width: 66px; }
.syp-player .syp-time { white-space: nowrap; color: #b9c9ce; font-size: 12px; font-variant-numeric: tabular-nums; }
.syp-player input[type="range"] { display: block; height: 28px; padding: 0; margin: 0; cursor: pointer; accent-color: var(--syp-accent); border: 0; background: transparent; box-shadow: none; }
.syp-player .syp-seek { flex: 1 1 100px; width: 100px; min-width: 70px; }
.syp-player .syp-volume { flex: 0 1 60px; width: 60px; min-width: 36px; }
.syp-player .syp-speed { width: auto; min-width: 58px; height: 36px; padding: 4px; margin: 0; border: 1px solid #46565f; border-radius: 7px; font: inherit; background: #1c2c34; color: #f2f7f5; }
.syp-player :disabled { opacity: .45; cursor: default; }
.syp-player .syp-footer { min-height: 37px; padding: 0 16px 12px; }
.syp-player .syp-status { margin: 0; color: #afc3ca; font-size: 12px; }
.syp-player[data-state="error"] .syp-status { color: #ffb7a8; }
.syp-player .syp-recovery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.syp-player .syp-recovery button { font-size: 12px; }
.syp-player:is(:fullscreen, :-webkit-full-screen) { width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; background: #060c10; }
.syp-player:is(:fullscreen, :-webkit-full-screen) .syp-viewport { flex: 1 1 0; min-height: 0; }
.syp-player:is(:fullscreen, :-webkit-full-screen) .syp-controls { flex: 0 0 auto; }
.syp-player:is(:fullscreen, :-webkit-full-screen) .syp-footer { flex: 0 0 auto; }
.syp-error { padding: 12px 16px; color: #762d20; background: #fff1ed; border-left: 3px solid #c3533b; }
@media (max-width: 520px) {
  .syp-player .syp-controls { gap: 8px; padding: 10px; }
  .syp-player .syp-seek { flex: 1 0 100%; order: -1; width: 100%; }
  .syp-player .syp-volume { flex: 1 1 40px; max-width: 70px; }
  .syp-player .syp-controls button { font-size: 12px; padding: 6px 8px; }
  .syp-player .syp-time { flex: 1 0 auto; }
  .syp-player .syp-footer { padding: 0 10px 10px; }
}
@media (prefers-reduced-motion: reduce) { .syp-player .syp-start-icon { transition: none; } }
