@font-face {
  font-family: "Cormorant Garamond";
  src: url("./Cormorant-Garamond-Brand.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #222225;
  --muted: #68686d;
  --accent: #355b87;
  --action: var(--accent);
  --action-hover: #416895;
  --action-pressed: #4972a0;
  --base: #fff;
  --surface: #f5f5f7;
  --selection: #e9e9ed;
  --line: #e4e4e8;
  --chrome: #fafafc;
  --quiet-action: #efeff1;
  --quiet-action-hover: #e1e2e6;
  --accent-wash: #e6eef9;
  --accent-wash-hover: #d8e5f5;
  --signout-ink: #833643;
  --signout-wash: #f2dce1;
  --signout-hover: #ebccd4;
  --radius: .75rem;
  --content-width: 82rem;
  --rail: 14rem;
  --bar: 4.25rem;
  --gutter: clamp(1rem, 3.5vw, 2.75rem);
  --panel-gap: clamp(.6rem, 1.25vw, 1.25rem);
  --content-edge: var(--panel-gap);
  --player-bottom: max(var(--panel-gap), env(safe-area-inset-bottom));
  --panel-radius: 1rem;
  --panel-shadow: 0 .85rem 2.5rem #03071059, 0 .2rem .6rem #03071040;
  --site-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --button-radius: .42rem;
  --button-height: 2.5rem;
  --button-compact-height: 2.25rem;
  font: 16px/1.45 var(--site-font);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #b5b5bb;
  --accent: #b4cdef;
  --action: #355b87;
  --base: #1c1c1e;
  --surface: #252527;
  --selection: #37373b;
  --line: #38383c;
  --chrome: #232325;
  --quiet-action: #303033;
  --quiet-action-hover: #414148;
  --accent-wash: #294363;
  --accent-wash-hover: #35557b;
  --signout-ink: #f3b8c2;
  --signout-wash: #55343f;
  --signout-hover: #633c49;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #e9eaec; }
html[data-theme="dark"] {
  background: radial-gradient(ellipse at 14% 0%, #263b55, transparent 62%),
    linear-gradient(155deg, #1b2b41, #101827 66%, #0c1320) fixed;
}
body { margin: 0; min-width: 280px; padding: var(--panel-gap); color: var(--ink); font-size: .9375rem; }
body.has-player .site-frame { padding-bottom: calc(var(--player-bottom) + 7rem - var(--panel-gap)); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button, input, textarea, select, input::file-selector-button { font: inherit; }
:is(button, .button, .pill, input[type="submit"], input[type="button"], input[type="reset"]),
input::file-selector-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .35rem;
  min-height: var(--button-height); padding: .42rem .8rem; border: 1px solid transparent;
  border-radius: var(--button-radius); background: var(--quiet-action); color: var(--ink);
  cursor: pointer; text-decoration: none; font-weight: 600;
}
:is(button, .button, .pill, input[type="submit"], input[type="button"], input[type="reset"]):hover,
input::file-selector-button:hover { background: var(--quiet-action-hover); color: var(--ink); }
.primary { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:is(button, .button, .pill):focus-visible { outline-color: #6b89b5; }
button:is([aria-pressed="true"], [aria-expanded="true"]) { background: var(--accent-wash); color: var(--accent); }
input:not([type=range], [type=checkbox], [type=submit], [type=button], [type=reset]), select, textarea {
  min-width: 0; background: var(--base); color: var(--ink); border: 1px solid var(--line);
  border-radius: .45rem; padding: .66rem .78rem;
}
input[type=range], input[type=checkbox] { accent-color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { letter-spacing: -.028em; line-height: 1.15; }
h1 { font-size: clamp(1.95rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); font-weight: 650; margin-bottom: 1rem; }
:lang(fa) { letter-spacing: normal; }
img { max-width: 100%; display: block; }
.icon-definitions { position: absolute; pointer-events: none; }
.icon {
  width: 1em; height: 1em; flex: none; vertical-align: -.125em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.skip { position: fixed; left: 1rem; top: 1rem; padding: .6rem; z-index: 10; background: var(--base); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.sr-only,
#content:is(
  [data-section="home"], [data-section="albums"], [data-section="songs"],
  [data-section="photos"], [data-section="videos"], [data-section="search"],
  [data-section="favorites"], [data-section="about"],
  [data-section="privacy"], [data-section="terms"]
) .page > h1 {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-frame {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2 * var(--panel-gap));
  min-height: calc(100dvh - 2 * var(--panel-gap));
  background: var(--home-glass, var(--base));
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  box-shadow: var(--panel-shadow);
}
#content { flex: 1; min-width: 0; }
.site-frame:has(#content[data-section="albums"]) {
  position: relative;
  isolation: isolate;
}
.site-frame:has(#content[data-section="albums"])::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: url("./albums-collage-optimized.webp") center top / clamp(24rem, 60vw, 54rem) auto repeat;
  opacity: .14;
  pointer-events: none;
}
:root[data-theme="dark"] .site-frame:has(#content[data-section="albums"])::before {
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: .24;
}

html:has(#content[data-section="home"]) {
  --home-glass: #ffffffd9;
  --home-portrait: url("./home-portrait-light.webp");
  --home-portrait-matte: #fff;
  background: var(--home-portrait-matte) var(--home-portrait) right center / min(100%, 210vh) auto no-repeat fixed;
}
html[data-theme="dark"]:has(#content[data-section="home"]) {
  --home-glass: #1c1c1eb3;
  --home-portrait: url("./home-portrait.webp");
  --home-portrait-matte: #101217;
}
.header-inner a, .header-tools a { text-decoration: none; }
.brand { display: flex; gap: .55rem; align-items: center; font-weight: 700; font-size: 1.05rem; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.brand-icon {
  display: grid; place-items: center; flex: none; width: 2rem; aspect-ratio: 1;
  border-radius: .5rem; background: linear-gradient(var(--action-hover), var(--action)); color: #fff; font-size: 1.15rem; letter-spacing: 0;
}
#nav { display: grid; gap: .2rem; }
#nav > a { display: flex; align-items: center; gap: .55rem; padding: .43rem .6rem; border-radius: .4rem; font-size: .9rem; }
#nav .icon { color: var(--accent); width: 1.15rem; height: 1.15rem; }
#nav > a:hover, #nav > [aria-current] { background: var(--selection); color: var(--ink); }
.nav-label { color: var(--muted); font-weight: 650; font-size: .75rem; margin: .9rem .6rem .2rem; }
#nav .nav-search { background: var(--base); border: 1px solid var(--line); margin: .25rem 0 .7rem; color: var(--muted); }
.sidebar-footer { display: flex; flex-wrap: wrap; gap: .35rem .8rem; border-top: 1px solid var(--line); padding: .8rem .6rem 0; color: var(--muted); font-size: .78rem; }
.header-tools { display: flex; align-items: center; gap: .55rem; }
.header-link { padding: .3rem .2rem; color: var(--muted); font-size: .86rem; }
.header-link:hover { color: var(--ink); text-decoration: underline; }
.header-tools .pill, .header-tools #theme-toggle, .track-actions :is(button, .button), .search button {
  min-height: 2rem; padding: .25rem .65rem; font-size: .82rem;
}
#theme-toggle, .menu { width: 2rem; min-height: 2rem; padding: 0; font-size: 1.1rem; line-height: 1; }
.header-tools #theme-toggle { padding: 0; font-size: 1.13rem; }
.menu { margin-left: auto; }
.mobile-search { display: none; }
:root:not([data-theme="dark"]) .theme-sun, :root[data-theme="dark"] .theme-moon { display: none; }
.home-welcome, .collection, .page {
  width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto;
}
.home-welcome {
  display: grid;
  align-items: center;
  justify-items: start;
  min-height: clamp(23rem, calc(21.5rem + 3vw), 24.75rem);
  padding-block: .375rem;
}
.welcome-card {
  --welcome-accent: #71511b;
  --welcome-caption: #493a32;
  --welcome-rule: #6e503c40;
  width: min(67%, 45rem);
  padding: clamp(1.1rem, 2.35vw, 1.8rem);
  color: #382921;
  border-radius: var(--panel-radius);
  --welcome-background: linear-gradient(to right, #c5c9cfc9, #e3e5e8b8 52%, #f7f8faa0 80%);
  position: relative;
  isolation: isolate;
}
.welcome-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--welcome-background);
  mask-image: linear-gradient(to right, #000 80%, transparent 100%);
  pointer-events: none;
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}
:root[data-theme="dark"] .welcome-card {
  --welcome-accent: #f1d49c;
  --welcome-caption: #e7edf7;
  --welcome-rule: #e7edf742;
  color: #f8fbff;
  --welcome-background: linear-gradient(to right, #395879f5, #294564db 55%, #202d40a8 80%);
}
.welcome-label {
  margin: 0 0 .55rem; color: var(--welcome-accent);
  font: 700 clamp(1.35rem, 2vw, 2rem) / 1.18 "Cormorant Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -.025em; text-align: left;
}
.welcome-card h2 { margin: 0 0 .45rem; font-size: clamp(1.25rem, 1.9vw, 1.85rem); line-height: 1.55; }
.welcome-subtitle { margin-bottom: .55rem; color: var(--welcome-accent); font-weight: 700; font-size: 1.06rem; }
.welcome-description { margin-bottom: .35rem; color: var(--welcome-caption); line-height: 1.8; }
.welcome-actions, .share, .inline { display: flex; gap: .65rem; flex-wrap: wrap; }
.welcome-actions { margin-top: .85rem; }
.welcome-actions .button { min-height: var(--button-compact-height); font-size: .86rem; }
.welcome-actions :is(.welcome-listen, .welcome-albums) {
  color: inherit; background: transparent; border-color: var(--welcome-rule);
}
.welcome-actions :is(.welcome-listen, .welcome-albums):hover { background: var(--quiet-action); }
.welcome-actions .welcome-listen { border-color: #e4c58f; }
.welcome-quote {
  margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid var(--welcome-rule);
  color: var(--welcome-accent); text-align: center; font-style: italic;
}
.eyebrow { color: var(--muted); letter-spacing: .1em; font-weight: 700; font-size: .68rem; margin: 0 0 .55rem; }
.collection, .page { padding-block: 1.65rem 3rem; }
.page { min-height: 53vh; padding-top: clamp(1.6rem, 4vw, 3rem); }
.collection-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem; margin-bottom: 1.2rem; }
.collection-heading h2 { margin: 0; }
.collection-heading > a { white-space: nowrap; text-decoration: none; font-size: .9rem; }
.collection-heading a, .crumb { color: var(--accent); }
.catalog-empty {
  display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; color: var(--muted);
}
.catalog-empty span {
  display: grid; place-items: center; width: 3.35rem; aspect-ratio: 1; flex-shrink: 0;
  border-radius: .7rem; background: var(--accent-wash); color: var(--accent); font-size: 1.5rem;
}
.catalog-empty h3 { color: var(--ink); margin-bottom: .4rem; }
.catalog-empty p { margin-bottom: 0; }
.carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.carousel-track {
  --slide: clamp(8rem, 46vw, 22rem); display: flex; gap: 1.15rem; overflow: auto; scroll-snap-type: x mandatory;
  padding: .55rem .45rem; scroll-padding-inline: .45rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.carousel-cover { flex: 0 0 var(--slide); min-width: 0; scroll-snap-align: start; text-align: center; text-decoration: none; }
.carousel-cover strong, .album-card strong { display: block; margin-top: .55rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 1.25rem; }
.album-card { min-width: 0; text-decoration: none; }
.album-card:hover .cover, .carousel-cover:hover .cover { filter: brightness(.94); }
.album-card span, .carousel-cover span:not(.cover-fallback span) { display: block; color: var(--muted); }
.cover { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: .5rem; }
.cover-fallback { display: grid; place-items: center; color: var(--accent); font-size: clamp(1.2rem, 5vw, 4rem); background: var(--accent-wash); }
.feature { display: grid; grid-template-columns: minmax(5.5rem, 16rem) minmax(0, 1fr); align-items: end; gap: clamp(1rem, 4vw, 2rem); margin: 1.2rem 0 1.75rem; }
.feature h1 { font-size: clamp(1.55rem, 4vw, 2.8rem); overflow-wrap: anywhere; margin-bottom: .4rem; }
.feature > .cover { box-shadow: 0 .35rem 1.2rem #0002; }
.persian { font-size: clamp(1.1rem, 3vw, 1.65rem); color: var(--muted); text-align: start; margin-bottom: 0; }
.track-row { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.track-row:hover, .track-row:focus-within { background: var(--surface); }
.track-row .cover-fallback { font-size: 1.25rem; }
.track-info { min-width: 0; overflow-wrap: anywhere; }
.track-info a { text-decoration: none; font-weight: 650; }
.track-info span { display: block; text-align: start; color: var(--muted); font-size: .92rem; }
.track-actions { display: flex; align-items: center; gap: .35rem; }
.track-actions form { margin: 0; }
.track-actions [data-favorite-button][aria-pressed="true"] { color: var(--accent); border-color: transparent; }
[data-favorite-button][aria-pressed="true"] .icon { fill: currentColor; }
.album-group { font-size: 1.65rem; margin-top: 2rem; }
.album-group a { text-decoration: none; }
.songs-pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0;
}
.lyrics { padding: 2rem clamp(1rem, 4vw, 2.5rem); margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lyrics p { white-space: pre-wrap; font-size: 1.18rem; line-height: 2; }
.inline { display: flex; gap: .6rem; margin: 0 0 2rem; }
.search {
  display: flex; align-items: center; gap: .45rem; width: min(100%, 44rem); margin: 0 auto 1.65rem;
  padding: .25rem .35rem .25rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); box-shadow: 0 .4rem 1.25rem #10182712;
}
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input { flex: 1; width: 100%; padding: .35rem 0; border: 0; background: transparent; outline: none; }
.search-section + .search-section { margin-top: 2rem; }
.discovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .85rem; }
.discovery-card {
  position: relative; isolation: isolate; display: flex; align-items: end; width: 100%; min-width: 0;
  min-height: 7rem; aspect-ratio: 16 / 9; overflow: hidden; padding: .7rem;
  border-radius: .65rem; background: #365b84; color: #fff; text-decoration: none;
}
.discovery-card:nth-child(4n + 2) { background: #854566; }
.discovery-card:nth-child(4n + 3) { background: #376b5d; }
.discovery-card:nth-child(4n + 4) { background: #6b5092; }
.discovery-card .cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; opacity: .65; }
.discovery-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(transparent 15%, #080d18e8); }
.discovery-card:hover { color: #fff; }
.discovery-card:hover strong { text-decoration: underline; }
.discovery-card strong, .discovery-card span { display: block; overflow-wrap: anywhere; }
.discovery-card span { font-size: .75rem; color: #e8edf6; }
.narrow { max-width: 35rem; }
.editorial { max-width: 47rem; }
.editorial article { margin: 2rem 0; }
.about-page { max-width: 55rem; }
.about-page article {
  margin: 0 0 1.5rem; padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface);
}
.about-page article h1 { margin-bottom: 1.75rem; }
.about-page [dir=rtl] { text-align: start; }
.about-page article p { margin-bottom: 1.1rem; font-size: clamp(1.04rem, 1rem + .35vw, 1.15rem); line-height: 2; }
.about-page article p:last-child { margin-bottom: 0; }
.editorial img { max-height: 34rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-stack { display: grid; gap: .7rem; margin: 0 0 1.25rem; }
.form-stack p { display: grid; gap: .4rem; margin: 0; }
.password-field { position: relative; display: block; }
.password-field input { display: block; width: 100%; padding-inline-end: 3rem; }
.password-field input::-ms-reveal { display: none; }
.password-field > .password-visibility {
  position: absolute;
  top: 50%;
  inset-inline-end: .2rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: min(2rem, calc(100% - .4rem));
  min-height: 0;
  padding: 0;
  line-height: 1;
}
.password-field > .password-visibility svg { width: 1.15rem; height: 1.15rem; }
.password-field input[type="password"] + button .eye-closed,
.password-field input[type="text"] + button .eye-open { display: none; }
.form-stack .primary { justify-self: start; }
.button.account-studio { background: var(--accent-wash); color: var(--accent); }
.button.account-studio:hover { background: var(--accent-wash-hover); color: var(--accent); }
button.account-signout { background: var(--signout-wash); color: var(--signout-ink); }
button.account-signout:hover { background: var(--signout-hover); color: var(--signout-ink); }
.form-links, .danger, .quiet { color: var(--muted); }
.danger { margin-top: 2rem; }
.danger summary { cursor: pointer; }
.captcha { display: flex; align-items: center; gap: .5rem; }
.captcha img { border-radius: .4rem; }
#content[data-section="contact"] .captcha button {
  min-height: 1.875rem; padding: .2rem .5rem; font-size: .78rem;
}
.notice, .errorlist { background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; padding: .65rem 1rem; }
.notice { width: min(100% - 2rem, 74rem); margin: 1rem auto 0; }
.playlist-create { max-width: 23rem; flex-wrap: nowrap; margin-bottom: 1.25rem; }
.playlist-create input { flex: 1; width: 100%; padding: .4rem .6rem; font-size: .85rem; }
.playlist-create button { flex: none; }
.playlist-create button, .playlist-back, .playlist-rename .playlist-actions :is(button, .button) {
  min-height: var(--button-compact-height); padding: .35rem .65rem; font-size: .85rem;
}
.playlist-page-title { font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: .035em; }
.playlist-toolbar {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center; gap: .8rem; margin-bottom: 1.25rem;
}
.playlist-back { justify-self: start; }
.playlist-detail-title { display: flex; justify-content: center; align-items: center; gap: .55rem; min-width: 0; }
.playlist-detail-title h1 { margin: 0; text-align: center; overflow-wrap: anywhere; }
.playlist-detail-title .playlist-link-icon { flex: none; width: 2.2rem; font-size: 1.1rem; }
.playlist-actions { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.playlist-action { width: 2.25rem; min-height: 2.25rem; padding: 0; font-size: 1.1rem; }
.playlist-rename { width: min(100%, 25rem); margin-inline: auto; }
@media (max-width: 620px) {
  .playlist-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .playlist-detail-title { grid-column: 1 / -1; grid-row: 2; }
}
.track-info [lang="fa"] { width: fit-content; max-width: 100%; }
.playlist-list { max-width: 32rem; list-style: none; padding: 0; }
.playlist-list li + li { border-top: 1px solid var(--line); }
.playlist-list .quiet { padding: .65rem 0; }
.playlist-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem;
  align-items: center; padding: .55rem .35rem; border-radius: var(--button-radius);
  text-decoration: none; overflow-wrap: anywhere; font-weight: 600;
}
.playlist-link:hover { background: var(--surface); }
.playlist-link-icon {
  display: grid; place-items: center; width: 2rem; aspect-ratio: 1;
  border-radius: .55rem; background: var(--accent-wash); color: var(--accent);
}
.playlist-link > .icon { color: var(--muted); }
@media (max-width: 360px) {
  .playlist-create { gap: .35rem; }
  .playlist-create button { padding-inline: .45rem; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.gallery-item button { display: grid; width: 100%; padding: 0; grid-template-columns: minmax(0, 1fr); overflow: hidden; text-align: start; }
.gallery-item button > span:last-child { padding: .45rem .7rem; }
.gallery-item img, .gallery-placeholder { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; }
.gallery-placeholder { display: grid; place-items: center; font-size: 2rem; }
.gallery-placeholder { display: grid; place-items: center; color: var(--accent); background: var(--accent-wash); }
.lightbox { width: min(95vw, 65rem); max-height: 91dvh; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lightbox::backdrop { background: #000c; }
.lightbox-toolbar { display: flex; justify-content: end; gap: .35rem; margin-bottom: .7rem; }
.lightbox img, .lightbox video { margin: auto; width: auto; max-height: 64dvh; max-width: 100%; object-fit: contain; }
.lightbox h2 { margin: .65rem 0; }
.player, .player-playlist-popup {
  --player-bg: #efeff1;
  --player-ink: var(--ink);
  --player-muted: var(--muted);
  --player-line: #c8c9ce;
  --player-accent: #184f9b;
}
.player {
  position: fixed; z-index: 4; bottom: var(--player-bottom); inset-inline: var(--content-edge) var(--panel-gap);
  width: min(42rem, calc(100% - var(--content-edge) - var(--panel-gap))); margin-inline: auto;
  border-radius: 999px;
  background: var(--player-bg); color: var(--player-ink); box-shadow: 0 .55rem 1.5rem #03071040;
  padding: .4rem .75rem;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .player { background: transparent; }
  .player::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(105deg, #fff8f5a6, #f3f0ff9e 36%, #fff4e2a6 74%, #ffffffe0);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
  }
  :root[data-theme="dark"] .player::before {
    background: linear-gradient(105deg, #192232d9, #293b56c2 40%, #202935d9);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .player { background: var(--player-bg); }
  .player::before { content: none; }
  .welcome-card::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
:root[data-theme="dark"] :is(.player, .player-playlist-popup) {
  --player-bg: #293e59;
  --player-ink: #f4f8ff;
  --player-muted: #c7d6eb;
  --player-line: #627f9f;
  --player-accent: #b4d5ff;
}
#player-controls { display: grid; grid-template: "transport now tools" "transport timeline tools" / auto minmax(0, 1fr) auto; gap: .15rem .75rem; align-items: center; }
.now { grid-area: now; display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .85rem; line-height: 1.2; }
.now > div:last-child { min-width: 0; }
.now a, #now-album { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.now a { font-weight: 650; text-decoration: none; }
.now a:hover { color: var(--player-accent); text-decoration: underline; }
#now-album { font-size: .73rem; color: var(--player-muted); }
#now-cover, #now-placeholder { flex: none; width: 1.95rem; height: 1.95rem; border-radius: .35rem; object-fit: cover; }
#now-placeholder { display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.transport, .timeline, .player-tools { display: flex; align-items: center; gap: .15rem; }
.transport { grid-area: transport; }
.player #player-controls button {
  width: 2.25rem; min-height: 2.25rem; padding: 0;
}
.player > #player-controls button { background: transparent; color: var(--player-ink); }
.player > #player-controls button:is(:hover, [aria-pressed="true"], [aria-expanded="true"]) {
  color: var(--player-accent);
}
.player #player-controls button:focus-visible { outline-color: var(--player-accent); }
#player-controls button svg { width: 1.15rem; height: 1.15rem; }
#player-controls :is(#previous, #next) svg { width: 1.25rem; height: 1.25rem; }
#player-controls #toggle svg { width: 1.55rem; height: 1.55rem; }
#toggle[data-playing="false"] .pause-icon, #toggle[data-playing="true"] .play-icon { display: none; }
#player-favorite[aria-pressed="true"] svg { fill: currentColor; }
.player-tools { grid-area: tools; justify-self: end; }
.timeline { grid-area: timeline; font-variant-numeric: tabular-nums; font-size: .67rem; gap: .35rem; color: var(--player-muted); }
.player input[type=range] { accent-color: var(--player-accent); height: .75rem; margin: 0; }
.timeline input { flex: 1; min-width: 2.5rem; }
#volume { width: 3.65rem; }
#mute[aria-pressed="false"] .sound-cross, #mute[aria-pressed="true"] .sound-waves { display: none; }
.player-playlist-popup {
  position: absolute; inset-inline-end: 0; bottom: calc(100% + .5rem);
  width: min(17rem, 100%); max-height: calc(100dvh - 9rem); overflow-y: auto;
  padding: .85rem; background: var(--player-bg); color: var(--player-ink);
  border: 1px solid var(--player-line); border-radius: var(--radius); box-shadow: var(--panel-shadow);
}
.player-playlist-popup h2 { margin: 0 0 .55rem; font-size: 1rem; }
.player-playlist-popup form { display: grid; gap: .45rem; font-size: .9rem; }
.player-playlist-choice { display: grid; gap: .45rem; }
.playlist-popup-anchor { position: relative; z-index: 6; }
.playlist-popup-anchor > .player-playlist-popup { top: calc(100% + .25rem); bottom: auto; }
.playlist-popup-anchor > .playlist-popup-above { top: auto; bottom: calc(100% + .25rem); }
.player-playlist-popup button { min-height: 2rem; padding: .25rem .65rem; font-size: .82rem; }
.player-playlist-popup form button { justify-self: end; }
.player-playlist-actions { display: flex; justify-content: flex-end; gap: .45rem; }
#player-playlist-status { margin: .45rem 0 0; font-size: .85rem; }
.player-playlist-popup > a { font-size: .9rem; color: var(--player-accent); }
@media (min-width: 901px) {
  .welcome-card {
    /* The portrait starts near 58% of its rendered width. Leave a gap before it. */
    width: min(100%, 45rem, calc(50% + 8vw - (var(--content-edge) - var(--panel-gap)) / 2 + .7 * var(--gutter) - 1.5rem));
    left: calc(-.7 * var(--gutter));
  }
  body {
    --content-edge: calc(var(--rail) + 2 * var(--panel-gap));
    padding-left: var(--content-edge);
  }
  body.has-player .site-frame { padding-bottom: calc(var(--player-bottom) + 5rem - var(--panel-gap)); }
  .header-inner {
    position: fixed; z-index: 3; inset: var(--panel-gap) auto var(--panel-gap) var(--panel-gap);
    width: var(--rail); overflow: auto; padding: 1.25rem .8rem;
    display: flex; flex-direction: column;
    background: var(--chrome); border: 1px solid var(--line);
    border-radius: var(--panel-radius); box-shadow: var(--panel-shadow);
  }
  .brand { margin: 0 .45rem 1.15rem; }
  #nav { display: flex; flex: 1; flex-direction: column; }
  .sidebar-footer { margin-top: auto; }
  #menu { display: none; }
  .header-tools {
    position: relative; height: calc(var(--bar) - 1px);
    justify-content: end; padding-inline: var(--gutter);
  }
}
@media (max-width: 900px) {
  html:has(#content[data-section="home"]) { background-image: none; }
  .home-welcome {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0; padding-block: .5rem 1rem;
  }
  .home-welcome::before {
    content: "";
    position: absolute; inset: .5rem 0 auto auto;
    width: 53%; height: clamp(12rem, 60vw, 22rem);
    background: var(--home-portrait-matte) var(--home-portrait) right 40% / auto 115% no-repeat;
    mask-image: linear-gradient(to right, transparent, #000 22%),
                linear-gradient(to bottom, #000 80%, transparent);
    mask-composite: intersect;
    pointer-events: none;
  }
  .welcome-card { width: 100%; padding: .4rem 0 0; }
  .welcome-card::before { display: none; }
  .welcome-card > :is(.welcome-label, h2, .welcome-subtitle, .welcome-description) {
    width: 53%; margin-right: auto;
  }
  .welcome-label { font-size: clamp(1.05rem, 4.5vw, 1.65rem); }
  .welcome-card h2 { font-size: clamp(1.05rem, 4vw, 1.6rem); line-height: 1.5; }
  .welcome-subtitle { font-size: .92rem; }
  .welcome-description { font-size: .8rem; line-height: 1.65; }
  .welcome-actions { justify-content: flex-end; }
  .site-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .65rem; padding: .75rem 1rem calc(.75rem + 2px); margin-bottom: var(--panel-gap);
  }
  .header-inner { display: contents; }
  .mobile-search {
    display: grid; place-items: center; width: 2.5rem; min-height: 2.5rem; margin-inline-start: auto;
    border-radius: var(--button-radius); background: var(--quiet-action); color: var(--ink); font-size: 1.25rem;
  }
  .mobile-search:hover { background: var(--quiet-action-hover); color: var(--ink); }
  .menu { margin-left: 0; }
  #nav .nav-search { display: none; }
  #nav { order: 3; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); display: none; }
  .menu[aria-expanded=true] + #nav { display: grid; }
  .sidebar-footer { grid-column: 1 / -1; margin-top: .5rem; padding-bottom: .35rem; gap: .85rem; }
  .sidebar-footer a { display: inline-flex; align-items: center; min-height: 2.5rem; }
  .nav-search, .nav-label { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .player { border-radius: 1.25rem; }
  #player-controls { grid-template: "now transport" "timeline tools" / minmax(0, 1fr) auto; gap: .35rem .65rem; }
  .feature { align-items: center; grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr); }
}
@media (max-width: 470px) {
  .site-header { gap: .4rem; padding-inline: .75rem; }
  .header-tools { width: 100%; justify-content: end; }
  .brand { gap: .4rem; font-size: .95rem; }
  .track-row { grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: .35rem; }
  .track-actions { gap: .25rem; }
  .track-actions :is(button, .button) { padding-inline: .35rem; font-size: .75rem; }
  .player #player-controls button { width: 2.1rem; min-height: 2.1rem; }
  #volume { width: 2.95rem; }
  .captcha { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  body.has-player .site-frame { padding-bottom: calc(var(--player-bottom) + 10rem - var(--panel-gap)); }
  #player-controls { grid-template: "now" "timeline" "transport" "tools" / minmax(0, 1fr); }
  .transport, .player-tools { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.social-footer {
  margin-inline: var(--gutter);
  padding: 3.4rem 0 1.65rem;
  text-align: center;
}
.social-footer ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  margin: 0; padding: 0; list-style: none;
}
.social-footer a {
  display: grid; place-items: center; width: 2.65rem; height: 2.65rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--quiet-action); color: var(--accent);
}
.social-footer a:hover { background: var(--accent-wash); border-color: var(--accent); }
.social-footer .icon { width: 1.25rem; height: 1.25rem; }

.song-page { text-align: center; }
.song-page > [data-queue], .song-page > .lyrics { max-width: 48rem; margin-inline: auto; }
.song-page .song-back { display: flex; width: fit-content; align-items: center; gap: .35rem; }
.song-page .song-feature {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1rem;
  margin: 1.4rem 0 1rem;
}
.song-feature > .cover { width: min(65vw, 15rem); }
.song-artist { color: var(--muted); font-size: clamp(1.2rem, 3vw, 1.55rem); font-weight: 650; margin: 0 0 .4rem; }
.song-feature .persian { text-align: center; }
.song-share { justify-content: center; align-items: center; gap: .3rem; margin-bottom: 1rem; }
.song-share-label { flex-basis: 100%; color: var(--muted); font-weight: 600; }
.song-share a, .song-share button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--accent);
}
.song-share a:hover, .song-share button:hover { background: var(--surface); }
.song-share .icon { width: 1.25rem; height: 1.25rem; }
.song-page .track-row { text-align: start; }
.song-back .icon { width: 1rem; height: 1rem; }

.google-signin button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; }
.google-signin svg { flex: none; }
.signin-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); margin: .9rem 0; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

@media (max-width: 900px), (pointer: coarse) {
  input:not([type=range], [type=checkbox], [type=radio], [type=button], [type=submit], [type=reset]),
  textarea, select { font-size: max(16px, 1rem); }
}

.site-frame:has(> #content[data-section="song"]) {
  height: calc(100dvh - 2 * var(--panel-gap));
}
.site-frame > #content[data-section="song"] {
  min-height: 0;
  overflow: auto;
}
.site-frame:has(> #content[data-section="song"]) > :is(.site-header, .social-footer) {
  flex-shrink: 0;
}
.site-frame:has(> #content[data-section="song"]) > .social-footer {
  padding-block: .45rem;
}
.song-page { min-height: 0; padding-block: .65rem; }
.song-page .song-feature { gap: .55rem; margin-block: .65rem .35rem; }
.song-feature > .cover { width: min(52vw, clamp(5rem, 24dvh, 12rem)); }
.song-artist { margin-bottom: .2rem; }
.song-feature h1 { font-size: clamp(1.5rem, 4vw, 2.35rem); line-height: 1.12; }
.song-share { margin-bottom: .35rem; row-gap: 0; }
.song-page .lyrics { margin-top: .75rem; }

@media (max-height: 760px) {
  .song-page .song-feature {
    grid-template-columns: auto minmax(0, max-content);
    justify-content: center;
    align-items: center;
    gap: .75rem;
  }
  .song-feature > .cover { width: min(30vw, clamp(3rem, 20dvh, 8rem)); }
}

@media (max-width: 900px) {
  .song-page .song-back { min-height: 2rem; padding: .25rem .55rem; font-size: .8rem; }
  .song-page .song-feature { margin-top: 1rem; }
}
@media (hover: none) and (pointer: coarse) {
  #content:focus { outline: none; }
}

.gallery-item [data-kind="photo"] img { aspect-ratio: 1; }
[data-photo-viewer]:fullscreen {
  box-sizing: border-box;
  padding: .75rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
}
[data-photo-viewer]:fullscreen .lightbox-toolbar { flex: none; }
[data-photo-viewer]:fullscreen [data-gallery-stage] { flex: 1; min-height: 0; }
[data-photo-viewer]:fullscreen img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
}
[data-photo-viewer] [data-gallery-description]:empty { display: none; }

[aria-label="Video folders"] .button[aria-current="page"],
[data-play][data-playing="true"] {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: transparent;
}
[aria-label="Video folders"] .button[aria-current="page"]:hover,
[data-play][data-playing="true"]:hover { background: var(--accent-wash-hover); }
[data-video-viewer] [data-gallery-title] { text-align: center; }
[data-video-viewer] [data-gallery-stage] video,
[data-video-viewer] [data-gallery-stage] select { display: block; margin-inline: auto; }
[data-video-viewer] [data-gallery-stage] video { -webkit-touch-callout: none; }
[data-video-viewer] [data-gallery-stage] select { margin-block-start: .6rem; }

#mobile-tabs { display: none; }

@media (max-width: 900px) {
  body {
    --mobile-tabs-height: calc(4rem + env(safe-area-inset-bottom, 0px));
    padding-top: max(var(--panel-gap, 0px), env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--mobile-tabs-height) + var(--panel-gap, 0px));
  }
  body.has-player:not(:has(.site-frame)) { padding-bottom: calc(var(--mobile-tabs-height) + 9rem); }
  .player { bottom: calc(var(--mobile-tabs-height) + .5rem); }
  .header-tools .pill, #nav .mobile-tab-duplicate { display: none; }
  #mobile-tabs {
    position: fixed;
    z-index: 3;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: var(--mobile-tabs-height);
    padding: .25rem max(.375rem, env(safe-area-inset-right, 0px))
      calc(.25rem + env(safe-area-inset-bottom, 0px)) max(.375rem, env(safe-area-inset-left, 0px));
    background: var(--chrome);
    border-top: 1px solid var(--line);
    box-shadow: 0 -.3rem 1rem #0a122014;
  }
  #mobile-tabs a {
    display: flex;
    min-height: 2.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: .6rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
  }
  #mobile-tabs svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  #mobile-tabs a[aria-current="page"] {
    background: var(--accent-wash);
    color: var(--accent);
  }
  #mobile-tabs a:focus-visible { outline-offset: -2px; }
}

@media (max-width: 900px) {
  .mobile-search { display: none; }
  #mobile-tabs { z-index: 5; }
  #mobile-tabs summary {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 2.75rem; gap: .25rem; border-radius: .6rem; cursor: pointer;
    list-style: none; color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.15;
  }
  #mobile-tabs summary::-webkit-details-marker { display: none; }
  #mobile-tabs details:is([open], [data-current]) summary {
    background: var(--accent-wash); color: var(--accent);
  }
  .mobile-tab-panel {
    position: absolute; bottom: calc(100% + .5rem);
    left: max(.5rem, env(safe-area-inset-left, 0px)); width: 10rem;
    padding: .35rem; border: 1px solid var(--line); border-radius: .8rem;
    background: var(--chrome); box-shadow: 0 .5rem 1.3rem #08102040;
  }
  #mobile-tabs details:nth-child(2) .mobile-tab-panel {
    left: max(17%, env(safe-area-inset-left, 0px));
  }
  #mobile-tabs .mobile-tab-panel a {
    flex-direction: row; justify-content: start; gap: .55rem; padding-inline: .55rem;
    color: var(--ink); font-size: .86rem;
  }
  #mobile-tabs .mobile-tab-panel a:is(:hover, [aria-current="page"]) {
    background: var(--accent-wash); color: var(--accent);
  }
}

@media (max-width: 900px) {
  [aria-label="Video folders"] { gap: .4rem; margin-block-end: 1rem; }
  [aria-label="Video folders"] .button {
    min-height: 2rem;
    padding: .25rem .55rem;
    font-size: .8rem;
  }
}

@media (max-width: 900px) {
  .gallery-grid, .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.35rem, 1.5vw, .75rem); }
  .gallery-item button[data-kind="video"] > span:last-child {
    padding: .35rem .4rem;
    font-size: .78rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  .album-card { font-size: .8rem; line-height: 1.3; overflow-wrap: anywhere; }
  .album-card strong { margin-top: .35rem; }
}

.lightbox.is-gallery-fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(.65rem, env(safe-area-inset-top, 0px))
    max(.65rem, env(safe-area-inset-right, 0px))
    max(.65rem, env(safe-area-inset-bottom, 0px))
    max(.65rem, env(safe-area-inset-left, 0px));
  border: 0;
  border-radius: 0;
}
.lightbox.is-gallery-fullscreen[open],
.lightbox.is-gallery-fullscreen [data-photo-viewer],
.lightbox.is-gallery-fullscreen [data-gallery-stage] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.lightbox.is-gallery-fullscreen :is([data-photo-viewer], [data-gallery-stage]) { flex: 1; }
.lightbox.is-gallery-fullscreen :is(img, video) {
  display: block;
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}

.account-field { display: grid; gap: .35rem; }
.account-profile ul.errorlist { margin: 0; }
.account-password-change {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .45rem .55rem;
}
.account-password-change > input { width: 1rem; height: 1rem; margin: 0; }
.account-password-change > label { width: fit-content; cursor: pointer; font-weight: 600; }
.account-password-fields { grid-column: 1 / -1; display: grid; gap: .7rem; }
.account-password-change > input:not(:checked) ~ .account-password-fields { display: none; }

@media (max-width: 900px) {
  .account-page .form-stack { gap: .5rem; margin-bottom: .85rem; }
  .account-page .account-field { gap: .2rem; }
  .account-page .account-field label { font-size: .86rem; }
  .account-page .form-stack input:not([type="checkbox"], [type="hidden"]) {
    min-height: 2.25rem;
    padding-block: .32rem;
  }
  .account-page .account-password-fields { gap: .5rem; }
}

.account-password-match { color: var(--accent); font-size: .8rem; }
.account-password-match:empty { display: none; }

@media (max-width: 900px) {
  .password-field > .password-visibility { width: 2rem; }
  .password-field > .password-visibility svg { width: 1rem; height: 1rem; }
}

.search > button[type="submit"] {
  flex: none;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.search > button[type="submit"]:hover { color: var(--ink); }

.lightbox.is-gallery-fullscreen [data-gallery-stage] { touch-action: pinch-zoom; }

@media (max-width: 900px) {
  .player { border-radius: 1rem; padding: .3rem .55rem; }
  .player > #player-controls {
    grid-template: "now transport" 3.1rem "timeline timeline" auto / minmax(0, 1fr) auto;
    padding-top: .2rem;
    gap: .1rem .22rem;
  }
  .player > #player-controls :is(#mute, #volume, #shuffle, #repeat, #now-album, #player-favorite, #player-playlist) { display: none; }
  .player > #player-controls .now { gap: .3rem; font-size: .94rem; }
  .player > #player-controls :is(#now-cover, #now-placeholder) { width: 2.6rem; height: 2.6rem; }
  .player > #player-controls .transport { justify-self: end; gap: 0; }
  .player > #player-controls .transport button { width: clamp(1.8rem, 8vw, 2.25rem); min-height: 2.5rem; }
  .player > #player-controls .player-tools { display: contents; }
  .player > #player-controls .timeline {
    gap: .3rem;
    padding-inline: .15rem;
    min-height: 1rem;
  }
  .player > #player-controls #seek { min-width: 0; }
}

@media (any-pointer: coarse) {
  [data-gallery-stage] video::-webkit-media-controls-fullscreen-button { display: none; }
}

.player-mobile-chevron { display: none; }

@media (max-width: 900px) {
  .player { border-radius: 1.35rem; }
  .player > #player-controls :is(#now-cover, #now-placeholder) { border-radius: var(--button-radius, .42rem); }
  .player > #player-controls .transport { gap: .12rem; }
  .player > #player-controls .transport :is(#previous, #next) svg { width: .95rem; height: .95rem; }
  .player > #player-controls .transport #toggle {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    min-height: 0;
    border: 0;
    border-radius: var(--button-radius, .42rem);
    background: var(--accent-wash);
    color: var(--player-accent, var(--accent));
  }
  .player > #player-controls .transport #toggle svg { width: 1.25rem; height: 1.25rem; }
  .player > #player-controls #maximize-player {
    position: absolute;
    inset-inline-start: 50%;
    top: .1rem;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 1.25rem;
    min-height: 0;
    border: 0;
    border-radius: .4rem;
    background: transparent;
    color: var(--player-muted, var(--muted));
  }
  :is(#maximize-player, #close-expanded-player) .player-desktop-symbol { display: none; }
  .player-mobile-chevron { display: block; width: .95rem; height: .95rem; }
  .player > #player-controls #maximize-player .player-mobile-chevron { width: 1.05rem; height: 1.05rem; }
  #close-expanded-player { display: grid; place-items: center; }
}

:root[data-theme="dark"] { --playback-dark-accent: #9eafc6; }
:root[data-theme="dark"] #player-controls #seek { accent-color: var(--playback-dark-accent); }
:root[data-theme="dark"] #player-controls #toggle { color: var(--playback-dark-accent); }

@media (max-width: 900px) {
  :root[data-theme="dark"] .player > #player-controls .transport #toggle {
    color: var(--playback-dark-accent);
  }
}

@media (max-width: 900px) and (prefers-reduced-transparency: no-preference) {
  .player > #player-controls .transport #toggle {
    background: color-mix(in srgb, currentColor 18%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, currentColor 20%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}


@media (max-width: 900px) {
  .player {
    --mobile-player-shell: #f2eff5;
    --mobile-player-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 90' preserveAspectRatio='none'%3E%3Cpath d='M0 32C0 20 10 10 22 10H154C165 10 165 0 180 0S195 10 206 10H338C350 10 360 20 360 32V68C360 80 350 90 338 90H22C10 90 0 80 0 68Z'/%3E%3C/svg%3E");
    background: transparent;
  }
  :root[data-theme="dark"] .player { --mobile-player-shell: #25334a; }
  .player > #player-controls #maximize-player { top: -.85rem; }
  .player > #player-controls #maximize-player .player-mobile-chevron { width: .9rem; height: .9rem; }
  .player::before,
  :root[data-theme="dark"] .player::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -10px 0 0;
    border-radius: 0;
    background: var(--mobile-player-shell);
    -webkit-mask: var(--mobile-player-shape) center / 100% 100% no-repeat;
    mask: var(--mobile-player-shape) center / 100% 100% no-repeat;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  .player { transform: none; }
  .player > #player-controls { touch-action: pan-x pinch-zoom; }
  #now-artwork { display: block; flex: none; }
}

@media (min-width: 901px) {
  .player::before, :root[data-theme="dark"] .player::before {
    -webkit-mask: none;
    mask: none;
    clip-path: none;
    border-radius: inherit;
  }
}
@media (max-width: 900px) {
  @supports (clip-path: shape(from 0 0, line to 100% 0, close)) {
    .player::before, :root[data-theme="dark"] .player::before {
      -webkit-mask: none;
      mask: none;
      clip-path: shape(
        from 0 32px,
        curve to 22px 10px with 0 20px / 10px 10px,
        line to calc(50% - 26px) 10px,
        curve to 50% 0 with calc(50% - 15px) 10px / calc(50% - 15px) 0,
        curve to calc(50% + 26px) 10px with calc(50% + 15px) 0 / calc(50% + 15px) 10px,
        line to calc(100% - 22px) 10px,
        curve to 100% 32px with calc(100% - 10px) 10px / 100% 20px,
        line to 100% calc(100% - 22px),
        curve to calc(100% - 22px) 100% with 100% calc(100% - 10px) / calc(100% - 10px) 100%,
        line to 22px 100%,
        curve to 0 calc(100% - 22px) with 10px 100% / 0 calc(100% - 10px),
        close
      );
    }
  }
}
@media (max-width: 900px) and (prefers-reduced-transparency: no-preference) {
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .player { --mobile-player-shell: #f2eff5bd; }
    :root[data-theme="dark"] .player { --mobile-player-shell: #25334abd; }
    .player::before, :root[data-theme="dark"] .player::before {
      -webkit-backdrop-filter: blur(20px) saturate(135%);
      backdrop-filter: blur(20px) saturate(135%);
    }
  }
}

@media (max-width: 900px) {
  :is(#maximize-player, #close-expanded-player) {
    -webkit-tap-highlight-color: transparent;
  }
  :is(#maximize-player, #close-expanded-player):focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  :is(#maximize-player, #close-expanded-player):focus {
    outline: none;
    box-shadow: none;
  }
}

#expanded-player #player-controls :is(.transport, .player-tools) button:not(#toggle) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#expanded-player #player-controls :is(.transport, .player-tools) button:not(#toggle):is(:hover, [aria-pressed="true"], [aria-expanded="true"]) {
  background: transparent;
  color: var(--accent);
}
#expanded-player #player-controls :is(#previous, #next) svg { width: 1.55rem; height: 1.55rem; }

#player-queue { padding: 0; }
#player-queue li + li { margin-top: .2rem; }
#player-queue button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: .8rem;
  row-gap: .2rem;
  padding: .65rem .8rem;
  border: 0;
  border-radius: .65rem;
  background: transparent;
  box-shadow: none;
}
#player-queue button:hover { background: var(--surface); }
#player-queue button[aria-current] { background: var(--accent-wash); color: var(--accent); }
#player-queue button strong { font-size: .91rem; font-weight: 600; }
#player-queue button .queue-title-fa {
  color: inherit;
  font-size: .9rem;
  line-height: 1.65;
  text-align: right;
}
#player-queue button .queue-album {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .75rem;
}

#expanded-player #now-album:not(:empty)::before { content: "Album: "; }
