:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a1a;
  color: #f0f0f0;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
}

body {
  justify-content: flex-start;
  align-items: center;
  padding: 12px;
  padding-top: 20px;
}

.player {
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 0;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.5px;
  font-weight: 500;
  opacity: 0.9;
}

.header a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.cover-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  place-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.fallback {
  font-size: 80px;
  line-height: 1;
  opacity: 0.6;
}

.title {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  overflow-wrap: break-word;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #e8e8e8;
}

.play-button {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #b0b0b0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.play-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.play-button:focus-visible {
  color: #ffffff;
  outline: 0;
}

.play-button span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #555;
  padding: 8px 12px;
  background: rgba(26, 26, 26, 0.95);
  border-top: 1px solid #2a2a2a;
}

body {
  padding-bottom: 32px;
}

@media (max-width: 480px) {
  .header {
    font-size: 10px;
  }

  .cover-wrap {
    max-width: calc(100vw - 24px);
  }

  .title {
    font-size: 12px;
    min-height: 44px;
  }

  .fallback {
    font-size: 70px;
  }
}

@media (max-width: 360px) {
  .cover-wrap {
    max-width: calc(100vw - 20px);
  }

  .title {
    font-size: 11px;
  }

  .fallback {
    font-size: 60px;
  }
}

@media (max-height: 600px) {
  .player {
    gap: 12px;
  }

  .cover-wrap {
    max-width: 200px;
  }

  .title {
    min-height: 40px;
    font-size: 12px;
  }
}
