/* ── Fonts ──────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Spotify Mix";
  src: url("assets/fonts/SpotifyMix-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spotify Mix";
  src: url("assets/fonts/SpotifyMix-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spotify Mix";
  src: url("assets/fonts/SpotifyMix-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spotify Mix";
  src: url("assets/fonts/SpotifyMix-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --card-bg:   #000000;
  --text:      #f7f8f8;
  --muted:     rgba(255,255,255,0.5);
  --accent:    #1ed760;
  --orange:    #E07B1E;
  --shadow:    0 40px 80px rgba(0,0,0,0.65);
  --spring:    cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

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

body {
  margin: 0;
  font-family: "Spotify Mix", "Segoe UI", sans-serif;
  color: var(--text);
  background: transparent;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  scrollbar-width: none;
  cursor: url('/assets/cursors/circle-cursor.svg') 8 8, auto;
}

body::-webkit-scrollbar { display: none; }

.app {
  width: 100%;
  height: 100%;
}

/* ── Stage ───────────────────────────────────────────────────────────────────── */
.stage {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Resize edge hit areas */
.resize-edge {
  position: absolute;
  z-index: 20;
}
.resize-n  { top: -5px;    left: 14px;  right: 14px; height: 10px; cursor: n-resize;  }
.resize-s  { bottom: -5px; left: 14px;  right: 14px; height: 10px; cursor: s-resize;  }
.resize-e  { right: -5px;  top: 14px;  bottom: 14px; width:  10px; cursor: e-resize;  }
.resize-w  { left: -5px;   top: 14px;  bottom: 14px; width:  10px; cursor: w-resize;  }
.resize-ne { top: -5px;    right: -5px;  width: 20px; height: 20px; cursor: ne-resize; }
.resize-nw { top: -5px;    left: -5px;   width: 20px; height: 20px; cursor: nw-resize; }
.resize-se { bottom: -5px; right: -5px;  width: 20px; height: 20px; cursor: se-resize; }
.resize-sw { bottom: -5px; left: -5px;   width: 20px; height: 20px; cursor: sw-resize; }

/* Resize icon — bottom-right corner of card, clipped by border-radius */
.resize-icon {
  position: absolute;
  bottom: 2px;
  right: 6px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-card:hover .resize-icon {
  opacity: 1;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.player-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 280px;
  height: 380px;
  position: absolute;
  padding: 4px;
  border-radius: 16px;
}

/* ── Karaoke mode: lyrics fill card, top + footer collapse and slide in ─────── */
.player-card.karaoke-on .content-area {
  flex: 1;
  aspect-ratio: unset;
  /* margin: 8px; */
  border-radius: 12px;
  background: transparent;
}

/* Footer collapses to 0 in karaoke (mirrors how top bar works) */
.player-card.karaoke-on .player-footer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  transition: height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
}

/* State 4: karaoke + hover — footer space comes from its own 8px padding, not a gap */
.player-card.karaoke-on:hover .player-footer {
  height: 60px;
  opacity: 1;
  pointer-events: auto;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Suppress playback controls overlay in karaoke mode */
.player-card.karaoke-on .content-area:hover .controls-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ── Top bar ────────────────────────────────────────────────────────────────── */
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  /* collapsed by default */
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height 0.35s ease, opacity 0.25s ease;
}
.player-top:active { cursor: grabbing; }

/* Slide in on card hover (both modes) */
.player-card:hover .player-top {
  height: 28px;
  opacity: 1;
  pointer-events: auto;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFBD2E;
  flex-shrink: 0;
  cursor: pointer;
}

.grip { flex-shrink: 0; }

.opacity-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.opacity-btn:hover { transform: scale(1.15); }


/* ── Content area ───────────────────────────────────────────────────────────── */
.content-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--art-color-light, #00DF2D) 0%, var(--art-color-dark, #00DF2D) 100%);
  border-radius: 12px;
  margin: 0; /* spacing handled by .player-card { padding: 4px } */
  transition: margin-top 0.35s ease;
}

/* State 2: hover (album art) — 4px breathing room below the top bar */
.player-card:hover .content-area {
  margin-top: 4px;
}

/* ── Album art panel ────────────────────────────────────────────────────────── */
.art-panel {
  position: absolute;
  height: 80%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 50px 12px rgba(0,0,0,0.25);
  transition: opacity 0.4s ease;
}

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

.content-area.karaoke-on .art-panel {
  opacity: 0;
  pointer-events: none;
}

