:root {
  color-scheme: dark;
  --page-bg: #15191b;
  --panel-bg: #202628;
  --panel-border: #394346;
  --text-primary: #f0f3f1;
  --text-muted: #a4b0ad;
  --accent: #78d6aa;
  --lyrics-size: 30px;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: Arial, sans-serif;
}

.app-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.top-bar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--panel-border);
}

.song-details h1,
.song-details p {
  margin: 0;
}

.song-details h1 {
  font-size: 24px;
}

.song-details p {
  margin-top: 6px;
  color: var(--text-muted);
}

.font-controls {
  display: flex;
  gap: 8px;
}

.font-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel-bg);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}

.font-controls button:hover:not(:disabled),
.font-controls button:focus-visible {
  border-color: var(--accent);
}

.font-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.lyrics-layout {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0;
}

.lyrics-panel {
  min-height: 360px;
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: var(--panel-bg);
}

.lyrics-panel h2 {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.lyrics-text {
  font-size: var(--lyrics-size);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 28px, 520px);
  }

  .lyrics-layout {
    grid-template-columns: 1fr;
  }

  .lyrics-panel {
    min-height: 240px;
  }
}
