.ecotvsubs-gofile-player {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #272b29;
  border-radius: 6px;
  background: #000;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.ecotvsubs-gofile-player:fullscreen,
.ecotvsubs-gofile-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
  border: none;
  border-radius: 0;
}

.ecotvsubs-gofile-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ecotvsubs-gofile-player canvas {
  pointer-events: none !important;
  z-index: 2 !important;
  background: transparent !important;
}

.ecotvsubs-gfp-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.ecotvsubs-gfp-controls[hidden] { display: none !important; }
.ecotvsubs-gfp-controls.visible { opacity: 1; pointer-events: auto; }

.ecotvsubs-gfp-btn {
  flex: none;
  min-height: unset;
  padding: 4px 6px;
  border: none;
  border-radius: 3px;
  background: none;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.ecotvsubs-gfp-btn:hover { background: rgba(255,255,255,0.15); }

.ecotvsubs-gfp-btn.is-off {
  opacity: 0.45;
}

.ecotvsubs-gfp-subs {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 28px;
}

.ecotvsubs-gfp-seek {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.1s;
  margin: 0 2px;
}

.ecotvsubs-gfp-seek:hover { height: 5px; }

.ecotvsubs-gfp-seek-buf {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  pointer-events: none;
}

.ecotvsubs-gfp-seek-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
}

.ecotvsubs-gfp-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.1s;
  pointer-events: none;
}

.ecotvsubs-gfp-seek:hover .ecotvsubs-gfp-seek-thumb { transform: translate(-50%, -50%) scale(1); }

.ecotvsubs-gfp-time {
  flex: none;
  color: #ddd;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ecotvsubs-gfp-vol {
  width: 64px;
  height: 3px;
  flex: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  outline: none;
}

.ecotvsubs-gfp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.ecotvsubs-gfp-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.ecotvsubs-gfp-quality {
  flex: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.ecotvsubs-gfp-quality:hover { background: rgba(255, 255, 255, 0.25); }
.ecotvsubs-gfp-quality option { background: #141716; color: #fff; }

.ecotvsubs-gfp-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #aeb5b2;
  text-align: center;
  background: #050606;
  z-index: 20;
}

.ecotvsubs-gfp-status[hidden] { display: none !important; }
