/* 首页 Hi-Res 推介，对照 hifi361-新首页.html 的 .hires。 */

.hires-home-vy {
  --red: #C9002B;
  --gold: #F6B800;
  --bg: #FFFFFF;
  --ink: #161616;
  --ink2: #64615E;
  --line: #E7E0D8;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --r-card: 6px;
  --shadow-red: 0 26px 48px -30px rgba(160, 0, 37, .42);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --w: 1488px;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
  padding: 64px 0 72px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  scroll-margin-top: 68px;
}
.hires-home-vy,
.hires-home-vy * { box-sizing: border-box; }
.hires-home-vy h2,
.hires-home-vy h3,
.hires-home-vy p,
.hires-home-vy ul { margin: 0; padding: 0; }
.hires-home-vy ul { list-style: none; }
.hires-home-vy a { color: inherit; text-decoration: none; }
.hires-home-vy button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hires-home-vy img { display: block; max-width: none; }
.hires-home-vy svg { display: block; flex: none; max-width: none; }
.hires-home-vy .wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.hires-home-vy .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.hires-home-vy .sec-eyebrow { display: flex; align-items: center; gap: 10px; font: 700 12px/1.5 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.hires-home-vy .sec-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }
.hires-home-vy .sec-title { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 800; color: var(--ink); text-wrap: balance; }
.hires-home-vy .sec-more { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink2); transition: color .2s; }
.hires-home-vy .sec-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hires-home-vy .sec-more:hover { color: var(--red); }
.hires-home-vy .sec-more:hover svg { transform: translateX(3px); }

.hires-home-vy .tabs-row { margin-top: 28px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.hires-home-vy .tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.hires-home-vy .tabs::-webkit-scrollbar { display: none; }
.hires-home-vy .tab { position: relative; flex: none; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: color .2s; }
.hires-home-vy .tab:first-child { padding-left: 0; }
.hires-home-vy .tab::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.hires-home-vy .tab:first-child::after { left: 0; }
.hires-home-vy .tab:hover { color: var(--ink); }
.hires-home-vy .tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.hires-home-vy .tab[aria-selected="true"]::after { transform: scaleX(1); }

.hires-home-vy .hr-panels { transition: opacity .3s; }
.hires-home-vy .hr-panels.is-dim { opacity: 0; }
.hires-home-vy .hr-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; }
.hires-home-vy .hr-grid[hidden] { display: none; }
.hires-home-vy .hr-grid > li { display: flex; min-width: 0; overflow: visible; }
.hires-home-vy .hr-grid.swap > li { animation: hiresVyPop .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes hiresVyPop { from { opacity: 0; transform: translateY(12px); } }
.hires-home-vy .hr-empty { grid-column: 1 / -1; color: var(--ink2); }

.hires-home-vy .hrc { --cv: 148px; --d: 136px; --peek: 30px; --pb: 38px; position: relative; flex: 1; min-width: 0; display: flex; gap: 16px; padding: 16px; overflow: visible !important; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--ink); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.hires-home-vy .hrc:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-red); color: var(--ink); }
.hires-home-vy .hrc:has(.hr-play.is-playing),
.hires-home-vy .hrc:has(.hr-play[aria-pressed="true"]) { border-color: var(--red); }
.hires-home-vy,
.hires-home-vy .wrap,
.hires-home-vy .hr-panels,
.hires-home-vy .hr-grid,
.hires-home-vy .hr-grid > li,
.hires-home-vy article.hrc,
.hires-home-vy article.hrc .hr-art { overflow: visible !important; }
.hires-home-vy article.hrc .hr-art { position: relative !important; z-index: 3; flex: 0 0 auto !important; width: calc(var(--cv) + 58px) !important; max-width: none !important; height: var(--cv) !important; }
.hires-home-vy article.hrc .cover { position: absolute !important; z-index: 2; left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important; width: var(--cv) !important; max-width: var(--cv) !important; height: var(--cv) !important; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); color: var(--ink2); font: 600 12px/1.5 var(--mono); letter-spacing: .12em; box-shadow: 8px 0 14px -10px rgba(22, 22, 22, .5); transition: border-color .2s; }
.hires-home-vy article.hrc .cover:not(:has(img))::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line); border-radius: 3px; }
.hires-home-vy article.hrc .cover img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.hires-home-vy article.hrc:hover .cover { border-color: var(--ink); }
.hires-home-vy article.hrc .hr-disc { position: absolute !important; z-index: 1; top: calc((var(--cv) - var(--d)) / 2) !important; left: calc(var(--cv) - var(--d) + 28px) !important; display: block !important; width: var(--d) !important; height: var(--d) !important; max-width: none !important; border-radius: 50% !important; overflow: hidden; background: #161616 !important; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .65); pointer-events: none; transform: translate3d(0, 0, 0); transition: transform .55s var(--ease); }
.hires-home-vy article.hrc .hr-disc .vinyl { position: absolute; inset: -8%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18) 0 1px, transparent 1px 3px), #161616; }
.hires-home-vy article.hrc .hr-disc .hub { position: absolute; left: 31%; top: 31%; width: 38%; height: 38%; border-radius: 50%; background: radial-gradient(circle at 50% 22%, var(--gold) 0 5px, transparent 6px), radial-gradient(circle at 50% 50%, var(--bg) 0 4px, transparent 5px), var(--red); }
.hires-home-vy article.hrc:hover .hr-disc,
.hires-home-vy article.hrc:has(.hr-play.is-playing) .hr-disc,
.hires-home-vy article.hrc:has(.hr-play[aria-pressed="true"]) .hr-disc,
.hires-home-vy article.hrc .hr-disc.is-out { transform: translate3d(14px, 0, 0) !important; }
.hires-home-vy article.hrc:hover .hr-disc .vinyl,
.hires-home-vy article.hrc:has(.hr-play.is-playing) .hr-disc .vinyl,
.hires-home-vy article.hrc:has(.hr-play[aria-pressed="true"]) .hr-disc .vinyl,
.hires-home-vy article.hrc .hr-disc.is-out .vinyl { animation: hiresVySpin 2.2s linear infinite; }
@keyframes hiresVySpin { to { transform: rotate(1turn); } }

