:root {
  color-scheme: dark;
  --page: #090a0a;
  --surface: #181b19;
  --surface-raised: #202421;
  --text: #f7f8f7;
  --muted: #9ca6a0;
  --line: #343a36;
  --accent: #1ed760;
  --error: #ff8b82;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.login-shell {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.page-content {
  width: min(100%, 440px);
  transform: translateY(-18px);
}

.page-title {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.site-name {
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.site-context {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 2px;
}

.site-context::before,
.site-context::after {
  content: "";
  width: 34px;
  height: 1px;
  background: #4b554f;
}

.player-card {
  width: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.track {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
}

.cover-wrap {
  position: relative;
  width: 84px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #dad8d0;
}

.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.playing-indicator {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border-radius: 4px;
  background: rgba(9, 10, 10, 0.82);
}

.playing-indicator i {
  width: 2px;
  height: 4px;
  background: var(--accent);
  animation: equalizer 0.75s ease-in-out infinite alternate;
}

.playing-indicator i:nth-child(2) { height: 10px; animation-delay: -0.35s; }
.playing-indicator i:nth-child(3) { height: 7px; animation-delay: -0.15s; }
.player-card.is-paused .playing-indicator i { animation-play-state: paused; }

@keyframes equalizer {
  from { height: 3px; }
  to { height: 11px; }
}

.track-copy { min-width: 0; }

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.track-copy h1 {
  overflow: hidden;
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-button, .play-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  color: var(--text);
}

.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  font-size: 24px;
}

.icon-button:hover, .icon-button:focus-visible {
  background: var(--surface-raised);
  outline: none;
}

.favorite { color: var(--muted); font-size: 27px; }
.favorite.active { color: var(--accent); }
.timeline { margin-top: 22px; }

#trackProgress {
  --progress: 0%;
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#trackProgress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--progress), #515853 var(--progress));
}

#trackProgress::-moz-range-track { height: 4px; border-radius: 2px; background: #515853; }
#trackProgress::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }

#trackProgress::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#trackProgress::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.play-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--text);
  color: #111312;
  font-size: 18px;
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease;
}

.play-button:hover, .play-button:focus-visible {
  transform: scale(1.05);
  background: var(--accent);
  outline: none;
}

.play-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.youtube-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.login-panel {
  width: 100%;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.login-panel h2 {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.login-row input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #48504b;
  border-radius: 6px;
  outline: none;
  background: #0d0f0e;
  color: var(--text);
  font-size: 16px;
}

.login-row input::placeholder { color: var(--muted); }
.login-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.13);
}

.login-submit {
  min-width: 92px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: var(--accent);
  color: #071109;
  font-weight: 800;
}

.login-submit:hover { background: #35e374; }
.login-submit:disabled { cursor: wait; opacity: 0.65; }

#erro {
  min-height: 17px;
  margin: 8px 0 -4px;
  color: var(--error);
  font-size: 13px;
}

@media (max-width: 520px) {
  .login-shell { padding: 14px; }
  .page-content { transform: none; }
  .page-title { margin-bottom: 20px; }
  .site-name { font-size: 38px; }
  .player-card { padding: 20px 16px; }
  .login-panel { padding: 16px; }
  .login-row { grid-template-columns: 1fr; }
  .login-submit { width: 100%; }
  .track { grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 12px; }
  .cover-wrap { width: 72px; }
  .track-copy h1 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
