@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700&display=swap');

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #444444;
  --line: rgba(0, 0, 0, .35);
  --soft: rgba(0, 0, 0, .05);
  --radius: 14px;
  --font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font-family: inherit; font-style: inherit; }
.screen {
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.title { font-weight: 700; font-size: 3.2rem; letter-spacing: .02em; margin: 8px 0 0; text-align: center; }
.title.small { font-size: 1.8rem; color: var(--muted); }

.notice {
  display: flex; gap: 12px; align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 1.1rem;
}
.notice p { margin: 0; line-height: 1.35; }
.notice-icon { font-size: 1.6rem; font-style: normal; }
.prompt { margin: 8px 0 0; font-size: 1.6rem; }

.calendar {
  width: 100%; max-width: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.cal-head { display: flex; gap: 6px; margin-bottom: 10px; }
.cal-head select {
  flex: 1; min-width: 0;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px; font-size: 1.05rem;
}
.cal-nav {
  width: 36px; background: transparent; color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 1.3rem; cursor: pointer;
}
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: .95rem; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; background: transparent; color: var(--fg);
  border: 0; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
}
.cal-day:hover { background: var(--soft); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--fg); }
.cal-day.sel { background: var(--fg); color: var(--bg); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.selected { margin: 0; color: var(--muted); min-height: 1.4em; }
.error { margin: 0; color: #b3263e; text-align: center; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

button, select, input { font-weight: inherit; }
.btn {
  background: var(--fg); color: var(--bg); border: 0; border-radius: 999px;
  padding: 10px 38px; font-size: 1.25rem; cursor: pointer;
}
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn.round { width: 52px; height: 52px; padding: 0; font-size: 1.1rem; font-style: normal; flex: none; }

#player { height: 100vh; height: 100dvh; padding-bottom: 0; }
.lyrics {
  flex: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 8px;
}
.line {
  margin: 0; max-width: 100%;
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; line-height: 1.3; color: var(--fg);
  font-style: normal;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.line em { font-style: italic; } /* só o texto entre <i></i> nas legendas */
.line.visible { opacity: 1; transform: none; }
.line.note { font-size: 2.6rem; color: var(--muted); font-style: normal; }
.controls {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 16px 0 24px;
}
.time { color: var(--muted); font-size: 1rem; min-width: 2.6em; text-align: center; font-variant-numeric: tabular-nums; }
#seek { flex: 1; accent-color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  .line, .shake { transition: none; animation: none; }
}
