:root {
  --oled-black: #000000;
  --dark-surface: #121212;
  --dark-elevated: #242424;
  --primary: #BB86FC;
  --primary-variant: #9965DA;
  --on-primary: #E1E1E1;
  --text-primary: #E1E1E1;
  --text-secondary: #A0A0A0;
  --outline: #4A4A4A;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
  background: var(--oled-black);
  color: var(--text-primary);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 600px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.step {
  display: none;
  width: 100%;
  text-align: center;
}

.step.active {
  display: block;
}

h2 {
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 300;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

input, button {
  width: 100%;
  padding: 16px;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input {
  background: var(--dark-surface);
  border: 1px solid var(--outline);
  color: var(--text-primary);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

button {
  background: var(--oled-black);
  color: var(--primary);
  border: 1px solid var(--outline);
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
}

button:hover {
  background: var(--dark-surface);
}

button:active {
  transform: scale(0.98);
  background: var(--dark-elevated);
}

.notice {
  background: var(--dark-elevated);
  padding: 16px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 16px;
  border-left: 4px solid var(--primary);
}

#youtubePlayer {
  margin: 24px auto;
}

.transcript-container {
  background: var(--dark-surface);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--outline);
  width: 100%;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline);
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Roboto Mono', monospace, 'Roboto', sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 0.875rem;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
}

/* Toast Notification Styles */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.toast {
  background: var(--dark-elevated);
  color: var(--text-primary);
  border: 1px solid var(--outline);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 300px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 600px) {
  #youtubePlayer {
    width: 100%;
    height: auto;
  }
}