/* ============================================
   ENOFLOAT MINI HUD STRIP  (TOP-LEFT CHIP)
   ============================================ */

.enofloat-mini {
  position: fixed;
  top: 16px;
  left: 24px;
  z-index: 9999;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 13px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.enofloat-mini.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.enofloat-mini__chip {
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

/* State + status dot */

.enofloat-mini__state {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: #e5e7eb;
  opacity: 0.85;
}

.enofloat-mini__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 4px rgba(34, 197, 94, 0.85);
}

/* Dot animations */

.enofloat-mini__dot.is-playing {
  animation: enofloat-dot-pulse 1.6s ease-out infinite;
}

.enofloat-mini__dot.is-buffering {
  background: #facc15;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.9);
  animation: enofloat-dot-buffer 0.7s linear infinite;
}

@keyframes enofloat-dot-pulse {
  0%   { transform: scale(1);   box-shadow: 0 0 4px rgba(34,197,94,0.8); }
  50%  { transform: scale(1.35); box-shadow: 0 0 10px rgba(34,197,94,0.5); }
  100% { transform: scale(1);   box-shadow: 0 0 4px rgba(34,197,94,0.8); }
}

@keyframes enofloat-dot-buffer {
  0%   { transform: translateX(0);     opacity: 0.9; }
  50%  { transform: translateX(2px);   opacity: 0.7; }
  100% { transform: translateX(0);     opacity: 0.9; }
}

/* Title + meta */

.enofloat-mini__title-wrap {
  max-width: 260px;
  min-width: 0;
  overflow: hidden;
}

.enofloat-mini__title {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Long-title marquee */

.enofloat-mini__title.is-marquee {
  display: inline-block;
  animation: enofloat-marquee 6s linear infinite;
}

@keyframes enofloat-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--enofloat-marquee-distance, -40%)); }
}

.enofloat-mini__meta {
  color: #d1d5db;
  opacity: 0.8;
  white-space: nowrap;
  font-size: 12px;
}

/* VJ / Original tag */

.enofloat-mini__tag {
  white-space: nowrap;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.92);
}

/* Translated / VJ variants */

.enofloat-mini__tag--vj-junior {
  border-color: rgba(244,114,182,0.9);
  color: #f9a8d4;
}

.enofloat-mini__tag--vj-tom {
  border-color: rgba(251,146,60,0.95);
  color: #fed7aa;
}

.enofloat-mini__tag--vj-emmy { 
  border-color: #38bdf8;
  color: #bae6fd; 
}

/* Original (non-translated) */

.enofloat-mini__tag--original {
  border-color: rgba(56,189,248,0.9);
  color: #7dd3fc;
}

/* Default VJ chip style (fallback) */

.enofloat-mini__tag[class*="enofloat-mini__tag--vj"] {
  border-color: rgba(244, 63, 94, 0.85);
  color: #fecaca;
}

/* Responsive trims */

@media (max-width: 900px) {
  .enofloat-mini__meta {
    display: none;
  }
}

@media (max-width: 640px) {
  .enofloat-mini {
    left: 12px;
    right: 12px;
    padding-inline: 12px;
  }
  .enofloat-mini__title-wrap {
    max-width: 180px;
  }
}

/* ============================================
   ENOFLOAT MINI-MODE UI RULES
   ============================================ */

/* Hide meta chips + TV mode only in mini-mode */
.enofloat-mini-mode .enoplayer-meta-badges,
.enofloat-mini-mode .enoplayer-tv-toggle {
  display: none !important;
}

/* Hide extra controls in mini: recap / CC / settings / next
   (you can re-enable CC / settings if you want later) */
.enofloat-mini-mode .control-btn--recap,
.enofloat-mini-mode .control-btn--next,
.enofloat-mini-mode .btn-recap {
  display: none !important;
}

/* ============================================
   ENOFLOAT FLOATING WINDOW (PiP STYLE)
   ============================================ */

.enoplayer-container.enofloat-active {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(420px, 90vw);
  max-height: 45vh;
  z-index: 9999;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85);
  transform-origin: bottom right;
}

