/* V2 homepage and profile styles. */
[hidden] { display: none !important; }
/* Snapping is active only in the hero. The script releases it at the feed
   boundary so the browser owns every pixel of normal page scrolling. */
html:has(.hm-fullscreen) {
  scroll-padding-block-start: var(--hm-nav-height, 4.5rem);
}
html[data-home-hero] {
  height: 100%;
  overflow-y: scroll;
}
html[data-home-hero][data-hero-snap] {
  scroll-snap-type: y mandatory;
}
.hm-fullscreen.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-inline-size: none;
  min-block-size: calc(100svh - var(--hm-header-space, 9rem));
  padding-inline: clamp(1.125rem, 4vw, 5rem);
  padding-block: clamp(1.5rem, 4svh, 3rem) max(1rem, env(safe-area-inset-bottom));
  scroll-snap-align: start;
  scroll-margin-block-start: max(0px, calc(var(--hm-header-space, 9rem) - var(--hm-nav-height, 4.5rem)));
}
.hm-fullscreen.home-hero .hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4svh, 2.5rem);
  margin: 0;
  padding: 0;
  border: 0;
}
.hm-fullscreen .hm-hero-title {
  font-size: clamp(3.5rem, min(14vw, 19svh), 15rem);
  line-height: .88;
  text-align: center;
  margin: 0;
  overflow-wrap: anywhere;
}
.hm-hero-title > span { display: block; }
/* "Show," : Big Shoulders' comma drops ~0.2em below the line, into the
   next line's capitals at line-height .88, so those headlines get a gap. */
.hm-hero-title.has-comma > span:first-child { padding-block-end: .14em; }
.hm-fullscreen .hero-row {
  inline-size: min(100%, 65rem);
  align-self: center;
  margin: 0;
}
.hm-fullscreen .hero-upload-panel,
.hm-fullscreen .hero-discord-panel { padding: clamp(1.25rem, 3svh, 2rem); }
.hm-scroll-cue {
  flex: none;
  display: grid;
  place-items: center;
  align-self: center;
  inline-size: 3rem;
  block-size: 3rem;
  border: 1px solid var(--ink-500);
  border-radius: 50%;
  color: var(--ink-800);
  transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out;
}
.hm-scroll-cue svg:not(.r3d-icon) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hm-scroll-cue:hover { color: var(--red-400); border-color: currentColor; background: var(--ink-100); }
.hm-scroll-cue:focus-visible { outline: 2px solid var(--red-400); outline-offset: 4px; }
html[data-hero-cue-hidden] .hm-scroll-cue { opacity: 0; pointer-events: none; }
.hm-content { scroll-snap-align: start; padding-block-start: 1.5rem; }
.hm-content:focus { outline: none; }
.hm-content > .hm-week { margin-block-start: 0; }
/* On phones, lead with usable actions instead of spending the first fold
   on display type and empty drop-zone space. Short screens may still scroll. */
