.af-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
#afPlayer { width: 100%; aspect-ratio: 16/9; background: #000; }
.af-player-wrap .jw-controls,
.af-player-wrap .jw-controlbar { display: none !important; }

.af-controlbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
  padding: 22px 10px 8px;
  opacity: 1;
  transition: opacity .2s ease;
}
.af-player-wrap:not(:hover) .af-controlbar.af-idle { opacity: 0; }

.af-progress {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,.25);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 8px;
}
.af-progress-buffer { position: absolute; left:0; top:0; height:100%; background: rgba(255,255,255,.35); border-radius: 3px; width: 0%; }
.af-progress-played { position: absolute; left:0; top:0; height:100%; background: #e50914; border-radius: 3px; width: 0%; }
.af-progress-handle {
  position: absolute; top: 50%; left: 0%;
  width: 13px; height: 13px; margin-left: -6px; margin-top: -6px;
  background: #e50914; border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,.6);
}
.af-progress-hover {
  position: absolute; bottom: 14px; transform: translateX(-50%);
  background: rgba(0,0,0,.85); color: #fff; font-size: 11px;
  padding: 2px 6px; border-radius: 3px; display: none; pointer-events: none;
  white-space: nowrap;
}

.af-controls-row { display: flex; align-items: center; gap: 4px; }
.af-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 15px; padding: 6px 8px; border-radius: 4px; line-height: 1;
}
.af-btn:hover { background: rgba(255,255,255,.12); }

.af-volume { display: flex; align-items: center; gap: 4px; }
.af-volume input[type="range"] { width: 70px; accent-color: #e50914; cursor: pointer; }

.af-time { color: #ddd; font-size: 12px; margin: 0 6px; white-space: nowrap; }
.af-title-inline { color: #999; font-size: 12px; margin-left: 8px; display: none; }
@media (min-width: 720px) { .af-title-inline { display: inline; } }
.af-spacer { flex: 1; }

.af-menu { position: relative; }
.af-menu-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.af-menu-list {
  position: absolute; bottom: 38px; right: 0;
  background: rgba(20,20,20,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; min-width: 130px; padding: 4px;
  display: none; flex-direction: column; max-height: 220px; overflow-y: auto;
  z-index: 5;
}
.af-menu:hover .af-menu-list,
.af-menu:focus-within .af-menu-list { display: flex; }
.af-menu-list button {
  background: none; border: none; color: #eee; text-align: left;
  padding: 7px 10px; font-size: 12.5px; border-radius: 4px; cursor: pointer;
}
.af-menu-list button:hover { background: rgba(255,255,255,.1); }
.af-menu-list button.af-active { color: #e50914; font-weight: 600; }

.af-player-wrap.af-playing .af-controlbar { opacity: 0; }
.af-player-wrap.af-playing:hover .af-controlbar,
.af-player-wrap.af-playing .af-controlbar:focus-within { opacity: 1; }