/* inner player fill */
.enoplayer-container.enofloat-active .enoplayer {
  height: 100%;
}

.enoplayer-container.enofloat-active video.enoplayer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Backdrop behind floating window */

.enofloat-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.enofloat-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mini-mode indicator button (base) */

.enoplayer-controls .pip-btn.is-on {
  background-color: rgba(255,255,255,0.18);
}


/* ============================================
   ENOFLOAT HEADER (OPTIONAL DEMO / UI ONLY)
   ============================================ */

.enofloat-header {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.55);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

.enofloat-header.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ENOFLOAT MINI – CONTROLS STRIP OVERRIDES
   Only active when .enofloat-mini-mode is on
   ============================================ */

/* bar pinned in float card */
.enofloat-mini-mode .controls-bottom {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* left = left cluster, right = auto */
  background: none;
  box-shadow: none;
  border-radius: 0;
  z-index: 120;
  overflow: visible !important;
}

/* Left side = play / volume / time */
.enofloat-mini-mode .controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* hide center cluster in mini */
.enofloat-mini-mode .controls-center {
  display: none !important;
}

/* Right cluster (CC, settings, PiP, arrow) */
.enofloat-mini-mode .controls-right {
  margin-left: auto;              /* pushes to far right */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: padding 0.25s ease-out,
              background 0.25s ease-out,
              box-shadow 0.25s ease-out;
}

/* Closed state = just one circle around the arrow */
.enofloat-mini-mode:not(.enofloat-mini-open) .controls-right {
  padding: 3px;                   /* snug circle */
}

/* Open state = pill wide enough for all buttons */
.enofloat-mini-mode.enofloat-mini-open .controls-right {
  padding: 4px 10px;
  background: linear-gradient(
    135deg,
    rgb(59 59 60),
    rgb(0 0 0)
  );
  border: 1px solid rgb(45 100 35 / 53%);
  box-shadow: 0 16px 40px rgb(0 0 0 / 83%);
}

/* ========================================
   MINI-MODE — CUSTOM RING COLOR
   ======================================== */