/* ── Lyrics panel ───────────────────────────────────────────────────────────── */
.lyrics-panel {
  position: absolute;
  inset: 0;
  background: var(--art-color-mid, #00DF2D);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 36px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.content-area.karaoke-on .lyrics-panel {
  opacity: 1;
  pointer-events: auto;
}

/* ── Lyrics list ────────────────────────────────────────────────────────────── */
.lyrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
  padding-right: 36px;
  margin-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
  transition: padding-top 0.35s ease;
}

.player-card.karaoke-on:hover .lyrics {
  padding-top: 36px;
}

.lyrics::-webkit-scrollbar        { width: 4px; }
.lyrics::-webkit-scrollbar-track  { background: transparent; }
.lyrics::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.18); border-radius: 99px; }

.player-card.karaoke-on .lyrics {
  margin-top: 8px;
  margin-bottom: 8px;
}

.player-card.karaoke-on:hover .lyrics {
  margin-top: 0;
  margin-bottom: 0;
}

.lyrics-spacer { flex-shrink: 0; }

/* Lyric line — three states */
.line {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 5px 0;
  cursor: pointer;
  color: rgba(255,255,255,0.40);   /* past */
  transition: color 0.2s ease;
}

.line.is-upcoming {
  color: var(--art-color-upcoming, var(--orange));
  opacity: var(--upcoming-lyric-opacity, 1);
  transition: color 0.2s ease, opacity 0.3s ease;
}

.line.is-active {
  color: #ffffff;                  /* now playing — full white */
  font-weight: 700;
}

.lyrics-message {
  cursor: default;
  opacity: 0.5;
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
}

.lyrics-sync-notice {
  cursor: default;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.45;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.player-card.karaoke-on .lyrics-sync-notice,
.player-card.karaoke-on .lyrics-message {
  margin-top: 10px;
}

.player-card.karaoke-on:hover .lyrics-sync-notice,
.player-card.karaoke-on:hover .lyrics-message {
  margin-top: 0;
}

.line-romanized {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Controls overlay ───────────────────────────────────────────────────────── */
.controls-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.30) 0%,
    rgba(0,0,0,1.00) 89%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 20px 10px 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.content-area:hover .controls-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ── Exit Karaoke button ────────────────────────────────────────────────────── */
.exit-karaoke-btn {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(12, 16, 20, 0.82);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.15s ease;
}

.exit-karaoke-btn:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(-50%) scale(1.03);
}

.player-card.karaoke-on:hover .exit-karaoke-btn {
  opacity: 1;
  pointer-events: auto;
}

