html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@font-face { font-family: "Jersey 10 Charted"; src: url("/assets/fonts/Jersey10Charted.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
.rotation-site-header .rotation-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.rotation-site-header .brand { min-height: 44px; }
.rotation-site-header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.rotation-site-header nav a, .rotation-site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.rotation-site-footer { padding-bottom: 30px; }
.rotation-site-footer .signoff { margin-top: 0; }
.rotation-site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.rotation-site-footer nav span { margin-right: auto; }
.rotation-site-footer .credit { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.rotation-page { padding: 22px 0 72px; }
.rotation-wrap { max-width: 960px; margin: 0 auto; padding: 0 40px; }
.rotation-header { border-top: 1px solid var(--fg); padding: 14px 0 34px; }
.rotation-brand { color: var(--accent); font-family: "Jersey 10 Charted", sans-serif; font-size: 32px; text-decoration: none; }
.rotation-date, .username, .album-count { color: var(--muted); margin: 8px 0 0; }
.rotation-header h1 { font-size: clamp(43px, 9vw, 80px); letter-spacing: -.06em; line-height: .98; margin: 34px 0 0; overflow-wrap: anywhere; }
.cover-overview { margin-bottom: 32px; }
.cover-grid { --cover-columns: 8; --cover-gap: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--cover-gap); }
.cover-grid > a { display: block; flex: 0 0 calc((100% - (var(--cover-columns) - 1) * var(--cover-gap)) / var(--cover-columns)); min-width: 0; aspect-ratio: 1; }
.cover-grid img { width: 100%; height: 100%; background-color: var(--card); display: block; object-fit: cover; }
.cover-grid a:focus-visible, .cover-toggle summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cover-toggle { display: none; margin-top: 10px; }
.cover-toggle summary { width: fit-content; min-height: 44px; align-content: center; cursor: pointer; color: var(--accent); }
.cover-show-fewer, .cover-toggle[open] .cover-show-all { display: none; }
.cover-toggle[open] .cover-show-fewer { display: inline; }
/* Native disclosure controls the grid without requiring client-side JavaScript. */
.cover-overview:not(:has(.cover-toggle[open])) .cover-grid > :nth-child(n+25) { display: none; }
.cover-overview:has(.cover-grid > :nth-child(25)) .cover-toggle { display: block; }
@media (max-width: 900px) {
  .cover-grid { --cover-columns: 6; }
  .cover-overview:not(:has(.cover-toggle[open])) .cover-grid > :nth-child(n+19) { display: none; }
  .cover-overview:has(.cover-grid > :nth-child(19)) .cover-toggle { display: block; }
}
@media (max-width: 560px) {
  .cover-grid { --cover-columns: 4; }
  .cover-overview:not(:has(.cover-toggle[open])) .cover-grid > :nth-child(n+13) { display: none; }
  .cover-overview:has(.cover-grid > :nth-child(13)) .cover-toggle { display: block; }
}
.rotation-entry { scroll-margin-top: 24px; position: relative; }
.rotation-entry:target, .rotation-entry:has(.legacy-anchor:target) { border-top: 2px solid var(--accent); }
/* The earlier index-based anchor, kept as a zero-size marker so old links and the cover grid still land on the entry. */
.legacy-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: 24px; }
.rotation-entry:target:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.week-note { border-left: 2px solid var(--accent); font-size: clamp(18px, 2.8vw, 24px); max-width: 700px; padding-left: 20px; margin: 30px 0 38px; }
.week-note p:last-child, .entry-note p:last-child { margin-bottom: 0; }
.open-in-app, .see-rotation { align-items: center; background: var(--accent); color: var(--on-accent); display: inline-flex; font-weight: 700; min-height: 44px; padding: 10px 16px; text-decoration: none; }
.rotation-entries { border-top: 1px solid var(--border); margin-top: 44px; }
.rotation-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.album-cover { width: 150px; aspect-ratio: 1; display: block; background: var(--card); object-fit: cover; }
.album-cover--art { height: auto; }
.album-cover--missing { align-items: center; color: var(--muted); display: flex; font-family: "Jersey 10 Charted", sans-serif; font-size: 24px; justify-content: center; }
.entry-copy h2 { font-size: clamp(25px, 4vw, 40px); letter-spacing: -.045em; line-height: 1.05; margin: 2px 0 8px; overflow-wrap: anywhere; }
.artist, .entry-details, .favorite-track { margin: 0 0 8px; color: var(--muted); }
.entry-note { max-width: 660px; margin-top: 18px; overflow-wrap: anywhere; }
.album-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; }
.album-links a { min-height: 44px; display: inline-flex; align-items: center; }
.album-link-status { color: var(--muted); margin: 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-link { color: var(--muted); margin-top: 38px; }
.unavailable { max-width: 680px; padding-top: 70px; }
.unavailable h1 { font-size: clamp(40px, 8vw, 62px); letter-spacing: -.05em; line-height: 1; margin: 34px 0 20px; }
@media (max-width: 560px) { .rotation-wrap { padding: 0 20px; } .rotation-header { padding-bottom: 24px; } .cover-grid { --cover-gap: 4px; margin-inline: -20px; } .rotation-entry { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; } .album-cover { width: 90px; } .entry-copy h2 { font-size: 26px; } }

@media (max-width: 380px) { .rotation-site-header .rotation-wrap { flex-wrap: wrap; gap: 4px; } .rotation-site-footer .signoff { flex-wrap: wrap; gap: 16px; } }

.album-links { gap: 6px 14px; }
.album-links .service-link { gap: 8px; text-decoration: none; }
.service-link:hover span { text-decoration: underline; }
.album-links .service-link--search span { white-space: nowrap; }
.album-link-lead { flex-basis: 100%; min-height: 0; }
.service-logo { width: 22px; height: 22px; object-fit: contain; }
.service-logo--qobuz { border-radius: 5px; }
.album-links .musicbrainz-link { font-size: 13px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .service-logo:not(.service-logo--qobuz) { filter: invert(1); } }


.other-links { flex-basis: 100%; font-size: 14px; }
.other-links summary { cursor: pointer; color: var(--muted); min-height: 44px; align-content: center; width: fit-content; }
.other-link-options { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.other-links summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* One review on its own page: a single column, the cover first, actions one per row. */
.review .review-entry { display: block; padding: 40px 0 56px; scroll-margin-top: 24px; }
.review .review-cover { margin-bottom: 28px; max-width: 500px; }
.review .album-cover { width: 100%; max-width: 500px; height: auto; }
.review .album-cover--missing { font-size: clamp(28px, 8vw, 48px); }
.review-copy { max-width: 660px; }
.review-copy h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.045em; line-height: 1.05; margin: 2px 0 10px; overflow-wrap: anywhere; }
.review .entry-details { font-size: 20px; }
.review-author { align-items: center; color: var(--muted); display: flex; gap: 8px; margin: 28px 0 6px; }
.review-avatar { border-radius: 50%; flex: none; height: 40px; object-fit: cover; width: 40px; }
.review-avatar--initials { align-items: center; background: var(--card); color: var(--muted); display: inline-flex; font-weight: 700; justify-content: center; }
.review-listener { color: var(--fg); font-weight: 700; overflow-wrap: anywhere; }
.review .rotation-date { margin: 0 0 24px; }
.review-actions { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.review-actions a { display: flex; justify-content: center; text-align: center; width: 100%; }
.review-author .username { margin: 0; overflow-wrap: anywhere; }

/* Profile pages (/@username) */
.profile-header { align-items: center; display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; text-align: center; }
.profile-header h1 { margin: 0; overflow-wrap: anywhere; }
.profile-header .username { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.profile-avatar { border-radius: 50%; height: 96px; object-fit: cover; width: 96px; }
.profile-avatar--initials { align-items: center; background: var(--card); border: 1px solid var(--border); box-sizing: border-box; color: var(--muted); display: inline-flex; font-size: 2rem; font-weight: 700; justify-content: center; }
.profile-bio { margin: 4px 0 0; max-width: 560px; overflow-wrap: anywhere; white-space: pre-line; }
.profile-notice { color: var(--muted); margin: 0 0 20px; text-align: center; }
.profile-actions { display: flex; flex-direction: column; gap: 12px; margin: 0 auto 32px; max-width: 440px; }
.profile-actions a { display: flex; justify-content: center; text-align: center; width: 100%; }
.profile h2 { margin: 0 0 12px; }
.profile-empty { color: var(--muted); }
.favorites-shelf { display: grid; gap: clamp(8px, 2.5vw, 12px); grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0 0 32px; padding: 0; }
.favorite summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.favorite summary::-webkit-details-marker { display: none; }
.favorite summary::after { color: var(--accent); content: "Links \25BE"; content: "Links \25BE" / ""; font-size: 14px; font-weight: 700; }
.favorite details[open] > summary::after { content: "Links \25B4"; content: "Links \25B4" / ""; }
.favorite summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.favorite .album-cover { aspect-ratio: 1; height: auto; width: 100%; }
.favorite-title { font-weight: 700; overflow-wrap: anywhere; }
.favorite-artist { color: var(--muted); overflow-wrap: anywhere; }
.favorite details[open] > :not(summary) { margin-top: 8px; }
/* A favorite sits in a quarter-width shelf column: search links there show logos only (names stay in the label). */
.favorite .album-links { gap: 0 4px; margin-top: 0; }
.favorite .service-link--search { justify-content: center; min-width: 36px; }
.favorite .service-link--search span { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.rotation-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0 0 32px; padding: 0; }
.rotation-card a { color: inherit; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.rotation-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rotation-card-covers { display: grid; gap: 4px; grid-template-columns: repeat(4, 1fr); }
.rotation-card-cover { aspect-ratio: 1; background: var(--card); display: block; height: auto; object-fit: cover; width: 100%; }
.rotation-card-cover--missing { align-items: center; border: 1px solid var(--border); box-sizing: border-box; color: var(--muted); display: flex; font-family: "Jersey 10 Charted", sans-serif; font-size: clamp(16px, 4vw, 28px); justify-content: center; }
.rotation-card-cover--missing::after { content: "R"; }
.favorite-cover { aspect-ratio: 1; display: block; position: relative; width: 100%; }
.favorite-cover-r { align-items: center; border: 1px solid var(--border); box-sizing: border-box; color: var(--muted); display: flex; font-family: "Jersey 10 Charted", sans-serif; font-size: clamp(32px, 9vw, 56px); inset: 0; justify-content: center; position: absolute; }
.favorite-cover .album-cover--art { background: transparent; position: relative; }
.favorite .album-cover--missing { border: 1px solid var(--border); box-sizing: border-box; font-size: clamp(32px, 9vw, 56px); }
.past-favorites-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.past-favorite { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.past-favorite .album-cover { aspect-ratio: 1; height: 44px; width: 44px; }
.past-favorite .favorite-cover { width: 44px; }
.past-favorite .favorite-cover-r, .past-favorite .album-cover--missing { font-size: 20px; }
.past-favorite-text { display: flex; flex-direction: column; min-width: 0; }
.past-favorite-span { color: var(--muted); white-space: nowrap; }
.rotation-card-range { font-weight: 700; }
.rotation-card-count { color: var(--muted); }
@media (max-width: 480px) {
  .favorite-title, .favorite-artist { font-size: 13px; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
  .favorite summary::after { font-size: 13px; }
  .rotation-cards { grid-template-columns: 1fr; }
}

.review-author .username, .rotation-header .username a { color: inherit; text-decoration: none; }
.review-author .username:hover, .rotation-header .username a:hover { text-decoration: underline; }

/* A cover that failed and is being retried keeps its box but hides the broken-image glyph until it loads. */
img.artwork-retrying { visibility: hidden; }
