/* Scoped to the anthem; inherit Irish Spins' existing color and type system. */
:root { --anthem-lime: #b9f76a; --anthem-bottom-offset: 0px; }
.anthem-hero-slot { min-height: 186px; margin-top: 18px; text-align: left; }
.anthem-player {
  display: grid;
  align-items: center;
  gap: 8px 12px;
  color: var(--ink);
  border: 1px solid rgba(158, 236, 102, .27);
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(23, 43, 28, .94), rgba(4, 12, 9, .95));
  box-shadow: 0 8px 30px #0005, 0 0 24px #70d13c0a, inset 0 1px #d4ffaf0a;
  backdrop-filter: blur(16px);
  text-shadow: none;
}
.anthem-player--hero {
  min-height: 186px;
  padding: 16px 18px 10px;
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  grid-template-areas: 'eyebrow eyebrow eyebrow' 'play track eq' 'timeline timeline timeline' 'volume volume lyrics' 'error error error';
}
.anthem-eyebrow { grid-area: eyebrow; color: var(--anthem-lime); font-size: 9px; font-weight: 800; letter-spacing: .13em; margin-bottom: 5px; }
.anthem-eyebrow > span { margin-right: 4px; font-size: 13px; }
.anthem-play {
  grid-area: play;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  flex-shrink: 0;
  color: #0b1b10;
  border: 1px solid #dcff9c;
  border-radius: 50%;
  background: linear-gradient(145deg, #daff9a, #a1df4e);
  box-shadow: 0 0 22px #a2ed5530;
  cursor: pointer;
}
.anthem-play:hover { filter: brightness(1.08); box-shadow: 0 0 25px #a2ed5550; }
.anthem-play svg { width: 24px; height: 24px; }
.anthem-track { grid-area: track; min-width: 0; }
.anthem-title { display: block; font-size: 12px; letter-spacing: .035em; line-height: 1.4; }
.anthem-artist { display: flex; align-items: center; gap: 9px; margin-top: 5px; color: #acbbad; font-size: 10px; }
.anthem-now { color: var(--anthem-lime); font-size: 7px; letter-spacing: .08em; white-space: nowrap; }
.anthem-equalizer { grid-area: eq; display: flex; align-items: center; justify-content: end; gap: 3px; height: 28px; color: var(--anthem-lime); }
.anthem-equalizer i { width: 3px; height: 65%; border-radius: 3px; background: currentColor; transform: scaleY(.3); opacity: .6; }
.anthem-equalizer i:nth-child(2) { height: 95%; animation-delay: -.3s; }
.anthem-equalizer i:nth-child(3) { height: 55%; animation-delay: -.65s; }
.anthem-equalizer i:nth-child(4) { height: 85%; animation-delay: -.15s; }
.anthem-equalizer i:nth-child(5) { height: 45%; animation-delay: -.5s; }
.is-playing .anthem-equalizer i { animation-name: anthem-equalize; animation-duration: 1.1s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; opacity: .9; }
.anthem-timeline { grid-area: timeline; display: flex; align-items: center; gap: 9px; min-width: 0; }
.anthem-time { color: #b8c5b9; font-size: 9px; font-variant-numeric: tabular-nums; min-width: 28px; text-align: center; }
.anthem-range {
  --anthem-fill: 0%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 28px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--anthem-lime) var(--anthem-fill), #ffffff20 var(--anthem-fill)) center / 100% 3px no-repeat;
  cursor: pointer;
  touch-action: pan-y;
}
.anthem-range::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #ddffb9; box-shadow: 0 0 8px #a2ed5540; }
.anthem-range::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #ddffb9; }
.anthem-range:disabled { opacity: .4; cursor: default; }
.anthem-volume { grid-area: volume; display: flex; align-items: center; gap: 4px; width: 108px; }
.anthem-icon { display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; flex-shrink: 0; background: transparent; border: 0; border-radius: 8px; color: #b9c9b8; cursor: pointer; }
.anthem-icon svg { width: 18px; height: 18px; }
.anthem-icon:hover { color: var(--anthem-lime); background: #baff7310; }
.anthem-lyrics { grid-area: lyrics; justify-self: end; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 5px 0; color: #a8b6a4; font: inherit; font-size: 8px; letter-spacing: .07em; }
.anthem-lyrics span { font-size: 6px; padding: 2px 4px; border: 1px solid #a8b6a430; border-radius: 3px; }
.anthem-error { grid-area: error; margin: 0; color: #f0d69c; font-size: 10px; line-height: 1.5; }
.anthem-error:empty { display: none; }
.anthem-player :focus-visible { outline: 2px solid var(--anthem-lime); outline-offset: 3px; }
.anthem-player [hidden], .anthem-mini[hidden] { display: none !important; }

.anthem-mini { position: fixed; z-index: 35; right: 24px; left: calc(var(--sidebar-w) + 24px); bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--anthem-bottom-offset)); animation: anthem-enter .24s ease-out; }
.sidebar-collapsed .anthem-mini { left: 24px; }
.anthem-player--mini { padding: 12px 14px; grid-template-columns: 42px minmax(165px, 1fr) minmax(80px, 1fr) 108px 64px; grid-template-areas: 'play track timeline volume window' 'error error error error error'; gap: 0 14px; }
.anthem-player--mini .anthem-play { width: 42px; height: 42px; }
.anthem-player--mini .anthem-title { font-size: 11px; }
.anthem-player--mini .anthem-equalizer { display: none; }
.anthem-window-controls { grid-area: window; display: flex; }
.anthem-mini.is-minimized { left: auto; width: min(360px, calc(100% - 32px)); }
.is-minimized .anthem-player--mini { grid-template-columns: 38px minmax(0, 1fr) 64px; grid-template-areas: 'play track window' 'error error error'; gap: 0 10px; padding: 9px 12px; }
.is-minimized .anthem-player--mini .anthem-play { width: 38px; height: 38px; }
.is-minimized .anthem-timeline, .is-minimized .anthem-volume, .is-minimized .anthem-now { display: none; }
.is-minimized .anthem-title { font-size: 9px; }
/* Permanent trailing space lets every footer/action scroll above the fixed bar
   without moving content when playback begins. Keep overlays above the player. */
.main > .footer { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }
.anthem-mini-open .toast { bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: 124px; }

/* Make room inside the existing hero, including short laptop viewports. */
@media (min-width: 901px) {
  .hero { top: clamp(38px, 7svh, 96px); }
  .hero-pin { min-height: 780px; }
}
/* New glow layer preserves the original halo and decorative transforms. */
.hero-art__halo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle, #98ef6138, transparent 65%); opacity: 0; }
.anthem-playing .hero-art__halo::after { animation: anthem-halo 3.6s ease-in-out infinite; }
.anthem-playing .casino-chip--one { animation: anthem-chip 3.6s ease-in-out infinite; }
@keyframes anthem-halo { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
@keyframes anthem-chip { 0%, 100% { filter: drop-shadow(0 0 2px #a2ed5510); } 50% { filter: drop-shadow(0 0 8px #a2ed5530); } }
@keyframes anthem-equalize { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes anthem-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .anthem-player--mini { grid-template-columns: 42px minmax(0, 1fr) 100px 64px; grid-template-areas: 'play track volume window' 'timeline timeline timeline timeline' 'error error error error'; }
}
@media (max-width: 900px) {
  .anthem-mini, .sidebar-collapsed .anthem-mini { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--anthem-bottom-offset)); }
  .anthem-mini.is-minimized { left: auto; }
  .hero-stage { min-height: 1080px; }
  .hero-pin { height: 1080px; min-height: 1080px; }
  .hero-art { top: 590px; }
  .anthem-hero-slot { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .hero-pin { height: 1100px; min-height: 1100px; }
  .hero-stage { min-height: 1100px; }
  .hero-art { top: 655px; }
  .anthem-player--hero { padding-inline: 14px; gap: 8px 10px; }
  .anthem-player--mini { padding: 8px 10px; grid-template-columns: 38px minmax(0, 1fr) 70px 56px; gap: 0 6px; }
  .anthem-player--mini .anthem-play { width: 38px; height: 38px; }
  .anthem-player--mini .anthem-title { font-size: 9px; }
  .anthem-player--mini .anthem-artist { font-size: 8px; }
  .anthem-player--mini .anthem-now { display: none; }
  .anthem-player--mini .anthem-volume { width: 70px; }
  .anthem-player--mini .anthem-icon { width: 28px; height: 36px; padding: 5px; }
  .anthem-title { font-size: 11px; }
  .anthem-now { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .anthem-mini, .is-playing .anthem-equalizer i, .anthem-playing .hero-art__halo::after, .anthem-playing .casino-chip--one { animation: none; }
  .is-playing .anthem-equalizer i { transform: scaleY(.65); }
}
