/* ASOT Community — fan picks, comments, download popup, Most Loved Tracks */

/* ---------- Fan picks on the tracklist ---------- */
.asotc-pick-hint { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-sub, #b3b3b3); font-size: 13px; }
.asotc-hint-heart { color: #ff4d7d; display: inline-flex; animation: asotcBeat 1.6s ease-in-out infinite; }
.asotc-pick-hint b { color: #fff; font-weight: 700; }
@keyframes asotcBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

.asotc-love {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; min-width: 28px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .32);
  font: 700 12px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: color .15s, background .15s, transform .15s;
}
.asotc-love:hover { color: #ff4d7d; background: rgba(255, 77, 125, .1); }
.asotc-love.has-votes { color: rgba(255, 255, 255, .7); }
.asotc-love.is-mine { color: #ff4d7d; background: rgba(255, 77, 125, .14); }
.asotc-love.is-pop { animation: asotcPop .45s ease; }
@keyframes asotcPop { 30% { transform: scale(1.35); } 60% { transform: scale(.92); } }
.asot-track-row.asotc-top { background: linear-gradient(90deg, rgba(255, 196, 0, .09), transparent 70%); box-shadow: inset 3px 0 0 #ffc400; }
.asotc-badge {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; width: max-content;
  background: rgba(255, 196, 0, .14); color: #ffd34d; font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.asotc-spark { position: fixed; z-index: 9999; color: #ff4d7d; pointer-events: none; transform: translate(-50%, -50%); animation: asotcSpark .8s ease-out forwards; }
.asotc-spark svg { width: 12px; height: 12px; }
@keyframes asotcSpark { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); opacity: 0; } }

/* ---------- Comments ---------- */
.asotc-count { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; vertical-align: middle; }
.asotc-form { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.asotc-fields { display: flex; gap: 10px; }
.asotc-form input, .asotc-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .35); color: #fff; font: 14px/1.4 Inter, system-ui, sans-serif; resize: vertical;
}
.asotc-form input:focus, .asotc-form textarea:focus { outline: none; border-color: #1ed760; box-shadow: 0 0 0 3px rgba(30, 215, 96, .18); }
.asotc-fields input[name="name"] { max-width: 280px; }
.asotc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.asotc-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.asotc-msg { margin-right: auto; color: var(--text-sub, #b3b3b3); font-size: 13px; }
.asotc-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.asotc-c { display: flex; gap: 12px; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.asotc-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #000; background: hsl(var(--h, 140), 70%, 62%); }
.asotc-c-head { display: flex; gap: 10px; align-items: baseline; }
.asotc-c-head span { color: var(--text-sub, #8a8a8a); font-size: 12px; }
.asotc-c p { margin: 4px 0 0; color: #e6e6e6; font-size: 14px; line-height: 1.5; word-break: break-word; }

/* ---------- Download popup ---------- */
.asotc-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s ease; }
.asotc-modal[hidden] { display: none; }
.asotc-modal.is-open { opacity: 1; }
.asotc-modal-card {
  position: relative; width: min(420px, 100%); padding: 28px 24px 22px; border-radius: 22px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, rgba(30, 215, 96, .16), transparent 60%), #15171c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6);
  transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.asotc-modal.is-open .asotc-modal-card { transform: none; }
.asotc-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 20px; cursor: pointer; }
.asotc-dl-art { position: relative; width: 120px; height: 120px; margin: 0 auto 16px; }
.asotc-dl-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
/* No rotating ring (it looked off-centre): a soft breathing glow while working, a check when done. */
.asotc-ring { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.asotc-modal.is-loading .asotc-ring { opacity: 1; animation: asotcGlow 1.6s ease-in-out infinite; }
.asotc-modal.is-done .asotc-ring { opacity: 1; box-shadow: 0 0 0 3px #1ed760, 0 0 30px rgba(30, 215, 96, .45); }
.asotc-modal.is-done .asotc-ring::after {
  content: "✓"; position: absolute; right: -10px; bottom: -10px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #1ed760; color: #000; font-weight: 900; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
@keyframes asotcGlow { 0%, 100% { box-shadow: 0 0 0 2px rgba(30, 215, 96, .25), 0 0 12px rgba(30, 215, 96, .15); } 50% { box-shadow: 0 0 0 2px rgba(30, 215, 96, .8), 0 0 34px rgba(30, 215, 96, .45); } }
.asotc-thanks { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 13px; line-height: 1.5; color: #d6d6d6; }
.asotc-thanks strong { display: block; margin-bottom: 4px; color: #fff; font-size: 15px; }
.asotc-thanks a { color: #1ed760; font-weight: 700; text-decoration: none; }
.asotc-thanks a:hover { text-decoration: underline; }
.asotc-thanks-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.asotc-thanks-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; }
.asotc-thanks-links a.is-donate { background: #1ed760; color: #000; }
.asotc-dl-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.asotc-dl-step { margin: 0 0 14px; color: #b3b3b3; font-size: 14px; min-height: 20px; }
.asotc-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.asotc-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1ed760, #00e5ff); box-shadow: 0 0 14px rgba(30, 215, 96, .7); transition: width .35s ease; }
.asotc-dl-meta { margin: 10px 0 0; min-height: 18px; color: #8a8f98; font-size: 12px; font-variant-numeric: tabular-nums; }
.asotc-dl-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.asotc-dl-actions:empty { display: none; }
.asotc-go { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.asotc-cancel { border: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Most Loved Tracks ---------- */
.asotc-loved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: none; }
.asotc-lt { display: grid; grid-template-columns: 34px 52px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); transition: background .15s; }
.asotc-lt:hover { background: rgba(255, 255, 255, .08); }
.asotc-rank { font-size: 18px; font-weight: 800; color: #8a8f98; text-align: center; }
.asotc-lt.is-podium .asotc-rank { color: #ffd34d; text-shadow: 0 0 12px rgba(255, 196, 0, .5); }
.asotc-lt img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.asotc-lt-main { min-width: 0; display: grid; }
.asotc-lt-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asotc-lt-main span { color: #b3b3b3; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asotc-ep { color: #1ed760; font-size: 12px; text-decoration: none; }
.asotc-ep:hover { text-decoration: underline; }
.asotc-votes { display: inline-flex; align-items: center; gap: 5px; color: #ff4d7d; font-weight: 800; }
.asotc-play { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: #1ed760; color: #000; font-weight: 800; font-size: 12px; cursor: pointer; }
.asotc-play:hover { transform: scale(1.05); }
.asotc-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: #b3b3b3; }
.asotc-empty svg { width: 42px; height: 42px; color: #ff4d7d; }
.asotc-empty p { margin: 0; color: #fff; font-size: 18px; font-weight: 800; }
.asotc-muted { color: #8a8f98; }

@media (max-width: 760px) {
  .asotc-fields input[name="name"] { max-width: none; }
  .asotc-lt { grid-template-columns: 26px 44px 1fr auto; gap: 10px; padding: 8px 10px; }
  .asotc-lt img { width: 44px; height: 44px; }
  .asotc-lt .asotc-votes { grid-column: 4; }
  .asotc-lt .asotc-play { grid-column: 3 / 5; justify-self: start; height: 28px; }
}

/* ---------- Track & artist search ---------- */
.asotc-sr { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 4px; padding: 6px 6px 8px; }
.asotc-sr-h { padding: 10px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a8f98; }
.asotc-sr .asotc-tr { grid-template-columns: 40px 1fr auto; padding: 8px; }
.asotc-sr .asotc-tr img { width: 40px; height: 40px; }
.asotc-sr-all { display: block; margin: 6px 8px 0; padding: 10px 12px; border-radius: 10px; background: rgba(30, 215, 96, .1); color: #1ed760; font-weight: 700; font-size: 13px; text-decoration: none; }
.asotc-sr-all:hover { background: rgba(30, 215, 96, .18); }

.asotc-tracks { display: grid; gap: 6px; }
.asotc-tr { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); transition: background .15s; }
.asotc-tr:hover { background: rgba(255, 255, 255, .07); }
.asotc-tr img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #222; }
.asotc-tr-main { min-width: 0; display: grid; gap: 2px; }
.asotc-tr-main strong { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asotc-tr-artist { color: #b3b3b3; font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asotc-tr-artist:hover { color: #fff; text-decoration: underline; }
.asotc-occs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.asotc-occ {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #e6e6e6; font: 600 12px/1 Inter, system-ui, sans-serif; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
}
.asotc-occ svg { color: #1ed760; flex: none; }
.asotc-occ b { color: #1ed760; font-weight: 800; font-variant-numeric: tabular-nums; }
.asotc-occ:hover { background: #1ed760; color: #000; }
.asotc-occ:hover svg, .asotc-occ:hover b { color: #000; }
.asotc-more { align-self: center; color: #8a8f98; font-size: 12px; }
.asotc-plays { padding: 4px 9px; border-radius: 999px; background: rgba(255, 196, 0, .14); color: #ffd34d; font-size: 12px; font-weight: 800; }

.asotc-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.asotc-artists.is-compact { grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 2px 4px; }
.asotc-artist { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; transition: background .15s, transform .15s; min-width: 0; }
.asotc-artist:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.asotc-artist .asotc-av { width: 42px; height: 42px; font-size: 16px; }
.asotc-artists.is-compact .asotc-av { width: 32px; height: 32px; font-size: 13px; }
.asotc-artist b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asotc-artist small { display: block; color: #a7adb7; font-size: 12px; }
.asotc-artist > span:last-child { min-width: 0; }

@media (max-width: 760px) {
  .asotc-tr { grid-template-columns: 44px 1fr; gap: 10px; padding: 8px 10px; }
  .asotc-tr img { width: 44px; height: 44px; }
  .asotc-tr .asotc-plays { display: none; }
  .asotc-artists.is-compact { grid-template-columns: 1fr; }
}

/* ---------- NEW episodes ---------- */
.asotc-new-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 3; padding: 4px 9px; border-radius: 999px;
  background: #1ed760; color: #000; font: 900 10px/1 Inter, system-ui, sans-serif; letter-spacing: .1em;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 18px rgba(30, 215, 96, .75);
  animation: asotcNewPulse 2.2s ease-in-out infinite;
}
.asot-card.asotc-new .asot-card-badge { background: #1ed760 !important; color: #000 !important; box-shadow: 0 0 16px rgba(30, 215, 96, .8); }
.asot-card.asotc-new .asot-card-art { box-shadow: 0 0 0 2px #1ed760, 0 10px 34px rgba(30, 215, 96, .28); }
.asotc-new-pill {
  display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px; vertical-align: middle;
  background: #1ed760; color: #000; font: 900 11px/1 Inter, system-ui, sans-serif; letter-spacing: .1em;
  box-shadow: 0 0 18px rgba(30, 215, 96, .7); animation: asotcNewPulse 2.2s ease-in-out infinite;
}
.asotc-lit { color: #1ed760; text-shadow: 0 0 18px rgba(30, 215, 96, .65), 0 0 42px rgba(30, 215, 96, .35); }
@keyframes asotcNewPulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 10px rgba(30, 215, 96, .5); } 50% { box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 24px rgba(30, 215, 96, .95); } }
@media (prefers-reduced-motion: reduce) { .asotc-new-tag, .asotc-new-pill { animation: none; } }
