.vsl-embed .player-controls {
  --player-accent: var(--accent, #ff4d4d);
  --player-surface: rgba(16, 16, 20, .94);
  --player-line: rgba(255, 255, 255, .12);
  position: absolute;
  z-index: 2;
  inset: 0;
  color: #fafafa;
  font: 500 13px/1.4 Inter, Arial, sans-serif;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
}
.vsl-embed .player-controls [hidden] { display: none !important; }
.vsl-embed .player-controls svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsl-embed .player-toolbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 44px 16px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .58) 45%, rgba(0, 0, 0, .84));
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.vsl-embed .player-controls[data-idle="true"] .player-toolbar { opacity: 0; transform: translateY(6px); }
.vsl-embed .player-controls[data-idle="true"] .player-toolbar > * { pointer-events: none; }
.vsl-embed .player-controls:has(:focus-visible) .player-toolbar { opacity: 1; transform: none; }
.vsl-embed .player-controls:has(:focus-visible) .player-toolbar > * { pointer-events: auto; }
.vsl-embed .player-actions { pointer-events: auto; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.vsl-embed .player-icon-button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fafafa;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .16s ease, color .16s ease;
}
.vsl-embed .player-icon-button:hover, .vsl-embed .player-icon-button[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.vsl-embed .player-icon-button:active { background: rgba(255, 255, 255, .2); }
.vsl-embed .player-icon-button[data-play] svg { width: 18px; height: 18px; fill: currentColor; stroke-width: 1; }
.vsl-embed .player-icon-button:disabled { opacity: .4; cursor: default; }
.vsl-embed .player-spacer { flex: 1 1 auto; min-width: 0; }
.vsl-embed .player-volume-control { display: flex; flex: 0 0 auto; align-items: center; }
.vsl-embed .player-volume { appearance: none; -webkit-appearance: none; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.vsl-embed .player-volume { --volume: 100%; flex: 0 0 auto; width: 0; min-width: 0; height: 44px; opacity: 0; visibility: hidden; transition: width .16s ease, margin .16s ease, opacity .16s ease; }
.vsl-embed .player-volume-control:hover .player-volume,
.vsl-embed .player-volume-control:has(:focus-visible) .player-volume { width: 64px; margin-left: 8px; opacity: 1; visibility: visible; }
.vsl-embed .player-volume::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(to right, #fafafa 0 var(--volume), rgba(255, 255, 255, .25) var(--volume) 100%); }
.vsl-embed .player-volume::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(to right, #fafafa 0 var(--volume), rgba(255, 255, 255, .25) var(--volume) 100%); }
.vsl-embed .player-volume::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -2.5px; border: 0; border-radius: 50%; background: #fafafa; }
.vsl-embed .player-volume::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fafafa; }
.vsl-embed .player-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: var(--player-accent);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .28), 0 0 40px rgba(255, 77, 77, .16);
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vsl-embed .player-center-play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke-width: 1; }
.vsl-embed .player-center-play:hover { transform: scale(1.06); box-shadow: 0 8px 40px rgba(0, 0, 0, .3), 0 0 50px rgba(255, 77, 77, .3); }
.vsl-embed .player-center-play:active { transform: scale(.97); }
.vsl-embed .player-controls[data-menu-open="true"] .player-center-play { visibility: hidden; }
.vsl-embed .player-loading { position: absolute; top: 50%; left: 50%; display: none; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.vsl-embed .player-loading span { width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: vsl-player-spin .8s linear infinite; }
.vsl-embed .player-controls[data-buffering="true"][data-playing="true"] .player-loading { display: grid; }
@keyframes vsl-player-spin { to { transform: rotate(360deg); } }
.vsl-embed .player-settings {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 66px;
  width: min(272px, calc(100% - 32px));
  max-height: calc(100% - 82px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--player-line);
  border-radius: 14px;
  background: var(--player-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .24) transparent;
  pointer-events: auto;
}
.vsl-embed .player-settings button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #fafafa; font: inherit; font-weight: 500; text-align: left; cursor: pointer; touch-action: manipulation; transition: background .16s ease; }
.vsl-embed .player-settings button:hover { background: rgba(255, 255, 255, .07); }
.vsl-embed .player-settings button[aria-checked="true"] { background: rgba(255, 77, 77, .13); color: #fff; }
.vsl-embed .player-settings button span { margin-left: auto; color: rgba(255, 255, 255, .58); font-size: 12px; }
.vsl-embed .player-settings button svg { flex: 0 0 16px; width: 16px; height: 16px; color: rgba(255, 255, 255, .5); }
.vsl-embed .player-settings button[data-back] { margin-bottom: 5px; padding-bottom: 12px; border-bottom: 1px solid var(--player-line); border-radius: 0; color: rgba(255, 255, 255, .65); font-size: 12px; }
.vsl-embed .player-settings button[data-back] svg { color: inherit; }
.vsl-embed .player-settings button[aria-checked="true"]::after { content: ''; flex: 0 0 9px; width: 9px; height: 5px; margin-left: auto; border-left: 1.5px solid var(--player-accent); border-bottom: 1.5px solid var(--player-accent); transform: rotate(-45deg); }
.vsl-embed .player-settings [data-menu-view] > button:first-child { width: calc(100% - 44px); }
.vsl-embed .player-settings button.player-menu-close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.vsl-embed .player-settings button.player-menu-close svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .65); }
.vsl-embed .player-settings button:disabled { opacity: .4; cursor: default; }
.vsl-embed .player-controls :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vsl-embed:fullscreen, .vsl-embed:-webkit-full-screen { max-width: none; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; }
.vsl-embed video { object-fit: contain; }
@media (max-width: 640px) {
  .vsl-embed .player-toolbar { padding: 32px 10px 4px; }
  .vsl-embed .player-actions { gap: 2px; }
  .vsl-embed .player-volume { display: none; }
  .vsl-embed .player-center-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .vsl-embed .player-center-play svg { width: 20px; height: 20px; }
  .vsl-embed .player-settings { right: 10px; bottom: 10px; width: min(272px, calc(100% - 20px)); max-height: calc(100% - 20px); padding: 5px; border-radius: 12px; }
  .vsl-embed .player-settings [data-menu-view="quality"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .vsl-embed .player-settings button[data-back] { grid-column: 1 / -1; margin-bottom: 1px; }
  .vsl-embed .player-settings button[data-quality] { padding: 8px 10px; }
}
@media (max-width: 360px) { .vsl-embed .player-actions { gap: 0; } }
@media (prefers-reduced-motion: reduce) {
  .vsl-embed .player-controls *, .vsl-embed .player-controls *::before, .vsl-embed .player-controls *::after { transition: none !important; animation: none !important; }
}
