/* ASOT Spotify — Party mode + quick-tile mosaics (assets/js/fx.js) */

/* ---------- Party button ---------- */
.asot-party-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1ed760 !important;
  background: radial-gradient(circle at 30% 28%, rgba(30, 215, 96, .28), rgba(255, 255, 255, .05) 70%) !important;
  box-shadow: inset 0 0 0 1px rgba(30, 215, 96, .38);
  transition: transform .2s ease, box-shadow .25s ease, color .2s;
}
.asot-party-btn:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: inset 0 0 0 1px rgba(30, 215, 96, .7), 0 0 18px rgba(30, 215, 96, .45);
}
.asot-party-btn .asot-svg-party { transition: transform .4s ease; }
.asot-party-btn:hover .asot-svg-party { transform: rotate(18deg); }
body.asot-party-on .asot-party-btn,
.asot-party-btn[aria-pressed="true"] {
  color: #fff !important;
  background: conic-gradient(from 0deg, #1ed760, #00e5ff, rgb(var(--pbdyn, 30, 215, 96)), #1ed760) !important;
  box-shadow: 0 0 22px rgba(30, 215, 96, .55);
  animation: asotPartySpin 3.2s linear infinite;
}
body.asot-party-on .asot-party-btn .asot-svg-party { animation: asotPartySpin 3.2s linear infinite reverse; }
@keyframes asotPartySpin { to { transform: rotate(360deg); } }

/* ---------- Party canvas & full player ---------- */
.asot-party-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s ease;
}
.asot-full-player.is-party .asot-party-canvas { opacity: 1; }
.asot-full-player.is-party { background: #05060a !important; }
.asot-full-player.is-party .asot-fp-bg { filter: blur(80px) brightness(.22) saturate(1.6); }
.asot-full-player.is-party .asot-fp-art-wrap img {
  transform: scale(calc(1 + var(--beat, 0) * .028));
  box-shadow: 0 0 calc(24px + var(--beat, 0) * 60px) rgba(var(--pbdyn, 30, 215, 96), .55), 0 24px 60px rgba(0, 0, 0, .6);
  will-change: transform;
}
.asot-full-player.is-party .asot-fp-tracklist-pane {
  background: rgba(10, 12, 18, .55) !important;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.asot-full-player.is-party .asot-fp-kicker { color: #1ed760; text-shadow: 0 0 12px rgba(30, 215, 96, .6); }
@media (prefers-reduced-motion: reduce) {
  .asot-full-player.is-party .asot-fp-art-wrap img { transform: none; }
  body.asot-party-on .asot-party-btn, body.asot-party-on .asot-party-btn .asot-svg-party { animation: none; }
}

/* ---------- Quick tiles: neutral glass + real cover mosaics ---------- */
.asot-quick-tile {
  position: relative;
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  border-radius: 8px !important;
  padding-right: 52px !important;
  min-height: 64px;
}
.asot-quick-tile:hover { background: rgba(255, 255, 255, .13) !important; transform: none !important; }
.asot-quick-tile strong { letter-spacing: -.005em; }
.asot-qt-badge {
  position: relative;
  width: 64px !important; height: 64px !important;
  background: #2a2a2a !important;
  color: #1ed760 !important;
  box-shadow: 4px 0 16px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.asot-qt-badge > svg, .asot-qt-badge > :not(.asot-qt-mosaic) { position: relative; z-index: 2; }
.asot-qt-mosaic {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.asot-qt-mosaic.is-single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.asot-qt-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Icon becomes a small glass chip over the mosaic */
.asot-qt-badge.has-mosaic { color: #fff !important; font-size: 11px; }
.asot-qt-badge.has-mosaic::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55));
  transition: opacity .2s;
}
.asot-qt-badge.has-mosaic > svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8)); }
.asot-qt-badge.has-mosaic { align-items: flex-end !important; justify-content: flex-start !important; padding: 5px; }
.asot-quick-tile:hover .asot-qt-badge.has-mosaic::after { opacity: .4; }
/* Spotify-style green play disc appearing on hover */
.asot-quick-tile::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: #1ed760 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%23000'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(4px) scale(.92);
  transition: opacity .18s ease, transform .18s ease;
}
.asot-quick-tile:hover::after { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .asot-quick-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .asot-quick-tile { min-height: 56px; padding-right: 8px !important; gap: 10px !important; }
  .asot-qt-badge { width: 56px !important; height: 56px !important; }
  .asot-quick-tile strong { font-size: 12.5px; line-height: 1.25; }
  .asot-quick-tile::after { display: none; }
}

