:root {
  color-scheme: dark;
  --bg: #121212;
  --card: #1e1e1e;
  --accent: #e5a00d;
  --text: #f1f1f1;
  --muted: #a0a0a0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

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

h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

.controls {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

select,
button {
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: var(--card);
  color: var(--text);
}

button {
  background: var(--accent);
  color: #111;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.result {
  display: flex;
  gap: 1.5rem;
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.poster {
  width: 160px;
  border-radius: 8px;
  flex-shrink: 0;
}

.details h2 {
  margin-top: 0;
}

.details p {
  color: var(--muted);
}

.play-button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.play-button:hover {
  opacity: 0.9;
}

.error {
  color: #ff6b6b;
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .result {
    flex-direction: column;
  }

  .poster {
    width: 100%;
    max-width: 220px;
  }
}