.hires-home-vy .hr-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.hires-home-vy .hr-play { position: absolute; left: calc(var(--cv) - var(--pb) - 8px); bottom: 8px; z-index: 3; display: grid; place-items: center; width: var(--pb); height: var(--pb); border-radius: 50%; background: var(--ink); color: var(--bg); transition: background .2s; }
.hires-home-vy .hr-play:hover,
.hires-home-vy .hr-play.is-playing,
.hires-home-vy .hr-play[aria-pressed="true"] { background: var(--red); }
.hires-home-vy .hr-play .ic-pause { display: none; }
.hires-home-vy .hr-play.is-playing .ic-play,
.hires-home-vy .hr-play[aria-pressed="true"] .ic-play { display: none; }
.hires-home-vy .hr-play.is-playing .ic-pause,
.hires-home-vy .hr-play[aria-pressed="true"] .ic-pause { display: block; }

.hires-home-vy .hr-info { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hires-home-vy .hr-spec { display: flex; align-items: baseline; font: 600 12px/1.2 var(--mono); color: var(--ink2); white-space: nowrap; }
.hires-home-vy .hr-spec b { margin-right: 2px; font-size: 22px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.hires-home-vy .hr-spec .sep { margin: 0 6px; }
.hires-home-vy .hr-title { margin-top: 8px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.hires-home-vy .hr-title a:focus-visible { outline: none; }
.hires-home-vy .hr-title a:focus-visible::after { outline: 2px solid var(--red); outline-offset: 2px; }
.hires-home-vy .hrc:hover .hr-title { color: var(--red); }
.hires-home-vy .hr-artist { font-size: 14px; line-height: 1.5; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hires-home-vy .hr-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 12px/1.5 var(--mono); color: var(--ink2); white-space: nowrap; }
.hires-home-vy .hr-foot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hires-home-vy .hr-foot svg { width: 18px; height: 18px; color: var(--red); transition: transform .2s var(--ease); }
.hires-home-vy .hrc:hover .hr-foot svg { transform: translateX(4px); }

@media (max-width: 1360px) {
  .hires-home-vy .hr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hires-home-vy { padding: 48px 0 64px; }
  .hires-home-vy .hrc { --cv: 120px; --d: 110px; --peek: 24px; gap: 12px; padding: 14px; }
}
@media (max-width: 820px) {
  .hires-home-vy .hr-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .hires-home-vy { padding: 40px 0 56px; }
  .hires-home-vy .wrap { padding-left: 16px; padding-right: 16px; }
  .hires-home-vy .tabs-row { margin-top: 20px; }
  .hires-home-vy .hr-grid { margin-top: 20px; gap: 12px; }
  .hires-home-vy .hr-grid > li:nth-child(n+5) { display: none; }
  .hires-home-vy .hrc { --cv: 104px; --d: 96px; --peek: 20px; --pb: 44px; padding: 12px; }
  .hires-home-vy .hr-spec b { font-size: 20px; }
  .hires-home-vy .hr-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hires-home-vy .sec-more,
  .hires-home-vy .sec-more svg,
  .hires-home-vy .tab,
  .hires-home-vy .tab::after,
  .hires-home-vy .hrc,
  .hires-home-vy .cover,
  .hires-home-vy .hr-play,
  .hires-home-vy .hr-title,
  .hires-home-vy .hr-foot svg,
  .hires-home-vy .hr-panels { transition: none; }
  .hires-home-vy .hr-grid.swap > li { animation: none; }
}
