/**
 * WatchGate player styles.
 *
 * Minimal, responsive, no theme dependencies.
 * Playback chrome comes from native HTML5 controls.
 */

.wg-player {
  max-width: 800px;
  margin: 1.5em auto;
}

.wg-player video {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #000;
}

.wg-status {
  min-height: 1.5em;
  text-align: center;
  color: #666;
  font-size: 0.9em;
  padding: 0.25em 0;
}

.wg-locked-message {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 0.85em 0.75em 1em;
  background: #fffcf3;
  border: 1px solid #e8d9a8;
  border-radius: 10px;
  color: #1a1a1a;
  margin-top: 0.5em;
}

/* Author display:flex beats the UA [hidden] { display: none } rule. */
.wg-locked-message[hidden] {
  display: none;
}

.wg-locked-message-text {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  text-align: left;
  line-height: 1.4;
}

.wg-restart {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c4b07a;
  border-radius: 10px;
  background: #fff;
  color: #6b5a2a;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.wg-restart-icon {
  display: block;
}

.wg-restart:hover,
.wg-restart:focus {
  background: #fff8e6;
  border-color: #a89255;
  color: #53441c;
}

.wg-restart:focus-visible {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

.wg-unlocked-message {
  padding: 1em;
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: 4px;
  color: #155724;
  text-align: center;
  margin-top: 0.5em;
}

.wg-player-error {
  padding: 1em;
  background: #f8d7da;
  border: 1px solid #dc3545;
  border-radius: 4px;
  color: #721c24;
  text-align: center;
  margin: 1.5em 0;
}

/* Collapsed "Watch again" toggle shown after unlock. */
.wg-watch-again {
  margin: 1.5em 0;
}

.wg-watch-again summary {
  cursor: pointer;
  font-weight: 600;
  color: #555;
  padding: 0.5em 0;
}

.wg-watch-again summary:hover {
  color: #333;
}