/* The ring layer */
.enofloat-mini-mode .control-btn::before {
  content: "";
  position: absolute;
  inset: -2px; /* make ring visible outside */
  border-radius: inherit;
  border: 2px solid transparent;   /* base ring */
  pointer-events: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover ring color (your chosen color) */
.enofloat-mini-mode .control-btn:hover::before {
  border-color: #0cb5a2cf;    /* your ring color */
  box-shadow: 0 0 8px #28d9d029;
}

/* FORCE mini-mode hover color, override base EnoPlayer hover */
.enofloat-mini-mode .controls-left .control-btn:hover,
.enofloat-mini-mode .controls-right .control-btn:hover,
.enofloat-mini-mode .controls-center .control-btn:hover {
  background: linear-gradient(135deg, #ff8e00 0%, #ffcc00 100%) !important;  
  transform: translateY(-1px) scale(1.03) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.9);
}

/* Time labels */
.enofloat-mini-mode .current-time,
.enofloat-mini-mode .duration {
  font-size: 11px;
  opacity: 0.9;
}

/* ===========================
   BUTTON SIZES (right side)
   =========================== */

/* mini-mode button sizing */
.enofloat-mini-mode .control-btn {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f9f9f9f7, #22c55e, #187be9);
  box-shadow: none;
  flex-shrink: 0;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.enofloat-mini-mode .control-btn .icon,
.enofloat-mini-mode .control-btn svg {
  width: 15px;
  height: 15px;
  fill: #000;
}

/* CLOSED: hide extra buttons completely, so pill shrinks to arrow size */
.enofloat-mini-mode:not(.enofloat-mini-open) .captions-btn,
.enofloat-mini-mode:not(.enofloat-mini-open) .settings-btn,
.enofloat-mini-mode:not(.enofloat-mini-open) .pip-btn {
  display: none !important;
}

/* OPEN: show them */
.enofloat-mini-mode.enofloat-mini-open .captions-btn,
.enofloat-mini-mode.enofloat-mini-open .settings-btn,
.enofloat-mini-mode.enofloat-mini-open .pip-btn {
  display: flex !important;
}

/* Extra buttons = before arrow */
.enofloat-mini-mode .captions-btn,
.enofloat-mini-mode .settings-btn,
.enofloat-mini-mode .pip-btn {
  order: 0;
}


/* --------------------------------------------
   ARROW TOGGLE + REVEAL EXTRAS
   -------------------------------------------- */

/* hide mini-toggle outside of mini-mode */
.mini-toggle {
  display: none;
}

/* Arrow only in mini-mode, always last in cluster */
.enofloat-mini-mode .mini-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: 10; /* last */
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

/* Arrow icon styling */
.enofloat-mini-mode .icon-mini-toggle {
  display: inline-block;
  transform-origin: center;
  width: 14px;
  height: 14px;
  transform: rotate(0deg); /* closed state (">") */
  transition: transform 0.25s ease-out;
}

/* When tray is open, rotate the arrow ("<") */
.enofloat-mini-mode.enofloat-mini-open .icon-mini-toggle {
  transform: rotate(180deg);
}


/* Gentle pulse animation for the arrow when closed */
.enofloat-mini-mode:not(.enofloat-mini-open) .mini-toggle {
  animation: enofloat-toggle-pulse 2.8s ease-out infinite;
}

@keyframes enofloat-toggle-pulse {
  0%, 70%, 100% {
    transform: translateY(0) scale(1);
  }
  80% {
    transform: translateY(-1px) scale(1.06);
  }
}

/* PiP active state glow */
.enofloat-mini-mode .pip-btn.is-on {
  background: rgba(248, 250, 252, 0.16);
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.25),
    0 10px 26px rgba(0, 0, 0, 0.9);
}

/* Disable fullscreen in EnoFloat mini-mode */
.enofloat-mini-mode .fullscreen-btn {
  display: none !important;
  pointer-events: none !important;
}

/* =========================
   ENOFLOAT PROGRESS BAR (mini-mode v2)
   - Slim glass rail
   - Enoflix gradient play line
   - Soft glow + round thumb
   ========================= */

.enofloat-mini-mode .enoplayer-progress{
  position:absolute;
  left:16px; right:16px;
  bottom:58px;
  height:16px;
  padding:0;
  z-index:90;
  display:block !important;

  /* mini sizing only */
  --eno-track-h-idle:4px;
  --eno-track-h-hover:6px;
  --eno-thumb:12px;
  --eno-hit-h: 6px;

  --eno-progress-played:#05ff9e;
    /* Gradient accents for played bar */

  --eno-played-g1: #005eff;
  --eno-played-g2: #3b82f6;
  --eno-played-g3: #05da65;

  --eno-progress-track:rgba(255,255,255,.14);
  --eno-progress-buffer:rgba(255,255,255,.32);
  --eno-progress-accent:#00ff14;

  /* sizing */
  --eno-radius:999px;

  /* thumb */
  --eno-thumb-shadow:0 1px 2px rgba(0,0,0,.35);
  --eno-thumb-ring:0 0 0 4px rgba(255,255,255,.25);

  /* glow baselines (used by box-shadow rules below) */
  --eno-edge-paused:.35;
  --eno-glow-paused:4px;
  --eno-glowA-paused:.10;

  --eno-edge-playing:.85;
  --eno-glow-playing:8px;
  --eno-glowA-playing:.22;

  --eno-edge-hover:.95;
  --eno-glow-hover:10px;
  --eno-glowA-hover:.25;

  --eno-edge-scrub:1;
  --eno-glow-scrub:12px;
  --eno-glowA-scrub:.30;

}

/* keep holder clean (no repainting rail from old CSS) */
.enofloat-mini-mode .enoplayer-progress .progress-bar{
  position:relative;
  height:var(--eno-hit-h);
  border-radius:999px;
  overflow:visible;
  background:transparent !important;

  box-shadow:
    0 0 0 1px rgba(15,23,42,.95),
    0 6px 18px rgba(0,0,0,.80);

  transform-origin:center;
  transition:transform .18s ease, box-shadow .18s ease;
}

/* hover bolder */
@media (hover:hover) and (pointer:fine){
  .enofloat-mini-mode .enoplayer-progress:hover .progress-bar{
    /*transform:scaleY(1.16);*/
    box-shadow:
      0 0 0 1px rgba(15,23,42,1),
      0 10px 26px rgba(0,0,0,.90);
  }
}

/* base rail (unplayed) + subtle top gloss (SINGLE ::before) */
.enofloat-mini-mode .enoplayer-progress .progress-bar::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:var(--eno-track-h);
  transform:translateY(-50%);
  border-radius:inherit;
  background:var(--eno-progress-track);
  pointer-events:none;
  z-index:0;

  /* tiny gloss */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

/* buffer segment (same clip-path logic as main) */
.enofloat-mini-mode .enoplayer-progress .progress-bar .progress-buffer{
  position:absolute;
  left:0; right:0;
  top:50%;
  height:var(--eno-track-h);
  transform:translateY(-50%);
  border-radius:inherit;
  z-index:1;
  pointer-events:none;

  background:linear-gradient(to right, rgba(255,255,255,.34), rgba(255,255,255,.18));
  filter:brightness(.95);

  clip-path: inset(
    0
    calc(100% - var(--buffer, 0%))
    0
    var(--value, 0%)
    round 999px
  );
}

/* played segment (same look) */
.enofloat-mini-mode .enoplayer-progress .progress-bar::after{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  height:var(--eno-track-h);
  transform:translateY(-50%);
  border-radius:inherit;
  width:var(--value,0%);
  min-width:2px;
  z-index:2;
  pointer-events:none;

  background: linear-gradient(
    90deg,
    var(--eno-played-g1) 0%,
    var(--eno-played-g2) 30%,
    var(--eno-played-g3) 100%
  );
}

/* range overlay: ONLY hitbox + thumb (do not color/unset it) */
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb{
  -webkit-appearance:none;
  appearance:none;
  position:absolute;
  inset:0;
  width:100%;
  height:var(--eno-hit-h);
  margin:0;
  padding:0;
  background:transparent;
  outline:none;
  border:0;
  z-index:5;
  cursor:pointer;
  touch-action:pan-x;

  /* IMPORTANT: do not unset color here */
  color: inherit;
}

/* hide native track */
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb::-webkit-slider-runnable-track{
  height:var(--eno-hit-h);
  background:transparent;
}
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb::-moz-range-track{
  height:var(--eno-hit-h);
  background:transparent;
}
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb::-moz-range-progress{
  height:var(--eno-hit-h);
  background:transparent;
}

/* mini thumb */
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:12px; height:12px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 20%, #ffffff, #ffa700);
  box-shadow:
    0 0 0 2px rgba(15,23,42,.90),
    0 0 14px rgba(255,167,0,.55);
  margin-top:calc((var(--eno-hit-h) - 12px) / 2);
}
.enofloat-mini-mode .enoplayer-progress .progress-bar input.progress-thumb::-moz-range-thumb{
  width:12px; height:12px;
  border:0;
  border-radius:999px;
  background:radial-gradient(circle at 30% 20%, #ffffff, #ffa700);
  box-shadow:
    0 0 0 2px rgba(15,23,42,.90),
    0 0 14px rgba(255,167,0,.55);
}

/* remove legacy */
.enofloat-mini-mode .enoplayer-progress .progress-played,
.enofloat-mini-mode .enoplayer-progress .progress-hover{ display:none !important; }

/* =========================
   ENOFLOAT MINI — SEEK PREVIEW (Option B)
   ========================= */

.enofloat-mini-mode .enoplayer-seek-thumb{
  position:absolute;
  left: var(--seek-x, 50%);
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  z-index: 140;
  pointer-events:none;
}

/* Make the preview image crisp */
.enofloat-mini-mode .enoplayer-seek-thumb-img,
.enofloat-mini-mode .enoplayer-seek-thumb-img img{
  filter: none !important;
  transform: translateZ(0);          /* helps Safari/GPU */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Make thumb relative so we can place time inside */
.enofloat-mini-mode .enoplayer-seek-thumb-img{
  position:relative;
  width: 128px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background:#0b1220;            /* fallback while loading */
  border:1px solid rgba(148,163,184,.22);
  opacity: 1 !important;
  box-shadow:
    0 16px 32px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* Keep image crisp */
.enofloat-mini-mode .enoplayer-seek-thumb-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  image-rendering: auto;
}

/* Time becomes an overlay chip */
.enofloat-mini-mode .enoplayer-seek-thumb-time{
  position:absolute;
  left: 50%;
  bottom: 8px;
  transform:translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  font-size:.76rem;
  font-weight: 700;
  color:#fff;
  background: rgba(2,6,23,.62);
    /* premium glass */
  background: linear-gradient(
    135deg,
    rgba(2,6,23,0.82),
    rgba(2,6,23,0.55)
  );
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18);
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);

  /* Safari + modern blur */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* No blur support (older browsers / privacy modes) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .enofloat-mini-mode .enoplayer-seek-thumb-time{
    background: rgba(2,6,23,0.90);
  }
}

