/* Melhores momentos and Memória em filme: a screen set into the wall, its story beside it, and a frieze of
   tiles below, one per moment (or per film). Flat: no gradients, no shadows. Nothing ever sits on a player. */
.destaques, .memoria {
  color: var(--ink, #10285C);
  padding: clamp(72px, 9vw, 128px) var(--m, 24px) clamp(72px, 9vw, 120px);
}
.destaques { background: var(--wall, #E8ECF2); }
.memoria { background: var(--paper, #F8F9FB); }

.dq-head {
  max-width: 1400px; margin: 0 auto clamp(28px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px clamp(32px, 5vw, 80px);
}
.memoria .dq-head { justify-content: flex-start; }
.memoria .dq-head .lead { flex: 1 1 320px; max-width: 42ch; }

/* islands: flat square buttons, the pressed one in ink */
.dq-ilhas { display: flex; flex-wrap: wrap; gap: 6px; }
.dq-ilhas button {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--paper, #F8F9FB); color: var(--ink, #10285C); font: 600 var(--t-small, 16px)/1 var(--f, Georgia, serif);
  transition: background-color .18s var(--ease, ease);
}
@media (hover: hover) and (pointer: fine) { .dq-ilhas button:hover { background: var(--tone, #D9E1EF); } }
.dq-ilhas button[aria-pressed="true"] { background: var(--ink, #10285C); color: var(--paper, #F8F9FB); }

/* the screen and its story: 16 : 9 beside 9, so the story panel is as tall as the screen is */
.dq-sala { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 9fr); gap: 6px; }
.dq-tela { position: relative; display: grid; aspect-ratio: 16 / 9; min-height: 200px; background: var(--navy, #0E2250); overflow: hidden; }
.dq-tela > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.dq-tela > iframe, .dq-tela > div { grid-area: 1 / 1; width: 100%; height: 100%; border: 0; display: block; }
.dq-play {
  grid-area: 1 / 1; align-self: center; justify-self: center; z-index: 1;
  width: 104px; height: 104px; display: grid; place-items: center; border: 0; border-radius: 0; cursor: pointer;
  background: var(--cobalt, #1C4597); color: var(--paper, #F8F9FB);
  transition: transform .18s var(--ease, ease), background-color .18s var(--ease, ease);
}
@media (hover: hover) and (pointer: fine) { .dq-play:hover { background: var(--navy, #0E2250); transform: scale(1.06); } }
.dq-play:active { transform: scale(.97); }
.dq-play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 6px; }

/* a film that lives only on its archive's site: a navy card with the archive's name and the way there */
.dq-fora {
  grid-area: 1 / 1; display: grid; align-content: center; justify-items: start; gap: 14px;
  padding: clamp(24px, 4vw, 56px); background: var(--navy, #0E2250); color: var(--soft, #C9D3EA);
}
.dq-fora p { margin: 0; max-width: 36ch; }
.dq-fora .dq-fora-de { font: italic 500 clamp(26px, 3vw, 44px)/1.1 var(--f, Georgia, serif); color: var(--gold, #E3A92B); }
.dq-fora-a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; text-decoration: none;
  background: var(--paper, #F8F9FB); color: var(--ink, #10285C); font: 600 var(--t-small, 16px)/1 var(--f, Georgia, serif);
  transition: background-color .18s var(--ease, ease);
}
@media (hover: hover) and (pointer: fine) { .dq-fora-a:hover { background: var(--tone, #D9E1EF); } }
.dq-t-src {
  grid-area: 1 / 1; align-self: center; justify-self: center; padding: 0 8px 26px; text-align: center;
  font: italic 500 13px/1.2 var(--f, Georgia, serif); color: var(--soft, #C9D3EA);
}

.dq-info {
  background: var(--paper, #F8F9FB); padding: clamp(22px, 2.4vw, 36px);
  display: grid; align-content: start; gap: 14px;
}
.memoria .dq-info { background: var(--wall, #E8ECF2); }
.dq-info p { margin: 0; }
/* the occasion, painted on a small navy tile */
.dq-ocasiao {
  justify-self: start; background: var(--navy, #0E2250); color: var(--gold, #E3A92B);
  font: 600 var(--t-small, 16px)/1.2 var(--f, Georgia, serif); letter-spacing: .02em; padding: 9px 14px 10px;
}
.dq-nota { font-size: var(--t-lead, 24px); line-height: 1.35; }
.dq-ve { font-size: var(--t-body, 19px); line-height: 1.5; }
.destaques .dq-ve { color: var(--muted, #3D4966); }
.dq-ano {
  font-style: italic; font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--cobalt, #1C4597);
  font-size: clamp(40px, 4.4vw, 64px); font-variant-numeric: lining-nums;
}
.memoria .dq-ve { font-size: var(--t-lead, 24px); font-weight: 600; line-height: 1.3; }
.dq-onde, .dq-links { font-size: var(--t-small, 16px); color: var(--muted, #3D4966); }
.dq-links a { color: var(--cobalt, #1C4597); font-weight: 600; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .dq-links a:hover { color: var(--ink, #10285C); } }

.dq-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 6px; }
.dq-b {
  min-width: 48px; min-height: 48px; display: inline-grid; place-items: center; border: 0; border-radius: 0; cursor: pointer;
  background: var(--wall, #E8ECF2); color: var(--ink, #10285C); font: 600 var(--t-small, 16px)/1 var(--f, Georgia, serif);
  transition: background-color .18s var(--ease, ease);
}
@media (hover: hover) and (pointer: fine) { .dq-b:hover { background: var(--tone, #D9E1EF); } }
.dq-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.dq-b-txt { padding: 0 18px; }
.dq-conta { margin-left: auto; font-size: var(--t-small, 16px); color: var(--muted, #3D4966); font-variant-numeric: tabular-nums; }

/* the frieze: square tiles in a row, grout between them; the one on screen is framed in gold */
.dq-friso {
  position: relative; max-width: 1400px; margin: 6px auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(var(--c, 12), minmax(0, 1fr)); gap: 6px;
}
.dq-t {
  all: unset; box-sizing: border-box; position: relative; display: grid; width: 100%; aspect-ratio: 1;
  cursor: pointer; overflow: hidden; background: var(--navy, #0E2250);
}
.dq-t img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); transition: transform .6s var(--ease, ease); }
@media (hover: hover) and (pointer: fine) { .dq-t:hover img { transform: scale(1.44); } }
.dq-t-l {
  grid-area: 1 / 1; align-self: end; position: relative;
  background: var(--navy, #0E2250); color: var(--paper, #F8F9FB);
  font: 600 13px/1.2 var(--f, Georgia, serif); padding: 6px 8px 7px;
}
.dq-anos .dq-t-l { font-size: 15px; font-style: italic; font-weight: 500; }
.dq-t[aria-current] { outline: 4px solid var(--gold, #E3A92B); outline-offset: -4px; }
.dq-t[aria-current] .dq-t-l { background: var(--gold, #E3A92B); color: var(--navy, #0E2250); }
.dq-t:focus-visible { outline: 3px solid var(--cobalt, #1C4597); outline-offset: 2px; }

/* laid one tile at a time, the first time the frieze comes into view */
.dq-js .dq-friso li { opacity: 0; }
.dq-js .dq-friso.is-in li { animation: dq-lay .5s var(--ease, ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes dq-lay {
  0%   { opacity: 0; transform: translateY(-14px) scale(1.08) rotate(-1.5deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dq-js .dq-friso li { opacity: 1 !important; animation: none !important; }
  .dq-t img, .dq-play, .dq-b, .dq-ilhas button { transition: none; }
}

/* tablet: the story moves under the screen */
@media (max-width: 1080px) {
  .dq-sala { grid-template-columns: 1fr; }
  .dq-friso { grid-template-columns: repeat(var(--c-t, 7), minmax(0, 1fr)); }
}
/* phone */
@media (max-width: 760px) {
  .destaques, .memoria { padding-top: 72px; padding-bottom: 80px; }
  .dq-head { gap: 18px; }
  .dq-info { padding: 20px 18px 22px; gap: 12px; }
  .dq-nota { font-size: 20px; }
  .memoria .dq-ve { font-size: 20px; }
  /* the frieze becomes one strip you swipe along */
  .dq-friso {
    display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--m, 16px));
  }
  .dq-friso::-webkit-scrollbar { display: none; }
  .dq-friso li { flex: 0 0 112px; scroll-snap-align: start; }
  .dq-play { width: 80px; height: 80px; }
  .dq-play svg { width: 32px; height: 32px; }
}
