/*
 * ASOT Spotify — UI layer (loaded after fixes.css).
 * Dynamic colour from the artwork, glass player, motion, donate/contact/legal pages.
 * --dyn / --pbdyn are "r,g,b" strings set by assets/js/ui.js.
 */
:root { --dyn: 70, 70, 70; --pbdyn: 30, 30, 30; --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* ---------- Dynamic page colour (Spotify-style gradient from the cover) ---------- */
.asot-main-column {
  background:
    linear-gradient(180deg, rgba(var(--dyn), .62) 0, rgba(var(--dyn), .26) 260px, #121212 560px),
    #121212;
  transition: background .9s ease;
}
.asot-topbar {
  position: relative; z-index: 30;
  background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .35s ease, box-shadow .35s ease;
}
.asot-main-column.is-scrolled .asot-topbar {
  background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), rgb(var(--dyn));
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

/* Episode + home hero: artwork-coloured, bigger type */
.asot-ep-hero, .asot-hero {
  background: linear-gradient(180deg, rgba(var(--dyn), .55), rgba(var(--dyn), .12)) !important;
  border: 0 !important;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.asot-ep-hero h1, .asot-hero h1 { font-weight: 900; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.asot-ep-cover img, .asot-hero-art img { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); border-radius: 8px; }

/* ---------- Greeting on the home page ---------- */
.asot-greeting {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 4px 0 18px;
  animation: asotFadeUp .6s var(--ease-out) both;
}

/* ---------- Section headings ---------- */
.asot-section-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; }
.asot-see-all { font-weight: 700; color: var(--text-sub); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.asot-see-all:hover { color: #fff; text-decoration: underline; }

/* ---------- Cards: lift, zoom, sliding play button ---------- */
.asot-card { border-radius: 10px; transition: background .25s ease, transform .3s var(--ease-out), box-shadow .3s ease; }
.asot-card:hover { background: #262626; transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8); }
.asot-card-art { overflow: hidden; border-radius: 8px; background: #282828; }
.asot-card-art img { transition: transform .6s var(--ease-out); }
.asot-card:hover .asot-card-art img { transform: scale(1.06); }
.asot-card-play {
  background: var(--accent-green) !important; color: #000 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .3s var(--ease-out), background .2s;
}
.asot-card:hover .asot-card-play, .asot-radio-card:hover .asot-card-play,
.asot-card.is-current-track .asot-card-play { opacity: 1; transform: none; }
.asot-card-play:hover { transform: scale(1.08) !important; background: #3be477 !important; }
@media (hover: none) { .asot-card-play { opacity: 1; transform: none; } }

/* Now-playing card: green title + animated equalizer */
.asot-card.is-current-track .asot-card-title { color: var(--accent-green); }
.asot-card.is-current-track .asot-card-art::after {
  content: ""; position: absolute; left: 10px; bottom: 10px; width: 18px; height: 16px;
  background:
    linear-gradient(var(--accent-green), var(--accent-green)) 0 100% / 4px 60% no-repeat,
    linear-gradient(var(--accent-green), var(--accent-green)) 7px 100% / 4px 100% no-repeat,
    linear-gradient(var(--accent-green), var(--accent-green)) 14px 100% / 4px 40% no-repeat;
  animation: asotEq 1s steps(4) infinite;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .8));
}
.asot-card-art { position: relative; }
@keyframes asotEq {
  0% { background-size: 4px 60%, 4px 100%, 4px 40%; }
  25% { background-size: 4px 100%, 4px 50%, 4px 80%; }
  50% { background-size: 4px 40%, 4px 80%, 4px 100%; }
  75% { background-size: 4px 80%, 4px 30%, 4px 60%; }
  100% { background-size: 4px 60%, 4px 100%, 4px 40%; }
}

/* Radio cards */
.asot-radio-card { transition: transform .3s var(--ease-out), background .25s; }
.asot-radio-card:hover { transform: translateY(-4px); }

/* ---------- Glass player bar tinted by the playing artwork ---------- */
.asot-player-bar {
  background: linear-gradient(90deg, rgba(var(--pbdyn), .55), rgba(18, 18, 18, .82) 45%) !important;
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, .07) !important;
  transition: background 1s ease;
}
#asot-pb-cover { border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.asot-pb-play-btn, .asot-fp-play-btn { transition: transform .15s ease; }
.asot-pb-play-btn:hover, .asot-fp-play-btn:hover { transform: scale(1.07); }
.asot-pb-play-btn:active, .asot-fp-play-btn:active { transform: scale(.95); }
input[type=range] { accent-color: var(--accent-green); }

/* ---------- Waveform seek bars (assets/js/wave.js) ---------- */
.asot-wave-wrap { position: relative; flex: 1; min-width: 0; height: 30px; --p: 0%; }
.asot-wave-wrap.asot-wave-full { height: 54px; width: 100%; }
.asot-wave { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.asot-wave i {
  flex: 1; min-width: 1px; border-radius: 2px;
  height: calc(var(--h, .5) * 100%);
  background: rgba(255, 255, 255, .26);
  transition: height .5s var(--ease-out), background .2s;
}
.asot-wave-fg { clip-path: inset(0 calc(100% - var(--p)) 0 0); transition: clip-path .25s linear; }
.asot-wave-fg i { background: var(--accent-green); box-shadow: 0 0 10px rgba(30, 215, 96, .35); }
.asot-wave-wrap:hover .asot-wave-bg i { background: rgba(255, 255, 255, .42); }
.asot-wave-input {
  position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important;
  opacity: 0; cursor: pointer; z-index: 2;
}
/* Live radio: bars pulse like a level meter */
.asot-wave-wrap.is-live.is-playing .asot-wave i { animation: asotWaveLive 1.1s ease-in-out infinite alternate; }
.asot-wave-wrap.is-live .asot-wave i:nth-child(3n) { animation-delay: -.35s; }
.asot-wave-wrap.is-live .asot-wave i:nth-child(3n+1) { animation-delay: -.7s; }
.asot-wave-wrap.is-live .asot-wave i:nth-child(5n) { animation-duration: .8s; }
@keyframes asotWaveLive { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Full-screen player tinted too */
.asot-full-player { background: linear-gradient(180deg, rgb(var(--pbdyn)) 0%, #121212 75%) !important; }

/* ---------- Page transitions ---------- */
.asot-app-view.asot-enter > * { animation: asotFadeUp .45s var(--ease-out) both; }
.asot-app-view.asot-enter > *:nth-child(2) { animation-delay: .05s; }
.asot-app-view.asot-enter > *:nth-child(3) { animation-delay: .1s; }
@keyframes asotFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.asot-section { animation: asotFadeUp .5s var(--ease-out) both; }

/* ---------- Scrollbar, focus ---------- */
.asot-scroll-viewport::-webkit-scrollbar, .asot-sidebar::-webkit-scrollbar { width: 12px; }
.asot-scroll-viewport::-webkit-scrollbar-thumb, .asot-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .16); border: 3px solid transparent; background-clip: padding-box; border-radius: 99px;
}
.asot-scroll-viewport::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .3); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===================================================================== */
/* Donate / Contact / Legal pages                                        */
/* ===================================================================== */
.asot-page-hero {
  position: relative; overflow: hidden; border-radius: 16px;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(30, 215, 96, .35), transparent 55%),
              radial-gradient(120% 140% at 100% 100%, rgba(255, 255, 255, .06), transparent 60%),
              linear-gradient(180deg, #2a2a2a, #181818);
  margin-bottom: 28px;
  animation: asotFadeUp .5s var(--ease-out) both;
}
.asot-page-hero .asot-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-green); }
.asot-page-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin: 10px 0 14px; max-width: 16ch; }
.asot-page-hero p { color: var(--text-sub); font-size: 1.05rem; max-width: 62ch; margin: 0; }
.asot-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.asot-stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.03em; }
.asot-stat span { color: var(--text-sub); font-size: 13px; }

.asot-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .asot-two-col { grid-template-columns: 1fr; } }
.asot-panel { background: #181818; border-radius: 14px; padding: clamp(18px, 3vw, 30px); border: 1px solid rgba(255, 255, 255, .06); }
.asot-panel h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.asot-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.asot-benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-sub); }
.asot-benefits li b { color: #fff; display: block; }
.asot-benefits .ico { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 215, 96, .14); color: var(--accent-green); font-weight: 900; }