/* =========================
   Edge protection (near screen sides)
   ========================= */
.enofloat-mini-mode .enoplayer-seek-thumb{
  max-width: calc(100vw - 24px);
}

/* While scrubbing, lift top actions a bit so preview has room */
.enofloat-mini-mode.is-scrubbing .enoplayer-top-actions{
  transform: translateY(-8px);
}


/* =======================================
   ENOPLAYER CONTEXT MENU (right-click)
   ======================================= */

.enoplayer-context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 220px;
  padding: 6px 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.97);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(18px);
  display: none;              /* hidden by default */
  color: #e5e7eb;
  font-size: 13px;
}

.enoplayer-context-menu.is-visible {
  display: block;
}

/* items */

.enoplayer-context-menu .ctx-item {
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.enoplayer-context-menu .ctx-item:hover {
  background: #0072f9; /* change if you want a different accent */
}

/* tiny check mark (not used yet, but fine to keep) */

.enoplayer-context-menu .ctx-check {
  width: 16px;
  text-align: center;
  opacity: 0;
  font-size: 13px;
}

.enoplayer-context-menu .ctx-check.is-on {
  opacity: 1;
}

/* separator */

.enoplayer-context-menu .ctx-separator {
  height: 1px;
  margin: 4px 0;
  border: none;
  background: rgba(148, 163, 184, 0.25);
}


.enoplayer-context-menu .ctx-label {
  padding: 6px 14px 4px;
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}


/* =======================================
   ENOPLAYER – KEYBOARD SHORTCUTS OVERLAY
   ======================================= */

.enoplayer-shortcuts-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 99997;
}