@media (max-width: 720px), (max-width: 960px) and (max-height: 480px) {
  .hm-fullscreen.home-hero {
    gap: .75rem;
    padding-block: 1rem max(1rem, env(safe-area-inset-bottom));
  }
  .hm-fullscreen.home-hero .hero { justify-content: flex-start; gap: 1rem; }
  .hm-fullscreen .hero-row { gap: .75rem; }
  .hm-fullscreen .hero-upload-panel {
    min-inline-size: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem;
  }
  .hm-fullscreen .hero-drop-cue {
    flex-basis: 100%;
    font-size: 1.25rem;
    line-height: 1.2;
    text-align: center;
  }
  .hm-fullscreen .hero-upload-btn,
  .hm-fullscreen .hero-discord-cta,
  .hm-fullscreen .up-url-go { min-block-size: 44px; }
  .hm-fullscreen .hero-upload-panel .up-url {
    flex: 1 0 100%;
    min-inline-size: 0;
    margin-block-start: .5rem;
  }
  .hm-fullscreen .up-url-row { flex-direction: row; }
  .hm-fullscreen .up-url-input { min-block-size: 44px; font-size: 1rem; }
  .hm-fullscreen .hero-discord-panel { gap: .625rem; padding: .875rem; }
  .hm-fullscreen .hero-discord-title { font-size: 1.25rem; line-height: 1.2; }
  .hm-fullscreen .hero-discord-points { gap: .3125rem; font-size: .875rem; line-height: 1.4; }
  .hm-fullscreen .hero-discord-cta { align-self: stretch; justify-content: center; }
}
@media (max-width: 720px) {
  .hm-fullscreen .hm-hero-title { font-size: clamp(2.25rem, 11.5vw, 2.75rem); line-height: .95; }
}
@media (min-width: 721px) and (max-width: 960px) and (max-height: 480px) {
  .hm-fullscreen .hm-hero-title { font-size: clamp(2.5rem, 6vw, 3.25rem); line-height: 1; }
  .hm-fullscreen .hm-hero-title > span { display: inline; }
}
.hm-section { margin-block-start: 2.5rem; }
.hm-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-block-end: 1rem; }
.hm-heading h2 { margin: 0; font: 900 1.875rem/1 var(--font-display); text-transform: uppercase; color: var(--ink-800); }
.hm-meta { font: .6875rem/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-700); }
.hm-week-card.card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-radius: var(--rad-lg); animation: none; }
.hm-week-picture { position: relative; display: block; color: inherit; }
.hm-week-card .thumb { aspect-ratio: 16 / 9; height: 100%; }
.hm-week-card .thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.hm-week-card .body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .875rem; padding: clamp(1.25rem, 2.6vw, 2.25rem); min-inline-size: 0; }
.hm-week-card.card .song { margin: 0; white-space: normal; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; }
.hm-week-card .stats { display: flex; flex-wrap: wrap; gap: .75rem; font-size: 1rem; }
.hm-week-person { display: inline-flex; align-items: center; gap: .625rem; font: .8125rem/1.4 var(--font-body); color: var(--ink-800); }
.hm-week-person img { border-radius: 50%; }
.hm-week-person img { inline-size: 2rem; block-size: 2rem; flex: none; object-fit: cover; }
.hm-week-person:hover { text-decoration: underline; text-underline-offset: .2em; }
.featured-section .featured-head { flex-wrap: wrap; gap: .5rem 1.25rem; }
.featured-summary { margin: 0; font: 400 .8125rem/1.45 var(--font-body); color: var(--ink-700); }
.featured-section .mode-row-head .mode-name { font: 600 .9375rem/1.4 var(--font-body); letter-spacing: normal; text-transform: none; color: var(--ink-800); }
html[data-v2-icons] .featured-section .video-card .vc-map { font: 400 .75rem/1.45 var(--font-body); color: var(--ink-700); }
html[data-v2-icons] .featured-section .video-card .vc-people { font: 500 .75rem/1.45 var(--font-body); }
html[data-v2-icons] .video-card[data-card-size='compact'] .vc-meta { font: 400 .75rem/1.45 var(--font-body); font-variant-numeric: tabular-nums; color: var(--ink-700); }
.hm-play { position: absolute; inset: 0; display: grid; place-content: center; pointer-events: none; }
.hm-play svg { inline-size: 3.5rem; block-size: 3.5rem; padding: .875rem; background: color-mix(in oklch, var(--ink-0), transparent 15%); border: 1px solid var(--ink-500); border-radius: 50%; fill: var(--ink-900); }
.hm-youtube { gap: .5rem; margin-block-start: .375rem; }
.hm-youtube svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hm-youtube svg path { fill: currentColor; stroke: none; }
.hm-person { margin-block-start: 1.5rem; }
.hm-person-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-end: .625rem; }
.hm-person-link { display: flex; align-items: center; gap: .625rem; color: var(--ink-800); min-inline-size: 0; }
.hm-person-link h3 { font: 700 1.125rem/1.2 var(--font-body); margin: 0; overflow-wrap: anywhere; }
.hm-person-link > img, .hm-avatar { inline-size: 2.125rem; block-size: 2.125rem; border-radius: 50%; flex: none; }
.hm-avatar { display: grid; place-content: center; font: 700 1.125rem/1 var(--font-display); color: var(--ink-800); background: var(--ink-100); border: 1px solid var(--ink-300); }
.hm-profile-link { flex: none; font: .6875rem/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-700); }
.hm-person .mode-row { margin-block-end: 0; }
.hm-person-videos .mini-card .song { font-size: .875rem; }
.hm-person-videos .mini-card .body { padding: .75rem; gap: .375rem; }
.hm-person-videos .mini-card .meta { color: var(--ink-700); font-size: .625rem; }
.hm-age { font: .625rem/1.4 var(--font-mono); color: var(--ink-700); }
.hm-followed + .featured-section { margin-block-start: 2.75rem; }
.hm-empty, .hm-guest { padding: 2rem; border: 1px dashed var(--ink-500); border-radius: var(--rad-md); }
.hm-empty h3, .hm-guest h3 { font: 700 1.25rem/1.3 var(--font-body); margin: 0 0 .625rem; }
.hm-empty p, .hm-guest p { color: var(--ink-700); font-size: .875rem; margin: 0 0 1.25rem; }
.hm-recent { margin-block-start: 2rem; }
.hm-recent .title { margin: 0; }
.hm-recent-grid .card { animation: none; }

.pf-id { grid-template-columns: auto minmax(0, 1fr) auto; }
.pf-actions { display: flex; align-items: center; margin-block-start: .875rem; block-size: calc(var(--pf-name) * .95); }
.pf-follow { display: inline-grid; justify-items: center; }
.pf-follow > span { grid-area: 1 / 1; white-space: nowrap; }
.pf-follow[aria-pressed="false"] .pf-follow-on,
.pf-follow[aria-pressed="true"] .pf-follow-off { visibility: hidden; }
.btn.primary.pf-follow[aria-pressed="true"],
.btn.primary.pf-follow[aria-pressed="true"]:hover { background: var(--ink-100); border-color: var(--ink-300); color: var(--ink-800); box-shadow: none; transform: none; }
.btn.primary.pf-follow[aria-pressed="true"]:hover { border-color: var(--ink-500); }
.pf-follow:disabled { opacity: .6; cursor: wait; }
.hm-follow-status { margin: .75rem 0 0; color: var(--ink-700); font: .8125rem/1.5 var(--font-body); }
.hm-follow-status:empty { display: none; }
.hm-week .hm-empty p { margin-block-end: 0; }
.hm-week a:focus-visible, .pf-follow:focus-visible { outline: 2px solid var(--red-400); outline-offset: 3px; }
@media (max-width: 720px) {
  .hm-week-card.card { grid-template-columns: minmax(0, 1fr); }
  .hm-week-card .thumb { height: auto; }
  .hm-week-card .body { padding: 1.25rem; }
  .hm-heading h2 { font-size: 1.625rem; }
  .hm-heading .hm-meta { font-size: .625rem; }
}
@media (max-width: 640px) {
  .pf-id { grid-template-columns: auto minmax(0, 1fr); }
  .pf-actions { grid-column: 1 / -1; block-size: auto; margin-inline-start: calc(var(--pf-pad) * -1); }
  .pf-actions .btn { inline-size: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-home-hero][data-hero-snap] { scroll-snap-type: none; }
  .hm-scroll-cue { transition: none; }
  .hm-section .card, .hm-section .mini-card { transition: none; animation: none; }
}