/* ---------- Party: labelled pill in the player bar ---------- */
.asot-vol-wrap { width: 120px !important; min-width: 0; }
.asot-vol-wrap input[type="range"] { width: 100% !important; min-width: 0; flex: 1; }
.asot-pb-right { gap: 12px !important; }
.asot-party-btn.asot-party-pill {
  position: relative; width: auto; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px;
}
.asot-party-pill .asot-party-label { line-height: 1; }
.asot-party-btn.is-new::after {
  content: "NEW"; position: absolute; top: -8px; right: -6px;
  padding: 2px 5px; border-radius: 6px; background: #fff; color: #000;
  font-size: 9px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.asot-party-btn.is-new { animation: asotPartyHint 2.4s ease-in-out infinite; }
@keyframes asotPartyHint { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(30,215,96,.38); } 50% { box-shadow: inset 0 0 0 1px rgba(30,215,96,.9), 0 0 22px rgba(30,215,96,.6); } }

/* ---------- Party: CTA next to Play (home hero + episode pages) ---------- */
.asot-party-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 800; font-size: 14px; color: #fff; cursor: pointer; border: 0;
  background: linear-gradient(#121212, #121212) padding-box,
              conic-gradient(from var(--pa, 0deg), #1ed760, #00e5ff, #b26bff, #1ed760) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 18px rgba(30, 215, 96, .25);
  transition: transform .15s ease, box-shadow .2s ease;
  animation: asotPartyBorder 4s linear infinite;
}
.asot-party-cta:hover { transform: scale(1.04); box-shadow: 0 0 26px rgba(30, 215, 96, .5); }
.asot-party-cta .asot-svg-party { color: #1ed760; }
@property --pa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes asotPartyBorder { to { --pa: 360deg; } }
@media (prefers-reduced-motion: reduce) { .asot-party-cta, .asot-party-btn.is-new { animation: none; } }
@media (max-width: 760px) { .asot-party-cta { height: 40px; padding: 0 16px; font-size: 13px; } }

/* ---------- Thin dark scrollbars (barely visible until you scroll or hover) ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .1) transparent; }
*:hover { scrollbar-color: rgba(255, 255, 255, .24) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
:hover::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .22); }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .38); }
.asot-scroll-viewport::-webkit-scrollbar, .asot-sidebar::-webkit-scrollbar { width: 8px !important; }

.asot-sidebar .asot-brand-link { flex-direction:row; align-items:center; gap:10px; }
.asot-sidebar .asot-brand-logo { width:36px; height:36px; border-radius:9px; }
.asot-sidebar .asot-brand-tag { font-size:20px; font-weight:800; letter-spacing:-.045em; color:#fff; }
.asot-radio-page .asot-page-banner .asot-btn-primary { margin-top:16px; }
.asot-radio-info h3 { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.asot-stream-details { font-size:12px; color:var(--text-sub); }
.asot-stream-details summary { cursor:pointer; }
.asot-radio-art .asot-card-play { display:grid; place-items:center; }
.asotl-news-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.asotl-news-list li { margin:0; }
.asotl-news-list a { display:grid; grid-template-columns:1fr auto; gap:5px 16px; padding:16px 18px; background:#17201e; border:1px solid #34413d; border-radius:12px; color:#f4f8f5; text-decoration:none; }
.asotl-news-list a:hover,.asotl-news-list a:focus-visible { background:#202e28; border-color:#4ab879; }
.asotl-news-meta { display:flex; gap:12px; align-items:baseline; font-size:12px; color:#b5c4bc; }
.asotl-news-meta b { color:#84e5ac; }
.asotl-news-list strong { grid-column:1; font-size:clamp(15px,1.6vw,19px); line-height:1.35; }
.asotl-arrow { grid-area:1/2/3/3; align-self:center; font-size:22px; color:#84e5ac; }
.asotl-search-types { display:flex; gap:7px; padding:9px; }
.asotl-search-types button { background:#242d29; border:1px solid #4c5951; color:#e1ece4; border-radius:20px; padding:6px 12px; cursor:pointer; }
.asotl-search-types button[aria-pressed=true] { background:#a5edbf; color:#102219; }
.asot-radio-card.is-on-air { border-color:#48d685; }
.asotl-meter { display:none; align-items:flex-end; gap:2px; height:14px; margin:0 6px; }
.is-on-air .asotl-meter { display:inline-flex; }
.asotl-meter i { height:11px; width:3px; border-radius:2px; background:#65ea96; transform-origin:center bottom; animation:asotl-meter .75s ease-in-out infinite alternate; }
.asotl-meter i:nth-child(2) { height:14px; animation-delay:-.35s; }
.asotl-meter i:nth-child(3) { height:8px; animation-delay:-.6s; }
@keyframes asotl-meter { to {transform:scaleY(.35)} }
@media(prefers-reduced-motion:reduce){.asotl-meter i {animation:none}}
@media(max-width:760px){.asot-search-results { position:fixed; top:54px; left:10px; right:10px; max-height:52dvh; overflow:auto; }.asot-mobile-nav {grid-template-columns:repeat(5,minmax(0,1fr))}.asotl-search-types button {min-height:40px}}
