@font-face {
  font-family: Archivo;
  src: url("../../take-one-fest-galas/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("../../take-one-fest-galas/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #110e17;
  --surface: #1c1625;
  --panel: #251c30;
  --line: #45374e;
  --cream: #fff5ec;
  --muted: #d3c4d6;
  --amber: #ffce88;
  --coral: #ff7b88;
  --lavender: #d6bdff;
  --radius: 1.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--cream);
  font: 500 1rem/1.5 Manrope, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, audio:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.shell { width: min(100% - 3.75rem, 1256px); margin-inline: auto; }
#galas, #seguir-galas, #votacion, #faq, #criterios-jurado, #artistas, #participantes, .artist {
  scroll-margin-top: 1rem;
}

.skip {
  position: absolute;
  z-index: 50;
  left: 1rem;
  top: -5rem;
  padding: .8rem 1rem;
  background: var(--cream);
  color: var(--background);
}
.skip:focus { top: 1rem; }
.preview { padding: .35rem .7rem; text-align: center; background: var(--lavender); color: #281838; font-size: .82rem; font-weight: 800; }

.top { border-bottom: 1px solid var(--line); background: #16121d; }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.top-inner { min-height: 64px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; padding: .25rem 0; }
.brand img { width: 52px; height: auto; }
.top nav { display: flex; align-items: center; gap: clamp(.85rem, 4vw, 2.5rem); margin-left: auto; font-size: .9rem; font-weight: 800; }
.top nav a, .footer-inner nav a { min-height: 44px; display: inline-flex; align-items: center; }
.top nav a:hover, .footer-inner nav a:hover, .section-head a:hover { color: var(--amber); }
.stream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.stream:hover { border-color: var(--coral); }
.dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  min-height: clamp(17rem, 26vw, 22rem);
  margin-top: clamp(.7rem, 1.6vw, 1.25rem);
  border: 1px solid #6b4265;
  border-radius: calc(var(--radius) + .25rem);
  background:
    radial-gradient(ellipse at 2% 110%, #78304b99 0, transparent 56%),
    radial-gradient(ellipse at 80% -20%, #7a4d8988 0, transparent 67%),
    linear-gradient(120deg, #28152d 0, #241a35 64%, #372241);
}

.hero-copy {
  align-self: center;
  padding: clamp(1.25rem, 3.5vw, 3.25rem);
}
.hero-date { display: block; color: var(--amber); font-size: clamp(.76rem, 1.5vw, .95rem); font-weight: 850; }
.hero-date span { padding-inline: .13rem; }
.hero-date .hero-zone { color: var(--muted); font-weight: 700; }
.hero h1 {
  margin: .55rem 0 1.2rem;
  font: 900 clamp(4.65rem, 10.1vw, 8.6rem)/.78 Archivo, system-ui, sans-serif;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.hero h1 span {
  display: block;
  margin-bottom: .18em;
  color: #f0d7f0;
  font-size: .39em;
  line-height: 1;
  letter-spacing: -.045em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 44px;
  padding: .54rem .95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.2;
}
.hero-primary { background: var(--coral); color: #210f24; }
.hero-primary:hover { background: #ff9a9e; }
.hero-actions .hero-secondary { border-color: #886b91; background: #17101db3; }
.hero-secondary:hover { background: #3e284b; }

.hero-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .375rem;
  min-width: 0;
  padding: .625rem;
}
.hero-photo, .portrait { position: relative; overflow: hidden; background: #342640; }
.hero-photo { border-radius: .55rem; }
.hero-photo img, .portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero-photo[data-artist="94"] img, .hero-photo[data-artist="51"] img,
.portrait[data-artist="94"] img, .portrait[data-artist="51"] img { object-position: center; }
.hero-photo[data-artist="95"] img, .portrait[data-artist="95"] img { object-position: center 23%; }
.hero-photo[data-artist="103"] img, .portrait[data-artist="103"] img { object-position: center 52%; }

.voting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem clamp(1rem, 3vw, 2rem);
  margin-top: clamp(.8rem, 1.8vw, 1.35rem);
  padding: clamp(.95rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.voting-copy { align-self: center; }
.voting-copy h2, .section-head h2 {
  font: 900 clamp(1.55rem, 3.7vw, 2.85rem)/1.02 Archivo, system-ui, sans-serif;
  letter-spacing: -.05em;
}
.voting-copy h2 { display: flex; align-items: center; gap: .45em; }
.voting-copy p { margin-top: .35rem; color: var(--muted); font-size: .86rem; }
[data-phase="open"] .voting-copy .dot { background: #b6f2a0; box-shadow: 0 0 16px #b6f2a07a; }
[data-phase="closed"] .voting-copy .dot { background: var(--muted); }

.voting-weights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.weight {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: .2rem .55rem;
  padding: .64rem .8rem;
  background: var(--panel);
  border-radius: .7rem;
  border-top: 2px solid currentColor;
  font-size: clamp(.76rem, 1.45vw, .88rem);
  font-weight: 800;
}
.weight strong { white-space: nowrap; font: 900 clamp(1.8rem, 3.5vw, 2.65rem)/.95 Archivo, system-ui, sans-serif; letter-spacing: -.06em; }
.weight strong span { font-size: .55em; letter-spacing: 0; }
.weight > span { color: var(--cream); }
.weight-public { color: var(--amber); }
.weight-jury { color: var(--lavender); }

.voting-guide, .jury-criteria { padding-top: .85rem; border-top: 1px solid var(--line); }
.voting-guide { display: grid; align-content: start; gap: .6rem; }
.voting-guide h3, .jury-criteria h3 { font: 850 1rem/1.2 Archivo, system-ui, sans-serif; }
.voting-guide p, .jury-criteria p { max-width: 60ch; margin-top: .26rem; color: var(--muted); font-size: .88rem; }
.voting-guide p strong { color: var(--cream); }
.voting-guide summary { width: fit-content; min-height: 44px; padding-block: .62rem; color: var(--lavender); font-size: .84rem; font-weight: 800; cursor: pointer; }
.voting-guide details[open] p { padding-bottom: .35rem; }

.jury-criteria ul { display: grid; gap: .48rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.jury-criteria li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .04rem .55rem; font-size: .84rem; font-weight: 750; line-height: 1.23; }
.jury-criteria li strong { color: var(--lavender); font: 850 .93rem/1.2 Archivo, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.jury-track { grid-column: 1 / -1; height: .28rem; margin-top: .15rem; border-radius: 1rem; background: var(--line); }
.jury-track::before { display: block; width: var(--weight); height: 100%; border-radius: inherit; background: var(--lavender); content: ""; }

.lineup { margin: clamp(1.4rem, 3.1vw, 2.4rem) 0 2.7rem; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; margin-bottom: .8rem; }
.section-head a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.artists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 1.6vw, 1.15rem); margin: 0; padding: 0; list-style: none; }
.artist {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.artist:target { outline: 2px solid var(--amber); outline-offset: 2px; }
.portrait { aspect-ratio: 1.38; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.artist-name { flex: 1; padding: .82rem .8rem .52rem; }
.artist-name h3 { font: 900 clamp(1.08rem, 2.1vw, 1.95rem)/1.06 Archivo, system-ui, sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.artist-name p { margin-top: .25rem; color: var(--muted); font-size: .86rem; font-weight: 750; line-height: 1.22; }

.card-actions { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; align-items: start; gap: .42rem; padding: .3rem .8rem .75rem; }
.card-actions:has(details[open]) { padding-bottom: 58px; }
.listen, .vote-form { min-width: 0; }
.listen summary, .vote, .vote-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  width: 100%;
  min-height: 44px;
  padding: .35rem .25rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  font-size: clamp(.76rem, 1.4vw, .91rem);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}
.listen summary { list-style: none; cursor: pointer; color: var(--cream); }
.listen summary::-webkit-details-marker { display: none; }
.listen summary:hover { background: var(--panel); border-color: var(--lavender); }
.play-icon { width: 0; height: 0; border: solid transparent; border-width: 4px 0 4px 6px; border-left-color: var(--amber); }
.listen[open] .play-icon { width: 6px; height: 6px; border: 0; background: var(--amber); }
.listen audio { position: absolute; bottom: .5rem; left: .8rem; width: calc(100% - 1.6rem); height: 42px; }
.vote { border-color: transparent; background: var(--amber); color: #25152a; cursor: pointer; }
.vote:not(:disabled):hover { background: #ffdea9; }
.vote:disabled { cursor: default; }
.vote-status { border-color: transparent; color: var(--muted); background: var(--panel); }
.voted { color: #dbf7cc; background: #263b27; }
.vote-feedback { margin: 0 .8rem; color: var(--cream); font-size: .84rem; }
.vote-feedback:not(:empty) { margin-bottom: .7rem; }
.notice { margin-bottom: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }

footer { background: #16121d; border-top: 1px solid var(--line); }
.footer-inner { padding-block: .75rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.2rem; color: var(--muted); font-size: .83rem; font-weight: 750; }

@media (max-width: 800px) {
  .shell { width: calc(100% - 2rem); }
  .artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: .72rem; }
  .hero-art { min-height: clamp(10rem, 44vw, 15rem); }
  .voting { grid-template-columns: minmax(0, 1fr); gap: .76rem; }
  .weight { flex-wrap: nowrap; }
}

@media (max-width: 470px) {
  .shell { width: calc(100% - 1.5rem); }
  .top-inner { gap: .45rem; }
  .top .brand img { width: 43px; }
  .top nav { margin-left: 0; gap: .6rem; font-size: .76rem; }
  .stream { padding-inline: .55rem; gap: .24rem; font-size: .72rem; }
  .stream .dot { display: none; }
  .hero h1 { font-size: clamp(4rem, 18vw, 5.3rem); }
  .hero-copy { padding: 1rem .85rem .55rem; }
  .hero-actions a { padding-inline: .65rem; font-size: .78rem; }
  .hero-art { padding: .45rem; gap: .3rem; }
  .weight { flex-wrap: wrap; gap: .22rem .45rem; padding: .5rem .62rem; }
  .section-head { margin-bottom: .45rem; }
  .section-head a { min-height: 40px; }
  .portrait { aspect-ratio: 1.18; }
  .artist-name { padding: .62rem .5rem .36rem; }
  .artist-name p { font-size: .76rem; }
  .card-actions { grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .25rem .5rem .5rem; }
  .listen audio { left: .5rem; width: calc(100% - 1rem); }
  .footer-inner { align-items: flex-start; }
  .footer-inner nav { column-gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@supports not selector(:has(details[open])) {
  .listen audio { position: static; width: 100%; }
}