.asot-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 18px; }
.asot-amount {
  padding: 14px 0; border-radius: 12px; background: #242424; color: #fff; font-weight: 800; font-size: 1.1rem;
  border: 2px solid transparent; transition: transform .15s, border-color .2s, background .2s;
}
.asot-amount:hover { transform: translateY(-2px); background: #2c2c2c; }
.asot-amount.is-active { border-color: var(--accent-green); background: rgba(30, 215, 96, .12); }
.asot-secure { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: 12.5px; margin-top: 14px; }

.asot-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 22px; }
.asot-contact-card { background: #181818; border-radius: 14px; padding: 18px; border: 1px solid rgba(255, 255, 255, .06); transition: background .2s, transform .25s var(--ease-out); }
.asot-contact-card:hover { background: #222; transform: translateY(-3px); }
.asot-contact-card h3 { font-size: 1rem; margin: 10px 0 6px; }
.asot-contact-card p { color: var(--text-sub); font-size: 14px; margin: 0; }
.asot-contact-card .ico { font-size: 22px; }

.asot-legal { max-width: 860px; }
.asot-legal .asot-prose-card { background: #181818; border-radius: 14px; padding: clamp(18px, 3vw, 34px); line-height: 1.75; color: #d6d6d6; }
.asot-legal h2 { font-size: 1.3rem; margin-top: 1.8em; color: #fff; }
.asot-legal h3, .asot-legal h4 { color: #fff; margin-top: 1.4em; }
.asot-legal a { color: var(--accent-green); }
.asot-legal .asot-prose-card > h1:first-child { display: none; }

/* ---------- WPForms dark styling ---------- */
.asot-panel .wpforms-container { margin: 0 !important; }
.asot-panel .wpforms-head-container, .asot-panel .wpforms-title { display: none; }
.asot-panel .wpforms-field-label { color: #fff !important; font-weight: 700 !important; font-size: 14px !important; }
.asot-panel .wpforms-field-description, .asot-panel .wpforms-field-sublabel { color: var(--text-muted) !important; font-size: 12.5px !important; }
.asot-panel input[type=text], .asot-panel input[type=email], .asot-panel textarea, .asot-panel select {
  width: 100% !important; max-width: 100% !important; background: #242424 !important; color: #fff !important;
  border: 1px solid #333 !important; border-radius: 10px !important; padding: 12px 14px !important; font-size: 15px !important;
  transition: border-color .2s, box-shadow .2s;
}
.asot-panel input:focus, .asot-panel textarea:focus { border-color: var(--accent-green) !important; box-shadow: 0 0 0 3px rgba(30, 215, 96, .2) !important; outline: none !important; }
.asot-panel .wpforms-field { padding: 8px 0 !important; }
.asot-panel .wpforms-field-checkbox label { color: var(--text-sub) !important; font-size: 13px !important; }
.asot-panel button.wpforms-submit, .asot-panel .wpforms-submit {
  width: 100%; background: var(--accent-green) !important; color: #000 !important; border: 0 !important;
  border-radius: 999px !important; padding: 15px 22px !important; font-weight: 900 !important; font-size: 16px !important;
  letter-spacing: .02em; cursor: pointer; transition: transform .15s, background .2s;
}
.asot-panel .wpforms-submit:hover { transform: scale(1.02); background: #3be477 !important; }
.asot-panel .wpforms-confirmation-container-full { background: rgba(30, 215, 96, .12) !important; border: 1px solid var(--accent-green) !important; color: #fff !important; border-radius: 12px; }
.asot-panel label.wpforms-error, .asot-panel em.wpforms-error { color: #ff6b6b !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
