/* baseline reset (auto-injected) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:root {
  --color-primary: #3B82F6;
  --color-accent: #FF0000;
  --color-bg: #000000;
  --color-surface: #FFFFFF;
  --color-text: #000000;
  --color-muted: #E4E4E7;
  --radius: 16px;
  --space: 20px;
}

html, body {
  background: var(--color-bg);
  min-height: 100%;
}

.hidden {
  display: none !important;
}

.body {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, Roboto, Helvetica, sans-serif;
  cursor: pointer;
  padding: var(--space);
  background: radial-gradient(ellipse at center, #1c1c1f 0%, #000000 75%);
  color: var(--color-muted);
}

.body * {
  box-sizing: border-box;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.65);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: min(380px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal__img.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  user-select: none;
}

[dir=rtl] .modal__img.close {
  right: auto;
  left: 12px;
}

.modal__text-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.modal__img.bell {
  width: 40px;
  height: 40px;
  flex: none;
  user-select: none;
}

.modal__text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

.modal__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #D4D4D8;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-surface);
}

.button:hover {
  opacity: 0.9;
}

.button:active {
  transform: scale(0.97);
}

.button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(64px, 12vw, 96px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.toolbar {
  position: absolute;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress {
  flex: 0 0 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(228, 228, 231, 0.3);
  overflow: hidden;
}

.bar {
  width: 11%;
  height: 100%;
  background: var(--color-accent);
}

.controls,
.settings {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-img {
  width: 24px;
  height: 24px;
  user-select: none;
  pointer-events: none;
}

.time {
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
}

@media (max-width: 380px) {
  .controls, .settings { gap: 10px; }
  .time { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

html,
body {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}
