:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
}

button,
input {
  font: inherit;
}

.player-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 20px;
}

.player-shell {
  width: min(1200px, 100%);
  background: #111827;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.player-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.player-header-copy {
  min-width: 0;
}

.player-header h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.player-message,
.player-metadata,
.seek-helper,
.transcript-status,
.player-hint {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.player-message {
  color: #93c5fd;
}

.player-message.error {
  color: #fca5a5;
}

.player-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.source-switch,
.seek-switch {
  width: 100%;
  min-width: min(520px, 100%);
  padding: 12px 14px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #0b1220;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.control-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  font-weight: 700;
}

.source-status {
  color: #67e8f9;
  font-size: 12px;
}

.source-button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-button-list button,
.seek-actions button,
.seek-jump button {
  border: 1px solid #1b347a;
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.source-button-list button:hover,
.seek-actions button:hover,
.seek-jump button:hover {
  background: #2547a8;
  border-color: #2547a8;
}

.source-button-list button:active,
.seek-actions button:active,
.seek-jump button:active {
  transform: translateY(1px);
}

.source-button-list button.active {
  background: #0f4bd8;
  border-color: #0f4bd8;
}

.source-button-list button:disabled,
.seek-actions button:disabled,
.seek-jump button:disabled {
  background: #64748b;
  border-color: #64748b;
  color: #e2e8f0;
  cursor: not-allowed;
  transform: none;
}

.seek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.seek-jump {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.seek-jump input {
  width: 120px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.player-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-weight: 600;
  margin-left: auto;
}

.player-frame {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #475569;
  background: #020617;
}

.video-js {
  width: 100%;
  min-height: 620px;
}

.video-js .vjs-big-play-button {
  border-radius: 999px;
}

.transcript-panel {
  margin-top: 20px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #0b1220;
  padding: 16px;
}

.transcript-panel.is-hidden,
.transcript-open.is-hidden {
  display: none !important;
}

.transcript-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.transcript-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.transcript-open {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 700;
}

.transcript-open:hover {
  text-decoration: underline;
}

.transcript-body {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  min-height: 420px;
}

.transcript-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #ffffff;
}

.player-hint {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .player-header {
    flex-direction: column;
  }

  .player-tools {
    width: 100%;
    align-items: stretch;
  }

  .source-switch,
  .seek-switch {
    min-width: 0;
  }

  .player-time {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .player-page {
    padding: 18px 12px;
  }

  .player-shell {
    padding: 16px;
  }

  .seek-actions {
    align-items: stretch;
  }

  .seek-jump {
    width: 100%;
  }

  .seek-jump input {
    flex: 1;
    width: auto;
  }

  .video-js {
    min-height: 360px;
  }

  .transcript-panel-header {
    flex-direction: column;
  }
}
