/* Auto Post Content - album post styles. Colours follow the theme text colour. */
.apc-player, .apc-mini { --apc-accent: #7c3aed; --apc-line: rgba(128,128,128,.35); --apc-soft: rgba(128,128,128,.10); }

.apc-player { max-width: 520px; margin: 1.2em 0; padding: 14px 16px; border: 1px solid var(--apc-line); border-radius: 16px; background: var(--apc-soft); box-sizing: border-box; }
.apc-player__head { display: flex; align-items: center; gap: 12px; }
.apc-player__art { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.apc-player__info { min-width: 0; display: flex; flex-direction: column; }
.apc-player__title { font-size: 1.05em; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apc-player__album { font-size: .85em; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apc-player__bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: .8em; font-variant-numeric: tabular-nums; }
.apc-bar { display: flex; align-items: center; gap: 10px; font-size: .8em; font-variant-numeric: tabular-nums; }
.apc-seek { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--apc-accent); cursor: pointer; touch-action: none; }
.apc-seek:disabled { cursor: default; opacity: .45; }
.apc-cur, .apc-dur { flex: none; min-width: 2.6em; }
.apc-cur { text-align: right; }
.apc-player__ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }

.apc-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .85; }
.apc-btn:hover { opacity: 1; background: var(--apc-soft); }
.apc-btn:focus-visible, .apc-song__play:focus-visible { outline: 2px solid var(--apc-accent); outline-offset: 2px; }
.apc-btn.is-on { color: var(--apc-accent); opacity: 1; }
.apc-btn--play { width: 48px; height: 48px; background: var(--apc-accent); color: #fff; opacity: 1; }
.apc-btn--play:hover { background: var(--apc-accent); filter: brightness(1.1); }
.apc-btn--play svg { width: 24px; height: 24px; }
.apc-one { display: none; position: absolute; right: 5px; bottom: 4px; font-size: 9px; font-weight: 700; line-height: 1; }
.apc-btn[data-repeat="2"] .apc-one { display: block; }

.apc-i-pause { display: none; }
.is-playing > .apc-btn--play .apc-i-play, .apc-btn--play.is-playing .apc-i-play { display: none; }
.is-playing .apc-btn--play .apc-i-play { display: none; }
.is-playing .apc-btn--play .apc-i-pause { display: inline-flex; }
.apc-song.is-playing .apc-song__play .apc-i-play { display: none; }
.apc-song.is-playing .apc-song__play .apc-i-pause { display: inline-flex; }

/* song list */
.apc-songs { list-style: none; counter-reset: apc; margin: 1em 0; padding: 0; max-width: 720px; }
.apc-song { counter-increment: apc; display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 4px; border-bottom: 1px solid var(--apc-line); }
.apc-song.is-active { background: rgba(124,58,237,.08); }
.apc-song::before { content: counter(apc); width: 1.6em; text-align: right; opacity: .55; font-size: .85em; flex: none; }
.apc-song__play { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--apc-line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex: none; }
.apc-song__play:hover, .apc-song.is-playing .apc-song__play { background: var(--apc-accent); border-color: var(--apc-accent); color: #fff; }
.apc-song__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.apc-song__name { line-height: 1.5; }
.apc-song__meta { font-size: .8em; line-height: 1.4; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apc-song.is-active .apc-song__name { font-weight: 600; }
.apc-song__dl { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; border: 1px solid var(--apc-line); border-radius: 999px; color: inherit; text-decoration: none; font-size: .85em; }
.apc-song__dl:hover { background: var(--apc-soft); }
@media (max-width: 480px) { .apc-song__dltext { display: none; } .apc-song__dl { padding: 8px; } }

/* mini bar */
.apc-mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 12px calc(6px + env(safe-area-inset-bottom, 0px)); background: #1b1b1f; color: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.25); }
.apc-mini__row { display: flex; align-items: center; gap: 4px; }
.apc-mini__bar { color: rgba(255,255,255,.85); }
.apc-mini .apc-btn { width: 36px; height: 36px; }
.apc-mini .apc-btn--play { width: 44px; height: 44px; }
.apc-mini .apc-btn.is-on { color: #c4b5fd; }
@media (max-width: 560px) {
  .apc-mini__row { flex-wrap: wrap; justify-content: space-between; }
  .apc-mini__title { flex: 0 0 100%; order: -1; }
  .apc-mini .apc-btn { width: 40px; height: 40px; }
  .apc-mini .apc-btn--play { width: 46px; height: 46px; }
}
.apc-mini[hidden] { display: none; }
.apc-mini__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.apc-mini .apc-btn { color: #fff; }
.apc-mini .apc-btn--play { background: var(--apc-accent); }

/* album details, lyrics, related albums */
.apc-facts { list-style: none; margin: 1em 0; padding: 0; display: grid; gap: .35em; }
.apc-facts li { margin: 0; }
.apc-lyrics { margin: .6em 0; border: 1px solid var(--apc-line, rgba(128,128,128,.35)); border-radius: 10px; padding: .1em 1em; }
.apc-lyrics summary { cursor: pointer; font-weight: 600; padding: .7em 0; }
.apc-lyrics > div { padding-bottom: .5em; line-height: 1.9; }
.apc-related { margin: 2.5em 0 1em; }
.apc-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.apc-related__card { display: block; text-decoration: none; color: inherit; }
.apc-related__card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.apc-related__card span { display: block; margin-top: .5em; font-weight: 600; line-height: 1.4; }
.apc-related__card:hover span { text-decoration: underline; }

/* volume */
.apc-vol { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.apc-volume { width: 140px; max-width: 50%; accent-color: var(--apc-accent); cursor: pointer; }
.apc-i-mute { display: none; }
.apc-vol.is-muted .apc-i-vol { display: none; }
.apc-vol.is-muted .apc-i-mute { display: inline-flex; }
.apc-vol--mini { margin: 0; flex: none; }
.apc-vol--mini .apc-volume { width: 90px; }
@media (max-width: 480px) { .apc-vol--mini .apc-volume { display: none; } }

/* share */
.apc-btn--share { width: 36px; height: 36px; margin-left: 6px; }
.apc-song__share { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--apc-line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex: none; }
.apc-song__share:hover { background: var(--apc-soft); }
.apc-song__share:focus-visible { outline: 2px solid var(--apc-accent); outline-offset: 2px; }
.apc-share { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); }
.apc-share__box { --apc-accent: #7c3aed; width: 100%; max-width: 440px; margin: 0 auto; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fff; color: #202634; border-radius: 18px 18px 0 0; box-sizing: border-box; }
.apc-share__head { display: block; margin-bottom: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.apc-share__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.apc-share__links a, .apc-share__links button { padding: 11px 12px; border: 1px solid #d9dde6; border-radius: 10px; background: #f6f7fb; color: inherit; font: inherit; text-align: center; text-decoration: none; cursor: pointer; }
.apc-share__links a:hover, .apc-share__links button:hover { background: #ece8ff; }
.apc-share__close { display: block; width: 100%; margin-top: 10px; padding: 11px; border: 0; border-radius: 10px; background: var(--apc-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (min-width: 600px) { .apc-share { align-items: center; } .apc-share__box { border-radius: 18px; } }
@media (max-width: 480px) { .apc-song__share { width: 32px; height: 32px; } }

/* temporary playlist, bottom bar extras */
.apc-song__add { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--apc-line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; flex: none; }
.apc-song__add:hover { background: var(--apc-soft); }
.apc-song__add:focus-visible { outline: 2px solid var(--apc-accent); outline-offset: 2px; }
@media (max-width: 480px) { .apc-song__add, .apc-song__share { width: 30px; height: 30px; } .apc-song { gap: 6px; } }
.apc-btn--queue { position: relative; }
.apc-qcount { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--apc-accent); color: #fff; font-size: 10px; line-height: 16px; text-align: center; box-sizing: border-box; }
.apc-qcount[hidden] { display: none; }
body.apc-has-mini { padding-bottom: 96px; }
@media (max-width: 560px) { body.apc-has-mini { padding-bottom: 132px; } }
html.apc-loading body { cursor: progress; }
html.apc-loading .site-main, html.apc-loading main { opacity: .55; transition: opacity .15s; }

.apc-queue { --apc-accent: #7c3aed; --apc-line: #d9dde6; position: fixed; right: 12px; bottom: 12px; z-index: 10001; width: min(380px, calc(100vw - 24px)); max-height: 62vh; display: flex; flex-direction: column; padding: 14px; background: #fff; color: #202634; border: 1px solid var(--apc-line); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.28); box-sizing: border-box; }
.apc-queue[hidden] { display: none; }
.apc-queue--up { bottom: 100px; }
@media (max-width: 560px) { .apc-queue--up { bottom: 136px; } }
.apc-queue__now { margin-bottom: 8px; padding: 8px 10px 4px; border: 1px solid var(--apc-line); border-radius: 12px; background: #f6f7fb; }
.apc-queue__nowtitle { font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apc-queue__ctrl { display: flex; align-items: center; justify-content: center; gap: 6px; }
.apc-queue .apc-btn { width: 36px; height: 36px; }
.apc-queue .apc-btn--play { width: 42px; height: 42px; }
.apc-queue .apc-btn:hover { background: #e4def8; }
.apc-queue .apc-btn.is-on { color: var(--apc-accent); }
.apc-queue__keys { margin: 8px 0 0; font-size: .75em; line-height: 1.5; opacity: .65; }
.apc-queue__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.apc-queue__x { border: 0; background: transparent; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 8px; }
.apc-queue__actions { display: flex; gap: 8px; margin-bottom: 8px; }
.apc-queue__actions button { flex: 1; padding: 8px 10px; border: 1px solid var(--apc-line); border-radius: 10px; background: #f6f7fb; color: inherit; font: inherit; font-size: .9em; cursor: pointer; }
.apc-queue__actions button:hover { background: #ece8ff; }
.apc-queue__actions--io { margin-top: -2px; }
.apc-queue__actions--io button { font-size: .82em; }
.apc-queue__file[hidden] { display: none; }
.apc-queue__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 60px; }
.apc-queue__list li { display: flex; align-items: center; gap: 4px; margin: 0; border-bottom: 1px solid #eef0f5; }
.apc-queue__list li.is-active { background: rgba(124,58,237,.10); }
.apc-queue__song { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 6px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.apc-queue__song span { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.apc-queue__song small { opacity: .65; line-height: 1.3; }
.apc-queue__rm { border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; padding: 4px 10px; cursor: pointer; opacity: .6; }
.apc-queue__rm:hover { opacity: 1; }
.apc-queue__empty { margin: 8px 0 2px; opacity: .7; }
.apc-toast { position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 10002; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: #1b1b1f; color: #fff; font-size: .9em; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.apc-toast[hidden] { display: none; }