.enoplayer-shortcuts-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.enoplayer-shortcuts-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.enoplayer-shortcuts-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.enoplayer-shortcuts-inner {
  width: min(780px, 90vw);
  max-height: 80vh;
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617ee 100%);
  border-radius: 20px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  padding: 18px 22px 20px;
  color: #e5e7eb;
  font-size: 13px;
  overflow: hidden;
}

.enoplayer-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.enoplayer-shortcuts-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #a5b4fc; /* soft indigo */
}

.enoplayer-shortcuts-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
}

.enoplayer-shortcuts-close:hover {
  background: rgba(148, 163, 184, 0.16);
  color: #e5e7eb;
}

.enoplayer-shortcuts-body {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
  max-height: 64vh;
  overflow-y: auto;
}

.enoplayer-shortcuts-column {
  flex: 1 1 220px;
  min-width: 0;
}

.enoplayer-shortcuts-column h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.shortcut-row:last-child {
  border-bottom: none;
}

.shortcut-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.shortcut-label {
  margin-left: auto;
  color: #e5e7eb;
  font-size: 12px;
  white-space: nowrap;
}

/* Keycaps */
.shortcut-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: linear-gradient(145deg, #020617, #0b1120);
  box-shadow:
    0 1px 0 rgba(148, 163, 184, 0.4),
    inset 0 1px 0 rgba(15, 23, 42, 0.8);
  font-size: 11px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e5e7eb;
}

/* Small screens */
@media (max-width: 640px) {
  .enoplayer-shortcuts-inner {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .shortcut-label {
    font-size: 11px;
  }
}
























