:root {
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-text: #1c1c19;
  --color-muted: #5c5c58;
  --color-border: #e4e2dc;
  --color-accent: #ea580c;
  --color-accent-soft: #fff7ed;
  --shadow-sm: 0 1px 2px rgb(28 28 25 / 6%);
  --shadow-md: 0 8px 24px rgb(28 28 25 / 8%);
  --radius: 12px;
  --max-width: 28rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  padding: 1.5rem 1.25rem 1rem;
  text-align: center;
}

.site-logo-link {
  display: inline-block;
  text-decoration: none;
}

.site-logo {
  margin: 0 auto;
  max-width: min(16rem, 72vw);
  width: 100%;
}

.site-main {
  flex: 1;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.25rem 2rem;
  width: 100%;
}

.player-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.player-icon {
  align-items: center;
  background: var(--color-accent-soft);
  border-radius: 999px;
  display: inline-flex;
  height: 5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 5rem;
}

.player-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.player-subtitle {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.player-status {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  min-height: 1.25rem;
}

.player-status.is-error {
  color: #dc2626;
}

.player-controls {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.play-button {
  align-items: center;
  background: var(--color-accent);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 4.5rem;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  width: 4.5rem;
}

.play-button:hover {
  background: #c2410c;
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.play-button:active {
  transform: scale(0.98);
}

.play-button svg {
  height: 2rem;
  width: 2rem;
}

.volume-control {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  gap: 0.75rem;
  width: min(100%, 14rem);
}

.volume-control svg {
  flex-shrink: 0;
  height: 1.25rem;
  width: 1.25rem;
}

.volume-control input {
  accent-color: var(--color-accent);
  flex: 1;
}

.stream-link {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  text-align: left;
}

.stream-link-label {
  color: var(--color-muted);
  font-size: 0.8125rem;
  margin: 0 0 0.5rem;
}

.stream-link-row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.stream-link-row code {
  background: var(--color-accent-soft);
  border-radius: 8px;
  color: var(--color-text);
  flex: 1;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.75rem;
  overflow: hidden;
  padding: 0.625rem 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.625rem 0.875rem;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.copy-button:hover {
  background: var(--color-accent-soft);
  border-color: rgb(234 88 12 / 35%);
}

.site-links {
  margin: 1.25rem 0 0;
  text-align: center;
}

.site-footer {
  color: var(--color-muted);
  font-size: 0.8125rem;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.site-footer p {
  margin: 0;
}
