/* Madureira — acervo de fitas VHS. Mobile first: base 375px; breakpoints sobem (480/768/1024/1280). */

:root,
[data-theme="dark"] {
  --bg: #14110f;
  --surface: #1f1a16;
  --text: #f1e7d6;
  --muted: #a8998a;
  --accent: #f2a03d;
  --accent-2: #e2553f;
  --line: #3a312a;
  --shadow: 0 10px 30px rgb(0 0 0 / 0.45);
  --tv: linear-gradient(160deg, #3d352e, #1d1916);
  --deck: linear-gradient(#2d2823, #191512);
  --deck-btn: linear-gradient(#4a423b, #2a241f);
  --deck-txt: #f1e7d6;
  --f-title: "Fraunces", Georgia, serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-body: "Inter", system-ui, sans-serif;
  --f-osd: "VT323", "Space Mono", monospace;
  --f-marker: "Permanent Marker", "Fraunces", cursive;
  --osd-sombra: 2px 2px 0 #1b2bd8, -1px 0 rgb(255 40 40 / 0.55);
  --r: 14px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4ede1;
  --surface: #fffaf1;
  --text: #231c16;
  --muted: #6b5d50;
  --accent: #c25e10;
  --accent-2: #b23a28;
  --line: #dccfbc;
  --shadow: 0 10px 30px rgb(80 50 20 / 0.18);
  --tv: linear-gradient(160deg, #ddd2bf, #b3a58f);
  --deck: linear-gradient(#ece6dc, #cbc2b3);
  --deck-btn: linear-gradient(#fbf8f2, #ddd5c7);
  --deck-txt: #231c16;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.55;
  overflow-x: hidden;
}
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); line-height: 1.1; margin: 0; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.material-symbols-sharp { font-size: 1.35em; line-height: 1; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--f-title); font-weight: 800; font-size: 1.1rem;
  text-decoration: none; min-height: 44px; display: flex; align-items: center; gap: 0.4rem;
}
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 8px #ff3b2f; animation: piscar 1.6s steps(2) infinite; }
.nav { display: flex; gap: 0.1rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.nav a {
  font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; color: var(--muted); white-space: nowrap;
  min-height: 44px; display: flex; align-items: center; padding: 0 0.4rem;
}
.nav a:hover { color: var(--accent); }
.relogio {
  font-family: var(--f-osd); font-size: 1.3rem; line-height: 1; color: #59f59a;
  background: #070806; padding: 0.3rem 0.45rem; border-radius: 4px;
  text-shadow: 0 0 6px rgb(89 245 154 / 0.7); flex: none;
}
.pisca { animation: piscar 2s steps(2) infinite; }
@keyframes piscar { 50% { opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  display: grid; gap: 2.25rem; padding: 2.5rem 1rem 3rem;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(127 127 127 / 0.04) 3px 4px),
    radial-gradient(120% 80% at 15% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--f-osd); font-size: 1.25rem; letter-spacing: 0.06em;
  color: var(--accent); margin: 0 0 0.5rem;
}
.hero-title { font-size: clamp(3.2rem, 17vw, 7.5rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-lead { font-size: 1.05rem; color: var(--muted); max-width: 38ch; margin: 1rem 0 1.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.75rem; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-family: var(--f-osd); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.stat-l { font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--muted); }
.tv-hero { transform: rotate(1.2deg); max-width: 560px; width: 100%; justify-self: center; }
.osd-hero {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: radial-gradient(circle at 50% 50%, rgb(20 40 160 / 0.55), rgb(10 20 90 / 0.75));
}
.osd-centro { align-self: center; font-size: clamp(1.6rem, 8vw, 2.8rem); text-align: center; line-height: 1; }
.osd-anos { align-self: flex-end; color: #ffd36b; }
.tv-hero .chiado { opacity: 0.32; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.25rem; border-radius: 999px; border: 0;
  background: var(--accent); color: #1a120b; font: 600 1rem var(--f-body);
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }

/* ---------- seções ---------- */
.section { padding: 3rem 1rem; }
.section h2 { font-size: 2rem; }
.sub { color: var(--muted); margin: 0.5rem 0 1.75rem; max-width: 60ch; }

/* ---------- TV de tubo ---------- */
.tv {
  position: relative; background: var(--tv); padding: 4% 4% 2.5%;
  border-radius: 22px; box-shadow: var(--shadow), inset 0 2px 0 rgb(255 255 255 / 0.12);
}
.tv-tela {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  border-radius: 7% / 9%; background: #05070a;
  box-shadow: inset 0 0 40px #000, 0 0 0 3px rgb(0 0 0 / 0.55);
}
.tv-tela video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: saturate(1.15) contrast(1.06);
}
.chiado {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; opacity: 0; pointer-events: none;
}
.trocando .chiado { opacity: 0.85; }
.trocando video { animation: tracking 0.5s steps(5); }
@keyframes tracking {
  0% { transform: translateX(0) skewX(0); }
  25% { transform: translateX(-3%) skewX(6deg); }
  50% { transform: translateX(2%) skewX(-4deg); filter: hue-rotate(40deg) saturate(2); }
  75% { transform: translateX(-1%) skewX(2deg); }
}
.crt {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgb(0 0 0 / 0.2) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / 0.6) 100%);
}
.osd {
  position: absolute; inset: 0; pointer-events: none; padding: 5% 6%;
  font-family: var(--f-osd); font-size: clamp(1.05rem, 4.2vw, 1.7rem); line-height: 1;
  color: #fff; text-shadow: var(--osd-sombra);
}
.osd-status { position: absolute; top: 6%; left: 6%; opacity: 0; transition: opacity 0.2s; }
.osd-status.on { opacity: 1; }
.osd-tag { position: absolute; top: 6%; right: 6%; padding: 0 0.3em; text-shadow: none; color: #14110f; }
.osd-tag:empty { display: none; }
.osd-tag.comeco { background: #f2a03d; }
.osd-tag.hoje { background: #e2553f; color: #fff; }
.osd-legenda { position: absolute; bottom: 6%; left: 6%; max-width: 55%; }
.osd-data { position: absolute; bottom: 6%; right: 6%; color: #ffd36b; text-align: right; }
.tv-base { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; padding-top: 2.5%; min-height: 18px; }
.tv-base span {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a8178, #25201c);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.tv-base::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: auto; margin-left: 4%;
  background: #4a1410;
}
.tv.tocando .tv-base::before { background: #ff3b2f; box-shadow: 0 0 8px #ff3b2f; }
.tv:fullscreen { padding: 0; border-radius: 0; background: #000; display: flex; }
.tv:fullscreen .tv-tela { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }
.tv:fullscreen .tv-base { display: none; }

/* ---------- estante de fitas ---------- */
.estante { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 0.75rem; }
.fita { display: block; text-decoration: none; aspect-ratio: 1.7; min-width: 0; }
.fita-corpo {
  height: 100%; display: flex; flex-direction: column; gap: 6%; padding: 7% 6% 6%;
  background: linear-gradient(170deg, #2e2925, #121010); border: 1px solid #000; border-radius: 6px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.1);
  transition: transform 0.2s;
}
.fita:hover .fita-corpo, .fita:focus-visible .fita-corpo { transform: translateY(-4px) rotate(-1.2deg); }
.fita-etiqueta {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.1rem;
  background: #f3ecdc; color: #1c1610; border-radius: 3px; border-top: 5px solid var(--cor);
  padding: 0.2rem 0.45rem; overflow: hidden;
}
.fita-marca { font: 700 0.45rem var(--f-mono); letter-spacing: 0.08em; opacity: 0.55; white-space: nowrap; overflow: hidden; }
.fita-titulo {
  font-family: var(--f-marker); font-size: clamp(0.85rem, 4vw, 1.3rem); line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fita-info { font: 0.55rem var(--f-mono); opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fita-janela {
  flex: none; height: 30%; display: flex; align-items: center; justify-content: space-between; gap: 0.3rem;
  background: #0a0908; border: 1px solid #3a3530; border-radius: 999px; padding: 0 5%;
}
.carretel {
  height: 82%; aspect-ratio: 1; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle closest-side, #0a0908 0 22%, transparent 23%),
    conic-gradient(#e9e2d6 0 14deg, transparent 14deg 120deg, #e9e2d6 120deg 134deg, transparent 134deg 240deg, #e9e2d6 240deg 254deg, transparent 254deg) center / 46% 46% no-repeat,
    radial-gradient(circle closest-side, #e9e2d6 0 26%, #5a3d28 27% var(--fio), transparent calc(var(--fio) + 1%));
}
.fita:hover .carretel, .fita:focus-visible .carretel { animation: girar 1.4s linear infinite; }
@keyframes girar { to { transform: rotate(-360deg); } }
.fita-contador { font-family: var(--f-osd); font-size: clamp(0.8rem, 3.4vw, 1.1rem); color: #f2a03d; white-space: nowrap; overflow: hidden; }
.fita-especial .fita-corpo { background: linear-gradient(170deg, #4a4540, #23201d); }

/* ---------- página da fita ---------- */
.player { padding: 1.25rem 1rem 3rem; }
.player-head { margin-bottom: 1.25rem; }
.voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  font: 0.75rem var(--f-mono); text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.voltar:hover { color: var(--accent); }
.player-titulo {
  font-family: var(--f-marker); font-weight: 400; font-size: clamp(2rem, 9vw, 3.6rem);
  margin-top: 0.25rem; text-decoration: underline; text-decoration-color: var(--cor);
  text-decoration-thickness: 0.12em; text-underline-offset: 0.12em;
}
.player-meta { font: 0.78rem var(--f-mono); text-transform: uppercase; color: var(--muted); margin: 0.6rem 0 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; padding: 0 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 600 0.85rem var(--f-body); cursor: pointer;
}
.tab.is-on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }

.palco { display: grid; gap: 0.9rem; grid-template-areas: "tv" "deck" "linha"; }
.palco > .tv, .palco > .duo { grid-area: tv; }
.palco > .deck { grid-area: deck; }
.palco > .linha { grid-area: linha; }

/* deck do videocassete */
.deck {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  background: var(--deck); color: var(--deck-txt); border: 1px solid rgb(0 0 0 / 0.5);
  border-radius: 12px; padding: 0.6rem; box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.deck-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 1px solid rgb(0 0 0 / 0.6); border-radius: 8px; cursor: pointer;
  background: var(--deck-btn); color: var(--deck-txt);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15), 0 3px 0 rgb(0 0 0 / 0.55);
}
.deck-btn:active { transform: translateY(3px); box-shadow: none; }
.deck-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.deck-play { background: var(--accent); color: #1a120b; }
.contador {
  font-family: var(--f-osd); font-size: 1.3rem; line-height: 1; color: #ff5a3c;
  background: #0a0806; padding: 0.3rem 0.35rem; border-radius: 4px; margin-right: auto;
  text-shadow: 0 0 6px rgb(255 90 60 / 0.7); text-align: center;
}
.barra {
  order: 10; flex: 1 1 100%; appearance: none; -webkit-appearance: none;
  height: 32px; background: transparent; cursor: pointer; margin: 0;
}
.barra::-webkit-slider-runnable-track {
  height: 10px; border-radius: 3px; border: 1px solid #000;
  background: linear-gradient(90deg, var(--accent) var(--p, 0%), #0a0806 var(--p, 0%));
}
.barra::-moz-range-track { height: 10px; border-radius: 3px; border: 1px solid #000; background: #0a0806; }
.barra::-moz-range-progress { height: 10px; background: var(--accent); }
.barra::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 22px; margin-top: -7px; border-radius: 3px; background: var(--deck-txt); border: 1px solid #000; }
.barra::-moz-range-thumb { width: 16px; height: 22px; border-radius: 3px; background: var(--deck-txt); border: 1px solid #000; }

/* linha do tempo da música */
.linha {
  list-style: none; margin: 0; padding: 0.25rem 0 0.5rem;
  display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x proximity;
}
.linha li { flex: none; scroll-snap-align: center; }
.marco {
  width: 8.5rem; min-height: 44px; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; text-align: left;
  padding: 0.55rem 0.7rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.marco:hover { border-color: var(--muted); }
.marco.is-on { border-color: var(--cor); box-shadow: inset 0 0 0 2px var(--cor); }
.marco-n { font-family: var(--f-osd); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.marco.is-on .marco-n { color: var(--cor); }
.marco-data { font: 700 0.75rem var(--f-mono); }
.marco-sub { font-size: 0.75rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag {
  font-family: var(--f-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem; border-radius: 3px; color: #1a120b;
}
.tag-comeco { background: #f2a03d; }
.tag-hoje { background: #e2553f; color: #fff; }

/* começo × hoje */
.duo { display: grid; gap: 1rem; }
.deck-duo { justify-content: space-between; }
.ouvir { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.ouvir-l { font: 0.7rem var(--f-mono); text-transform: uppercase; opacity: 0.75; }
.deck-duo .tab { color: var(--deck-txt); }

/* ---------- diário ---------- */
.diario { list-style: none; margin: 0; padding: 0 0 0 1.25rem; border-left: 2px dashed var(--line); }
.dia { position: relative; padding: 0 0 1.1rem 1rem; }
.dia::before {
  content: ""; position: absolute; left: calc(-1.25rem - 6px); top: 0.5rem;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.dia-ano { display: block; font-family: var(--f-osd); font-size: 1.8rem; line-height: 1; color: var(--accent); margin-bottom: 0.3rem; }
.dia-data { display: block; font-weight: 600; }
.dia-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.dia-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--line); border-left: 4px solid var(--cor); border-radius: 6px;
  text-decoration: none; font-size: 0.9rem; background: var(--surface);
}
.dia-link:hover { border-color: var(--cor); }

/* destaque: foto original e recriação */
.dia-destaque::before { width: 14px; height: 14px; left: calc(-1.25rem - 8px); background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 30%, transparent); }
.polaroide {
  position: relative; display: block; width: 100%; max-width: 30rem; margin: 0.9rem 0 0.4rem;
  padding: 10px 10px 44px; border: 0; border-radius: 2px; cursor: pointer; text-align: center;
  background: #fbf8f1; box-shadow: 0 10px 24px rgb(0 0 0 / 0.4); transform: rotate(-1.5deg);
  transition: transform 0.2s;
}
.polaroide:hover, .polaroide:focus-visible { transform: rotate(0) scale(1.02); }
.polaroide img { width: 100%; height: auto; }
.polaroide-legenda { position: absolute; left: 10px; right: 10px; bottom: 12px; font: 1.05rem/1.1 var(--f-marker); color: #231c16; }
.polaroide-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg); z-index: 1;
  padding: 0.15rem 0.9rem; font: 1.3rem/1.2 var(--f-osd); color: #231c16;
  background: color-mix(in srgb, #f2e3a0 85%, transparent); box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}
.antes-depois { display: grid; gap: 1.25rem; max-width: 52rem; }
.antes-depois .polaroide { max-width: none; }
.polaroide-depois { transform: rotate(1.5deg); }
.polaroide-antes img, .polaroide-depois img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- fotos (polaroides) ---------- */
.fotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 0.9rem; padding: 0.5rem; }
.foto {
  position: relative; padding: 6px 6px 26px; border: 0; border-radius: 2px; cursor: pointer;
  background: #fbf8f1; transform: rotate(var(--giro, 0deg)); box-shadow: 0 6px 14px rgb(0 0 0 / 0.35);
  transition: transform 0.2s; min-height: 44px;
}
.foto:hover, .foto:focus-visible { transform: rotate(0) scale(1.04); z-index: 1; }
.foto img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.foto-data { position: absolute; left: 0; right: 0; bottom: 4px; font: 1rem/1 var(--f-osd); color: #c25e10; }
.foto-com-legenda { padding-bottom: 46px; }
.foto-legenda { position: absolute; left: 6px; right: 6px; bottom: 22px; font: 0.8rem/1.1 var(--f-marker); color: #231c16; }
.foto-dlg {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; background: rgb(0 0 0 / 0.94); color: #fff;
}
.foto-dlg[open] { display: flex; flex-direction: column; }
.foto-dlg::backdrop { background: rgb(0 0 0 / 0.7); }
.foto-dlg img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.foto-barra {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem; font-family: var(--f-osd); font-size: 1.2rem;
}
.foto-barra span { flex: 1; text-align: center; }

/* ---------- banda ---------- */
.integrantes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.integrante {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem;
}
.integrante div { display: flex; flex-direction: column; }
.integrante span:not(.avatar) { color: var(--muted); font-size: 0.9rem; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--f-marker); font-size: 1.3rem; background: var(--accent); color: #1a120b;
}

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 1.5rem 1rem 2rem; text-align: center; }
.footer-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; min-width: 44px; justify-content: center; padding: 0 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 0.85rem var(--f-body); cursor: pointer;
}
.foto-barra .chip { background: #222; color: #fff; border-color: #444; padding: 0 0.6rem; }
.chip select { background: transparent; color: inherit; border: 0; font: inherit; min-height: 44px; cursor: pointer; }
.chip select option { background: var(--surface); color: var(--text); }
.footer-nota { color: var(--muted); font-size: 0.8rem; margin: 1rem 0 0; }

/* ---------- sm ---------- */
@media (min-width: 480px) {
  .nav a { font-size: 0.72rem; padding: 0 0.55rem; }
  .fotos { grid-template-columns: repeat(3, 1fr); }
  .fita-marca { font-size: 0.5rem; }
  .fita-info { font-size: 0.6rem; }
}

/* ---------- md ---------- */
@media (min-width: 768px) {
  .topbar { padding: 0.4rem 2rem; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 4rem 2rem; }
  .section, .player { padding-left: 2rem; padding-right: 2rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .section h2 { font-size: 2.6rem; }
  .estante { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.25rem; }
  .fita-titulo { font-size: clamp(1rem, 2.2vw, 1.35rem); }
  .fita-contador { font-size: 1.1rem; }
  .fotos { grid-template-columns: repeat(4, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
  .antes-depois { grid-template-columns: 1fr 1fr; align-items: start; }
  .deck { gap: 0.5rem; }
  .barra { order: 0; flex: 1 1 auto; }
  .contador { margin-right: 0; font-size: 1.6rem; padding: 0.35rem 0.5rem; }
  .osd { font-size: clamp(1.1rem, 2.2vw, 1.7rem); }
  .integrantes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ---------- lg ---------- */
@media (min-width: 1024px) {
  .hero, .section, .player { padding-left: max(2rem, calc((100% - 1160px) / 2)); padding-right: max(2rem, calc((100% - 1160px) / 2)); }
  .estante { grid-template-columns: repeat(4, 1fr); }
  .fotos { grid-template-columns: repeat(5, 1fr); }
  .palco.uma { grid-template-columns: 1fr 15rem; grid-template-areas: "tv linha" "deck linha"; align-items: start; }
  .palco.uma > .linha { flex-direction: column; overflow-x: hidden; overflow-y: auto; max-height: 42rem; padding: 0 0.25rem 0 0; scroll-snap-type: y proximity; }
  .palco.uma .marco { width: 100%; }
  .osd { font-size: 1.6rem; }
}

/* ---------- xl ---------- */
@media (min-width: 1280px) {
  .palco.uma { grid-template-columns: 1fr 17rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec, .pisca, .fita:hover .carretel { animation: none; }
  .fita-corpo, .foto, .osd-status, .polaroide { transition: none; }
  .trocando video { animation: none; }
}
