/* src/player/player-theme.css
   Inter / dark / Tailwind-style chrome for the H5 player. */
:root {
  --h5p-bg: #0a0a0a;
  --h5p-fg: #f5f5f5;
  --h5p-accent: #f43f5e;
  --h5p-overlay: rgba(0, 0, 0, 0.6);
}

.h5p-player {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: var(--h5p-bg);
  color: var(--h5p-fg);
  font-family: "Inter", system-ui, -apple-system, "PingFang SC", sans-serif;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.h5p-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.h5p-caption {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 15px;
  line-height: 1.4;
  border-radius: 6px;
  pointer-events: none;
  max-width: 88%;
  text-align: center;
}

.h5p-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  transition: opacity 200ms ease;
}

.h5p-controls.hidden { opacity: 0; pointer-events: none; }

.h5p-btn {
  background: none;
  border: none;
  color: var(--h5p-fg);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.h5p-time { font-variant-numeric: tabular-nums; font-size: 12px; opacity: 0.85; min-width: 38px; text-align: center; }

.h5p-scrubber {
  flex: 1;
  accent-color: var(--h5p-accent);
}

.h5p-subs {
  background: rgba(0, 0, 0, 0.5);
  color: var(--h5p-fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 4px;
}

.h5p-branch {
  position: absolute;
  inset: 0;
  background: var(--h5p-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.h5p-branch.hidden { display: none; }

.h5p-branch-prompt {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.h5p-branch-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }

.h5p-branch-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--h5p-fg);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: background 150ms ease;
}

.h5p-branch-btn:hover { background: var(--h5p-accent); border-color: var(--h5p-accent); }

.h5p-empty { padding: 24px; text-align: center; opacity: 0.7; }