.ytcp-container {
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.ytcp-player { width: 100%; height: 100%; }
#player, #player iframe { width: 100%; height: 100%; }

/* Big Play button */
.ytcp-bigplay {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 4;
  padding: 0;
  transition: transform .12s ease, opacity .25s ease;
}
.ytcp-bigplay svg { display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.ytcp-bigplay .ytcp-shape { fill: rgba(255, 0, 0, 0.95); }
.ytcp-bigplay:hover { transform: translate(-50%, -50%) scale(1.04); }
.ytcp-bigplay.hide { opacity: 0; pointer-events: none; }

/* Overlay to capture taps/clicks */
.ytcp-overlay { position: absolute; inset: 0; background: transparent; z-index: 2; pointer-events: auto; }

.ytcp-controls {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: grid; grid-template-columns: auto auto auto 1fr auto auto auto;
  align-items: center; gap: 8px; z-index: 3; opacity: 1; transition: opacity .3s ease;
  padding: 0 10px;
}

.ytcp-btn {
  background: rgba(255,255,255,0.15);
  color: #fff; border: none; border-radius: 999px;
  font-size: 18px; padding: 10px 12px; cursor: pointer;
  transition: background .25s ease, transform .08s ease; user-select: none;
}
.ytcp-btn:hover { background: rgba(255,255,255,0.3); }
.ytcp-btn:active { transform: scale(0.96); }

#seekBar { width: 100%; accent-color: #fff; cursor: pointer; height: 6px; }

.ytcp-time { color: #fff; font-size: 12px; opacity: .9; padding: 0 6px; white-space: nowrap; }

/* Fullscreen-style Mobile Settings */
.ytcp-menu {
  position: fixed; left: 50%; bottom: 10%; transform: translateX(-50%);
  background: rgba(15,15,15,0.98); color: #fff;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px;
  width: min(94vw, 380px); max-height: 70vh; overflow-y: auto;
  box-shadow: 0 18px 48px rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 10;
}

.ytcp-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ytcp-menu-title-lg { font-weight: 700; font-size: 16px; }
.ytcp-close { background: transparent; color: #fff; border: none; font-size: 18px; cursor: pointer; padding: 6px; }

.ytcp-menu-section + .ytcp-menu-section { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); }
.ytcp-menu-title { font-size: 13px; font-weight: 600; opacity: 0.85; margin-bottom: 8px; letter-spacing: .3px; }

.ytcp-menu-row { display: grid; grid-template-columns: repeat(4, minmax(60px, 1fr)); gap: 6px; }
.ytcp-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 6px; }

.ytcp-menu-item {
  background: rgba(255,255,255,0.14); color: #fff;
  border: none; border-radius: 10px; padding: 10px 8px; font-size: 14px;
  cursor: pointer; text-align: center; transition: background .2s ease, transform .05s ease;
}
.ytcp-menu-item:hover { background: rgba(255,255,255,0.22); }
.ytcp-menu-item.active { background: rgba(255,255,255,0.34); }
.ytcp-menu-item:active { transform: scale(0.98); }

.ytcp-hint { display: block; opacity: .7; margin-top: 6px; font-size: 11px; }

@media (max-width: 600px) {
  .ytcp-controls { gap: 6px; }
  .ytcp-btn { font-size: 16px; padding: 10px; }
  .ytcp-time { font-size: 11px; }
  .ytcp-menu-row { grid-template-columns: repeat(4, minmax(56px, 1fr)); }
  .ytcp-menu-grid { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
  .ytcp-menu-item { font-size: 13px; padding: 9px 6px; }
}