/* ── Karaoke pill ───────────────────────────────────────────────────────────── */
.karaoke-pill {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(12, 16, 20, 0.82);
  color: var(--accent);
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 300;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.karaoke-pill:hover {
  background: rgba(30,215,96,0.14);
  transform: translateX(-50%) scale(1.03);
}

.player-card.karaoke-on .karaoke-pill {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ── Volume slider ───────────────────────────────────────────────────────────── */
.volume-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* extend upward to bridge gap between button and popup */
  padding-top: 110px;
  margin-top: -110px;
}

.volume-popup {
  position: absolute;
  bottom: calc(100% - 110px + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,0.97);
  border-radius: 8px;
  padding: 12px 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.volume-wrap:hover .volume-popup {
  opacity: 1;
  pointer-events: auto;
}

.vol-track {
  position: relative;
  width: 4px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
}

.vol-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  border-radius: 4px;
  pointer-events: none;
}

.vol-preview {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  pointer-events: none;
}

.vol-thumb {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.vol-track:hover .vol-thumb { opacity: 1; }

/* ── Overlay controls row ───────────────────────────────────────────────────── */
.overlay-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 4px;
  flex: 1;
}

#volumeBtn { color: #ffffff; }
#volumeBtn.is-muted { color: rgba(255,255,255,0.4); }

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
}
.ctrl-btn:hover { color: #fff; transform: scale(1.12); }

.ctrl-btn--sm { color: #ffffff; }
.ctrl-btn--sm:hover { color: #fff; transform: scale(1.1); }

/* Play / Pause button */
.ctrl-btn--play {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.2s var(--spring);
}
.ctrl-btn--play:hover { transform: scale(1.08); }

/* Pause state: white circle with pause bars */
.ctrl-btn--play.is-paused {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #111;
}
.ctrl-btn--play.is-paused:hover { background: #fff; }

/* Play/pause icon toggling */
.ctrl-btn--play .icon-pause        { display: none; }
.ctrl-btn--play.is-paused .icon-play  { display: none; }
.ctrl-btn--play.is-paused .icon-pause { display: flex; }

/* Shuffle wrap + dot (mirrors repeat) */
.shuffle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shuffle-dot {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.shuffle-dot.visible { opacity: 1; }

/* ── Nav (prev/next) wrap ────────────────────────────────────────────────────── */
.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-wrap:hover .ctrl-tooltip { opacity: 1; }

/* ── Repeat button ───────────────────────────────────────────────────────────── */
.repeat-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repeat-btn { color: #ffffff; transition: color 0.15s ease; }
.repeat-btn.is-active { color: #ffffff; }

.icon-repeat-one { display: none; }
.repeat-btn.is-repeat-one .icon-repeat-all { display: none; }
.repeat-btn.is-repeat-one .icon-repeat-one { display: block; }

.repeat-dot {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.repeat-dot.visible { opacity: 1; }

/* ── Ctrl tooltip ────────────────────────────────────────────────────────────── */
.ctrl-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,0.97);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 300;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 30;
}
.repeat-wrap:hover .ctrl-tooltip,
.shuffle-wrap:hover .ctrl-tooltip { opacity: 1; }

/* Share button */
#queueBtn { color: #ffffff; }

/* Share tooltip */
.share-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,0.97);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 300;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 30;
}
.share-tooltip.visible { opacity: 1; }

/* ── Overlay progress ───────────────────────────────────────────────────────── */
.overlay-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  padding: 0 2px;
}

.bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 99px;
  overflow: visible;
  cursor: pointer;
}

.bar-preview {
  position: absolute;
  inset: 0;
  width: 0%;
  background: rgba(255,255,255,0.35);
  border-radius: 99px;
  pointer-events: none;
  transition: width 0.05s linear;
}

.bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.25s linear;
}

/* Scrubber dot — hidden until bar is hovered */
.bar-fill::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bar:hover .bar-fill::after { opacity: 1; }

/* Hover timestamp tooltip */
.bar-tooltip {
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.bar:hover .bar-tooltip { opacity: 1; }

/* ── Player footer ──────────────────────────────────────────────────────────── */
.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  flex-shrink: 0;
  gap: 12px;
}

.meta { min-width: 0; }

.meta h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* Marquee active state — overrides ellipsis */
.meta h1.is-marquee {
  text-overflow: clip;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* Flex container holding two copies */
.meta h1.is-marquee .marquee-inner {
  display: inline-flex;
  will-change: transform;
  animation: marquee var(--marquee-duration, 12s) linear infinite;
}

.meta h1.is-marquee .marquee-text {
  flex-shrink: 0;
  padding-right: 3em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-offset, -50%)); }
}

.meta p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: #BABABA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.add-btn:hover { transform: scale(1.08); filter: brightness(1.15); }

.add-btn .icon-liked { display: none; }
.add-btn.is-liked .icon-liked { display: block; }
.add-btn.is-liked .icon-plus  { display: none; }

/* ── Like confetti ───────────────────────────────────────────────────────────── */
.confetti-piece {
  position: absolute;
  pointer-events: none;
  z-index: 50;
}
.confetti-circle {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.confetti-rect {
  width: 7px;
  height: 4px;
  border-radius: 1px;
}

/* ── Timer overlay ──────────────────────────────────────────────────────────── */
.timer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,11,14,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.timer-overlay.hidden { display: none; }

.timer-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(520px, 92vw);
  text-align: center;
}
.timer-screen.hidden { display: none; }

.timer-progress { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.timer-timestamp { font-size: 1rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.timer-current { font-size: 2rem; font-weight: 700; line-height: 1.25; color: #fff; min-height: 2.5em; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.timer-next-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.25); }
.timer-next { font-size: 1.1rem; color: rgba(255,255,255,0.35); min-height: 1.6em; padding: 0 20px; }
.timer-hint { margin-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 6px; }

kbd {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.timer-done-icon   { font-size: 2.5rem; color: var(--accent); }
.timer-done-title  { margin: 0; font-size: 1.5rem; font-weight: 700; }
.timer-done-sub    { margin: 0; color: var(--muted); font-size: 0.88rem; }

.timer-output {
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  font-size: 0.78rem;
  text-align: left;
  color: #b0c8b0;
  white-space: pre;
  scrollbar-width: thin;
}

.timer-actions { display: flex; gap: 12px; }

.timer-copy-btn,
.timer-close-btn {
  padding: 10px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.timer-copy-btn { background: var(--accent); color: #0c0f12; border: none; }
.timer-copy-btn:hover { opacity: 0.88; }
.timer-close-btn { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,0.12); }
.timer-close-btn:hover { color: #fff; }
