/* Sets: rate the sets you've seen. Builds on events.css (black hero band, ink links, yellow for actions).
   Yellow means "your rating" here: the stars you give, the fingerprint you build. Everything else stays ink. */

.sets-main { padding-top: 8px; padding-bottom: 72px; }
.sets-note { color: var(--ink-2); max-width: 60ch; }

/* ---------- hero ---------- */
.sets-hero h1 { max-width: 20ch; }
.sets-omni { max-width: 760px; }
.sets-hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; font: 500 .82rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.sets-hero .btn-buy { margin-top: 8px; }
.sets-hero .lede a { color: #fff; }

/* ---------- stars (display) ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: -0.12em; color: var(--ink); flex: none; }
.stars svg { width: 1.05em; height: 1.05em; display: block; overflow: visible; }
.stars .sb { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .32; }
.stars .sf { fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.stars .sf-half { clip-path: inset(0 50% 0 0); }
.hero .stars { color: var(--accent); }
.hero .stars .sb { opacity: .5; }
.stars-hero { font-size: 1.9rem; gap: 3px; }
.stars-sm { font-size: .82rem; }

/* ---------- the rating control ---------- */
.rate { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.rate legend { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 0; margin-bottom: 10px; }
.rate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* Ten half-star radios in reverse order, so "this one and everything before it" is a sibling selector. */
.rate-stars { display: inline-flex; flex-direction: row-reverse; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding: 6px 0; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate-stars label { position: relative; display: block; width: 28px; height: 56px; overflow-x: clip; overflow-y: visible; cursor: pointer;
  text-transform: none; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
.rate-stars label.r { margin-right: 8px; }
.rate-stars label:first-of-type { margin-right: 0; }
.rate-stars svg { width: 56px; height: 56px; display: block; transform-origin: 50% 50%; overflow: visible; }
.rate-stars label.r svg { margin-left: -28px; }
.rate-stars .sb { fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; }
.rate-stars .sf { fill: var(--accent); stroke: #000; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transition: opacity 90ms ease; }
.rate-stars input:checked ~ label .sf { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .rate-stars:hover input ~ label .sf { opacity: 0; }
  .rate-stars:hover label:hover .sf, .rate-stars:hover label:hover ~ label .sf { opacity: 1; }
}
/* While dragging, JavaScript draws the preview and the checked state follows on release. */
.rate-stars.is-dragging input ~ label .sf { opacity: 0; }
.rate-stars.is-dragging label.is-lit .sf { opacity: 1; }
.rate-stars input:focus-visible + label { outline: 2px solid #000; outline-offset: 2px; border-radius: 2px; }
.rate-readout { display: grid; gap: 2px; margin: 0; min-height: 56px; align-content: center; }
.rate-readout strong { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.rate-readout strong:empty { display: none; }
.rate-readout span { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.rate-readout.is-max span { background: var(--accent); color: #000; padding: 2px 6px; justify-self: start; }
.rate-clear { background: none; border: 0; padding: 4px 0; font: 500 .78rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rate-clear[hidden] { display: none; }

/* ---------- log cards and rows ---------- */
.set-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.set-cards .set-log { border: 1px solid #000; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.set-cards .set-log-review p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.set-cards .set-log-meta { margin-top: auto; }
.set-log { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 8px; max-width: 760px; }
.set-log-title { text-decoration: none; display: grid; gap: 2px; }
.set-log-title strong { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.set-log-title span { font: .8rem var(--mono); color: var(--ink-2); }
.set-log-title:hover strong { text-decoration: underline; }
.set-log-score { display: flex; align-items: center; gap: 10px; margin: 0; }
.set-log-score .stars { font-size: 1.35rem; }
.set-log-score > span:not(.stars) { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.set-log-review { overflow-wrap: anywhere; }
.set-log-review p { margin: 0 0 .5em; }
.set-log-meta { font: .8rem var(--mono); color: var(--muted); margin: 0; }
.set-video { margin-top: 4px; max-width: 480px; aspect-ratio: 16 / 9; background: #000; position: relative; overflow: hidden; border-radius: var(--radius); }
.set-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.set-video-play span { position: absolute; left: 12px; bottom: 12px; background: var(--accent); color: #000; font: 700 .82rem var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; }
.set-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.set-report { margin: 0; font-size: .85rem; }
.set-report summary { cursor: pointer; color: var(--muted); }
.set-report form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.set-report select { font: 16px var(--font); padding: 8px; border: 1px solid #000; border-radius: var(--radius); }
.set-rows { list-style: none; padding: 0; margin: 0; max-width: 980px; }
.set-rows li { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 14px 0; }
.set-rows li > a { text-decoration: none; display: grid; gap: 2px; }
.set-rows li > a strong { font-size: 1.1rem; }
.set-rows li > a span { font: .8rem var(--mono); color: var(--ink-2); }
.set-rows li > a:hover strong { text-decoration: underline; }
.set-row-score { display: inline-flex; align-items: center; gap: 10px; }
.set-row-score .small { font-family: var(--mono); font-size: .76rem; }
.set-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.set-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #000; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.set-links a:hover { background: #000; color: #fff; }
.inline-form { display: inline; }
.set-you { margin-top: 24px; }
.set-you .set-log { border-top: 0; padding-top: 0; }
.set-you-actions { display: flex; align-items: center; gap: 16px; margin: 4px 0 0; }
.set-you-actions .btn-link { min-height: 44px; padding: 0; }
/* Your own rating wears the same yellow stars as the control you rated with. */
.stars-yours .sb { fill: #fff; stroke: #000; opacity: 1; stroke-width: 1.4; }
.stars-yours .sf { fill: var(--accent); stroke: #000; stroke-width: 1.4; }

/* ---------- festival index ---------- */
.fest-index { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.fest-index li { border-top: 1px solid #000; }
.fest-index a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 4px 16px; text-decoration: none; transition: background-color 160ms ease; }
.fest-index strong { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.fest-index span { grid-column: 1; font: .8rem var(--mono); color: var(--ink-2); }
.fest-index em { grid-column: 2; grid-row: 1; align-self: center; font: normal 500 .78rem var(--mono); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .fest-index a:hover { background: var(--accent); } }
.fest-years { list-style: none; padding: 0; margin: 0; max-width: 1080px; }
.fest-years li { border-top: 1px solid #000; }
.fest-years a { display: grid; grid-template-columns: 5.2rem 1fr auto; align-items: baseline; gap: 4px 20px; padding: 16px 4px; text-decoration: none; transition: background-color 160ms ease; }
.fest-years strong { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fest-years span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fest-years em { font: normal .78rem var(--mono); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .fest-years a:hover { background: var(--accent); } }
@media (max-width: 599px) { .fest-years a { grid-template-columns: 4.2rem 1fr; } .fest-years strong { font-size: 1.6rem; } .fest-years em { grid-column: 2; } .fest-years span { white-space: normal; } }

/* ---------- line-ups ---------- */
.lineup-day { margin-top: 36px; }
.lineup-day h2 { font-size: 1.8rem; border-bottom: 2px solid #000; padding-bottom: 6px; margin-top: 0; }
.lineup-stage { break-inside: avoid; margin-bottom: 28px; }
.lineup-stage h3 { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 6px; }
.lineup-acts { list-style: none; padding: 0; margin: 0; }
.lineup-acts li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.lineup-acts li:first-child a { font-weight: 800; font-size: 1.12rem; }
.lineup-acts a { text-decoration: none; flex: 1; }
.lineup-acts a:hover { text-decoration: underline; }
.lineup-time { font: .8rem var(--mono); color: var(--ink-2); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.lineup-source { margin-top: 40px; }
@media (min-width: 900px) { .lineup-day { columns: 2; column-gap: 48px; } .lineup-day h2 { column-span: all; } }
@media (min-width: 1400px) { .lineup-day { columns: 3; } }

/* ---------- one set ---------- */
.set-hero-grid { display: grid; gap: 24px; align-items: end; }
.set-hero h1 { margin-bottom: .1em; }
.set-hero-where { font-size: 1.2rem; margin: 0 0 8px; }
.set-hero-where a { color: #fff; }
.set-slot { font: 500 .82rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #cfcfcf; margin: 0; }
.set-hero-score { display: grid; gap: 8px; justify-items: start; }
.set-hero-score strong { font-size: clamp(3.4rem, 9vw, 5.5rem); font-weight: 900; line-height: .9; letter-spacing: -0.04em; }
.set-hero-score > span:not(.stars) { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #cfcfcf; }
.set-hero-unrated { font: 500 .85rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #9a9a9a; }
@media (min-width: 760px) { .set-hero-grid { grid-template-columns: 1fr auto; } .set-hero-score { justify-items: end; text-align: right; } }

/* ---------- the log form ---------- */
.set-form { max-width: 680px; margin-top: 28px; }
.set-form select, .set-form textarea { font: 16px var(--font); padding: 12px 14px; border: 1px solid #000; border-radius: var(--radius); min-height: 48px; text-transform: none; letter-spacing: 0; background: #fff; color: var(--ink); }
.set-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.set-form-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .set-form-row { grid-template-columns: 1fr 1fr; } }
.set-submit { justify-self: start; min-width: 200px; }
.combo { position: relative; display: grid; gap: 6px; }
.combo > label { font: 500 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.combo-box { position: relative; }
.combo-box input { width: 100%; font: 16px var(--font); padding: 12px 14px; border: 1px solid #000; border-radius: var(--radius); min-height: 48px; }
.combo .small { margin: 0; }
.combo-list { list-style: none; margin: 0; padding: 0; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: #fff; color: var(--ink);
  border: 1px solid #000; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, .14); max-height: 320px; overflow: auto; }
.combo-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; min-height: 48px; cursor: pointer; border-bottom: 1px solid var(--line); }
.combo-list li:last-child { border-bottom: 0; }
.combo-list li.is-active, .combo-list li:hover { background: var(--accent); }
.combo-name { font: 500 16px var(--font); }
.combo-note { font: .76rem var(--mono); color: var(--ink-2); text-align: right; }
.combo-add .combo-name { font-weight: 700; }
[data-when][hidden] { display: none !important; }

/* ---------- profile ---------- */
.profile-head h1 { margin-bottom: .15em; }
.profile-stats { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 40px; margin: 22px 0 0; }
.profile-stats div { display: grid; gap: 2px; }
.profile-stats dt { font: 500 .74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #9a9a9a; }
.profile-stats dd { margin: 0; font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
.profile-stats div:last-child dd { color: var(--accent); }
@media (max-width: 599px) { .profile-stats { grid-template-columns: repeat(2, max-content); } .profile-stats div:last-child { grid-column: 1 / -1; } .profile-stats dd { font-size: 1.6rem; } }
.profile-grid { display: grid; gap: 40px; margin-top: 32px; }
@media (min-width: 960px) { .profile-grid { grid-template-columns: minmax(340px, 480px) 1fr; gap: 64px; align-items: start; } .fp { position: sticky; top: 76px; } }
.fp h2, .diary-wrap h2 { font-size: 1.6rem; margin: 0 0 12px; }
.fp-svg { width: 100%; max-width: 480px; display: block; overflow: visible; }
.fp-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.fp-ring:last-of-type { stroke: #000; }
.fp-spoke { stroke: var(--line); stroke-width: 1; }
.fp-fill { fill: var(--accent); fill-opacity: .92; stroke: #000; stroke-width: 2; stroke-linejoin: round; }
.fp-label { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; fill: var(--ink-2); }
.fp-label.is-top { fill: #000; font-weight: 700; }
.fp-needle-line { stroke: #000; stroke-width: 3.5; stroke-linecap: round; }
.fp-needle-head { fill: #000; }
.fp-hub { fill: #000; stroke: #fff; stroke-width: 3; }
.fp-caption { color: var(--ink-2); max-width: 46ch; margin: 8px 0 0; }
.fp-best { font: 500 .82rem var(--mono); margin: 12px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .fp-shape { transform-box: view-box; transform-origin: 200px 200px; animation: fp-grow 900ms var(--ev-ease) both; }
  .fp-needle { transform-box: view-box; transform-origin: 200px 200px; animation: fp-swing 1000ms var(--ev-ease) 280ms both; }
  @keyframes fp-grow { from { transform: scale(.15) rotate(-30deg); opacity: 0; } }
  @keyframes fp-swing { from { transform: rotate(-150deg) scale(.5); opacity: 0; } }
}
.diary-year h3 { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 24px 0 4px; }
.diary { list-style: none; padding: 0; margin: 0; }
.diary li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; }
.diary li > a { text-decoration: none; display: grid; gap: 2px; }
.diary li > a strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.diary li > a span { font: .78rem var(--mono); color: var(--ink-2); }
.diary li > a:hover strong { text-decoration: underline; }
.diary li .stars { font-size: 1.05rem; }
.diary li p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- best sets: event-style cards ---------- */
.set-card .ev-media { background: #000; }
.set-card-score { display: flex; align-items: center; gap: 8px; }
.set-card-score .stars { font-size: 1.1rem; }
.set-card-score b { font-size: 1rem; font-weight: 800; }
.ev .ev-picks a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #000; }
