/* Multiversum Mind - additions on top of the template (main.css) */

.header .logo .sitename { font-size: 26px; margin: 0; font-weight: 700; color: var(--heading-color); font-family: var(--heading-font); white-space: nowrap; }
.header .logo img { max-height: 50px; margin-right: 10px; }   /* big enough for the details of the logo */
@media (max-width: 767px) { .header .logo img { max-height: 42px; } }
.hero .hero-title { margin: 0; font-size: 48px; font-weight: 700; font-family: var(--heading-font); color: var(--heading-color); }
.hero h1.hero-title { color: #fff; }

/* header from left to right: logo | menu (fills the space left) | languages | "Listen"
   - from 768 px: the menu takes the space between the logo and the languages, its items grouped in the middle of it;
     letters 16 px and gaps 10 px up to ~1000 px, then growing up to 22 px / 22 px at ~1440 px (the header itself stops at ~1140 px);
     the site name next to the logo from 900 px (21 px up to 1199 px, 26 px from 1200 px), below 900 px only the logo picture
   - below 768 px (mobile menu, main.css): logo | languages | "Listen" | menu button */
@media (min-width: 768px) {
  .header .navmenu { flex: 1 1 auto; margin: 0 12px; }
  .header .navmenu ul { justify-content: center; gap: clamp(10px, calc(2.73vw - 17.3px), 22px); }
  .navmenu a, .navmenu a:focus { padding: 18px 4px; font-size: clamp(16px, calc(1.364vw + 2.36px), 22px); }
}
@media (min-width: 768px) and (max-width: 899px) {
  .header .logo .sitename { #display: none; font-size: 18px;}
}
@media (min-width: 900px) and (max-width: 1199px) {   /* a window of 960 px is a page of ~900-940 px */
  .header .logo .sitename { font-size: 24px; }
}
@media (max-width: 767px) {
  .header .lang-switch { order: 2; margin-right: 10px; }
  .header .act-listen-site { order: 3; margin: 0 10px 0 0 !important; }
  .header .navmenu { order: 4; }
}

/* the page you are on: its menu item in yellow text only (no frame, no background - also in the mobile menu) */
.navmenu a.active, .navmenu a.active:focus { color: var(--nav-hover-color); background: none; }

/* home page: the profiles in one row - the icons keep their size (template: 32 px), smaller names and padding;
   below 768 px icons only, in one row while they fit, then wrapping */
.hero-profiles { display: flex; flex-wrap: nowrap; justify-content: center; gap: 12px; }
.hero-profiles .icon-box { flex: 1 1 0; max-width: 120px; min-width: 0; height: auto; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hero-profiles .hp-name { font-size: 13px; font-weight: 700; line-height: 1.2; color: color-mix(in srgb, var(--default-color), transparent 20%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hero-profiles .icon-box:hover .hp-name { color: var(--accent-color); }
@media (max-width: 767px) {
  .hero-profiles { flex-wrap: wrap; gap: 10px; }
  .hero-profiles .icon-box { flex: 0 0 auto; width: 42px; padding: 14px 0; }
  .hero-profiles .hp-name { display: none; }
}

/* language switch: its own group before "Listen", short labels (EN, СР, SR), every button of the same fixed width
   (the border is always there, transparent when not active), so the group never moves */
.header .lang-switch { display: flex; gap: 2px; flex: 0 0 auto; }
.header .lang-switch a { display: inline-block; width: 30px; padding: 2px 0; text-align: center; font-family: var(--nav-font); font-size: 12px; line-height: 1.3;
                         color: var(--nav-color); border: 1px solid transparent; border-radius: 3px; }
.header .lang-switch a:hover { color: var(--nav-hover-color); }
.header .lang-switch a.active { border-color: color-mix(in srgb, var(--nav-hover-color), transparent 70%); color: var(--nav-hover-color); }   /* a faint frame: chosen, yet the gaps look even */

/* ------------------------------------------------ toolbar */
.music-toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%); background: var(--surface-color); color: var(--default-color);
  border-radius: 999px; padding: 5px 14px; font-size: 14px; font-family: var(--nav-font); cursor: pointer; transition: .2s; display: inline-block; }
.chip:hover { border-color: var(--accent-color); color: var(--default-color); }
.chip.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--contrast-color); }
.toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar-right .album-select, .toolbar-right .genre-select { width: auto; min-width: 160px; }
.toolbar-right .song-search { width: 180px; }
.view-toggle .btn { border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%); color: var(--default-color); }
.view-toggle .btn.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--contrast-color); }

.album-banner { display: flex; gap: 20px; align-items: center; padding: 16px; margin-bottom: 24px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); background: var(--surface-color); }
.album-banner img { width: 120px; height: 120px; object-fit: cover; flex-shrink: 0; }
.album-banner h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
@media (max-width: 575px) { .album-banner { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------ songs: grid view (4 per row) */
.songs.view-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1199px) { .songs.view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .songs.view-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .songs.view-grid { grid-template-columns: minmax(0, 1fr); } }

.song[hidden] { display: none !important; }
.song-inner { background: var(--surface-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  height: 100%; padding: 10px; transition: all ease-in-out .3s; display: flex; flex-direction: column; }
.song-inner:hover { box-shadow: 0 0 25px 0 rgba(0, 0, 0, .1); }
.view-grid .song-inner:hover { transform: translateY(-6px); }
.view-grid .song-inner { text-align: center; }

.song-cover { position: relative; display: block; overflow: hidden; }
.song-cover img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .4s; }
.song-cover:hover img { transform: scale(1.04); }
.cover-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--svc);
  border-radius: 10px; padding: 2px 10px; font-size: 34px; line-height: 1.3; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); opacity: .92; transition: .3s; }
.song-cover:hover .cover-badge { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

.song-body { display: flex; flex-direction: column; flex: 1; }
.song-title { margin: 10px 0 0; font-weight: 700; font-size: 1.1em; line-height: 1.3; }
.song-title a { color: var(--heading-color); }
.song-title a:hover { color: var(--accent-color); }
.song-sub { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); font-style: italic; }
.song .genre { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 20%); }
/* the categories of a song in the list: one line, cut with "…" (all of them in the popup) */
.song .song-cats-line { font-size: 12.5px; color: color-mix(in srgb, var(--default-color), transparent 35%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.song .song-cats-line a { color: inherit; }
.song .song-cats-line a:hover { color: var(--accent-color); text-decoration: underline; }
/* grid: fixed heights - title always 2 lines (a longer one cut with "…"), subtitle, genres and categories 1 line each - so a two-line
   title or a long genre does not move what is under it and the cards of a row stay even */
.view-grid .song-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.view-grid .song-sub, .view-grid .genre, .view-grid .song-cats-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; height: 1.5em; }
.detail-only { display: none !important; }

.video-links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; }
.video-links .svc { color: var(--contrast-color); font-size: 28px; padding: 0 5px; display: inline-flex; align-items: center; gap: 6px; }
.video-links .svc:hover { color: var(--svc); }
.video-links .svc-name { display: none; }

.song-actions { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.song-actions .act { background: none; border: 0; color: color-mix(in srgb, var(--default-color), transparent 40%); font-size: 20px; padding: 2px 8px; line-height: 1; cursor: pointer; }
.song-actions .act:hover, .song.playing .act-play { color: var(--accent-color); }
.song.playing .song-inner { border-color: var(--accent-color); }

/* ------------------------------------------------ songs: detail view (1 per row) */
.songs.view-list { display: flex; flex-direction: column; gap: 18px; }
.view-list .song-inner { flex-direction: row; gap: 22px; padding: 14px; text-align: left; }
.view-list .song-cover { width: 230px; flex-shrink: 0; align-self: flex-start; }
.view-list .song-title { margin-top: 0; font-size: 1.4em; }
.view-list .detail-only { display: flex !important; }
.view-list .song-meta { flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 25%); margin-top: 6px; }
.view-list .song-excerpt { display: block !important; font-style: italic; font-size: 14px; margin-top: 10px; color: color-mix(in srgb, var(--default-color), transparent 20%); }
.view-list .video-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.view-list .video-links .svc { font-size: 15px; padding: 6px 12px; border-radius: 4px; color: #fff; background: var(--svc); }
.view-list .video-links .svc:hover { color: #fff; filter: brightness(1.1); }
.view-list .video-links .svc i { font-size: 18px; }
.view-list .video-links .svc-name { display: inline; }
.view-list .song-actions { justify-content: flex-start; margin-top: 10px; }
@media (max-width: 767px) {
  .view-list .song-inner { flex-direction: column; }
  .view-list .song-cover { width: 100%; max-width: 360px; }
}

/* ------------------------------------------------ link buttons (song page, album banner) */
.link-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--svc); color: #fff; padding: 9px 16px; border-radius: 4px; font-weight: 500; font-family: var(--nav-font); }
.link-btn i { font-size: 20px; }
.link-btn:hover { color: #fff; filter: brightness(1.12); }

/* footer: the RSS link in small letters above the copyright */
.footer-rss { font-size: 12px; margin-bottom: 6px; }
.footer-rss a { color: color-mix(in srgb, var(--default-color), transparent 35%); }
.footer-rss a:hover { color: var(--accent-color); }

/* ------------------------------------------------ share (song page, album page): small round icons under the link buttons */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.share-label { font-size: 14px; color: #6c757d; margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ced4da; background: #fff; color: #495057; font-size: 16px; padding: 0; line-height: 1; }
.share-btn:hover { color: #000; border-color: #6c757d; background: #f3f4f6; }
.share-note { font-size: 13px; color: #198754; margin-left: 4px; }

/* ------------------------------------------------ song page */
/* the main menu is semi-transparent on every page (template: rgba(0, 0, 0, .8)); the home page keeps it fully transparent over the big picture until it scrolls */
/* title and breadcrumbs of a page: a light band right under the fixed menu, apart from the menu and from the white content */
.page-band { --background-color: #f3f4f6; --default-color: #212529; --heading-color: #151515;
             padding: 92px 0 18px; border-bottom: 1px solid #e3e5e8; }
.page-band .breadcrumbs { background: none; padding: 6px 0 0; }
.page-band .breadcrumbs a { color: #212529; text-decoration: underline; text-decoration-color: transparent; }   /* the yellow accent is hard to read on light grey */
.page-band .breadcrumbs a:hover { color: #000; text-decoration-color: currentColor; }
.page-band .breadcrumbs .current { color: #6c757d; }
.page-band .listing-title { margin-bottom: 4px; }
@media (max-width: 767px) { .page-band { padding-top: 78px; } }
body.has-top-bar .page-band, body.is-preview .page-band { padding-top: 125px; }
@media (max-width: 767px) { body.has-top-bar .page-band, body.is-preview .page-band { padding-top: 111px; } }
.song-detail-cover img { width: 100%; box-shadow: 0 6px 30px rgba(0, 0, 0, .15); }
.song-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.song-detail-title { font-size: 36px; font-weight: 700; margin: 0; }
.song-detail-sub { font-style: italic; font-size: 18px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.song-detail-artist { font-family: var(--nav-font); margin: 4px 0 18px; color: color-mix(in srgb, var(--default-color), transparent 20%); }
.song-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 22px; }
.song-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: color-mix(in srgb, var(--default-color), transparent 40%); font-weight: 500; }
.song-facts dd { margin: 0; }
.yt-embed { margin-top: 24px; position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt-embed iframe, .yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-poster { padding: 0; cursor: pointer; background: #000; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 72px; color: #ff0000; text-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.yt-poster:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); }
.song-description { margin-top: 22px; }
.song-cats { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.lyrics { margin-top: 34px; }
.lyrics h2 { font-size: 24px; font-weight: 700; border-bottom: 2px solid var(--accent-color); display: inline-block; padding-bottom: 4px; margin-bottom: 16px; }
.lyrics-text { font-size: 17px; line-height: 1.7; font-family: Georgia, "Times New Roman", serif; }
.album-tracks { margin-top: 50px; }
.album-tracks h2 { font-size: 22px; font-weight: 700; }
.track-list { columns: 2; column-gap: 40px; padding-left: 1.4em; }
.track-list li { padding: 3px 0; break-inside: avoid; }
.track-list li.current a { font-weight: 700; color: var(--heading-color); }
.track-list li .text-muted { font-size: 13px; margin-left: 6px; }
@media (max-width: 767px) { .track-list { columns: 1; } .song-detail-title { font-size: 28px; } }

/* ------------------------------------------------ footer */
.footer .footer-logo { max-width: 200px; }
.footer .social-links a { font-size: 22px; margin: 0 10px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.footer .social-links a:hover { color: var(--accent-color); }

/* contact honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.toolbar-right .song-sort { width: auto; min-width: 150px; }

/* ------------------------------------------------ albums page */
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1199px) { .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .album-grid { grid-template-columns: minmax(0, 1fr); } }
.album-card { background: var(--surface-color); border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); padding: 10px; text-align: center; transition: .3s; }
.album-card:hover { box-shadow: 0 0 25px 0 rgba(0, 0, 0, .1); transform: translateY(-6px); }
.album-card-cover img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.album-card-title { font-size: 1.15em; font-weight: 700; margin: 10px 0 2px; }
.album-card-title a { color: var(--heading-color); }
.album-card-title a:hover { color: var(--accent-color); }
.album-card-meta { font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.album-card .video-links .svc { color: var(--contrast-color); font-size: 26px; padding: 0 5px; }
.album-card .video-links .svc:hover { color: var(--svc); }

/* song page: facts in the left column, one per row */
.song-facts-side { display: block; margin: 22px 0 0; }
.song-facts-side > div { padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%); }
.song-facts-side .song-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.song-detail .lyrics { margin-top: 26px; }
.song-detail .yt-embed { margin-top: 34px; }

/* ------------------------------------------------ album page */
.album-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 30px; }
.album-head-cover { width: 260px; max-width: 40%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 0 6px 30px rgba(0, 0, 0, .15); }
.album-head-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--default-color), transparent 40%); }
.album-head-title { font-size: 34px; font-weight: 700; margin: 2px 0 4px; }
@media (max-width: 767px) { .album-head { flex-direction: column; } .album-head-cover { max-width: 100%; width: 100%; } }

.track-rows { border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); }
.song-row { display: flex; align-items: center; gap: 14px; padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%); }
.song-row:hover { background: color-mix(in srgb, var(--accent-color), transparent 90%); }
.song-row.playing { background: color-mix(in srgb, var(--accent-color), transparent 80%); }
.song-row .row-no { width: 24px; text-align: right; color: color-mix(in srgb, var(--default-color), transparent 40%); font-size: 14px; flex-shrink: 0; }
.song-row .row-thumb img { width: 56px; height: 56px; object-fit: cover; display: block; }
.song-row .row-main { flex: 1; min-width: 0; }
.song-row .row-title { color: var(--heading-color); font-weight: 600; }
.song-row .row-title:hover { color: var(--accent-color); }
.song-row .row-sub { font-style: italic; font-size: 14px; margin-left: 8px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.song-row .row-genre { font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 30%); }
.song-row .row-links { margin: 0; padding: 0; white-space: nowrap; }
.song-row .row-links .svc { color: var(--contrast-color); font-size: 20px; padding: 0 4px; }
.song-row .row-links .svc:hover { color: var(--svc); }
.song-row .row-dur { width: 48px; text-align: right; font-size: 14px; color: color-mix(in srgb, var(--default-color), transparent 30%); flex-shrink: 0; }
.song-row .row-actions { margin: 0; flex-shrink: 0; }
@media (max-width: 575px) { .song-row { flex-wrap: wrap; } .song-row .row-links { order: 10; width: 100%; padding-left: 94px; } }
/* album rows: link icons in a fixed column, left aligned */
.song-row .row-links { width: 150px; flex-shrink: 0; text-align: left; display: flex; gap: 2px; }
.song-row .row-links .svc { padding: 0 6px 0 0; }
@media (max-width: 575px) { .song-row .row-links { width: 100%; } }
.btn-listen { background: var(--accent-color); color: var(--contrast-color); border: 0; padding: 8px 22px; font-weight: 600; font-family: var(--nav-font); border-radius: 4px; }
.btn-listen:hover { background: color-mix(in srgb, var(--accent-color), transparent 15%); color: var(--contrast-color); }
.btn-listen.btn-sm { padding: 4px 12px; white-space: nowrap; }   /* "Play all" in the toolbar of a list */

/* "Listen" in the header: play / pause icon in front, a quiet VU meter behind it that moves only while the player plays */
.header .act-listen-site { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
                           width: 52px; height: 38px; padding: 0 !important; margin-left: 12px; }
.act-listen-site .ls-icon { position: relative; z-index: 1; font-size: 22px; line-height: 1; }
/* the bars: height and colour (green - yellow - red by level) set by site.js while the player plays */
.act-listen-site .vu { position: absolute; inset: 6px 8px; z-index: 0; display: flex; align-items: flex-end; gap: 2px; opacity: .5; pointer-events: none; }
.act-listen-site .vu i { flex: 1; height: 0; border-radius: 1px 1px 0 0; }


/* detail view on wide screens: cover | data | lyrics excerpt | links + actions - uses the full width */
@media (min-width: 992px) {
  .songs.view-list { gap: 10px; }
  .view-list .song-inner { gap: 18px; padding: 10px; align-items: flex-start; }
  .view-list .song-cover { width: 150px; }
  .view-list .song-body {
    display: grid; flex: 1; min-width: 0; column-gap: 24px; row-gap: 2px;
    grid-template-columns: minmax(200px, 1.1fr) minmax(200px, 1.3fr) minmax(200px, 1fr);
    grid-template-areas:
      "title   excerpt links"
      "sub     excerpt links"
      "genre   excerpt actions"
      "meta    excerpt actions"
      ".       excerpt .";
    align-content: start;
  }
  .view-list .song-title   { grid-area: title; font-size: 1.25em; }
  .view-list .song-sub     { grid-area: sub; }
  .view-list .genre        { grid-area: genre; }
  .view-list .song-meta    { grid-area: meta; margin-top: 4px; }
  .view-list .song-excerpt { grid-area: excerpt; margin-top: 0; line-height: 1.5; }
  .view-list .video-links  { grid-area: links; margin-top: 0; padding-top: 0; align-content: flex-start; gap: 6px; }
  .view-list .video-links .svc { font-size: 14px; padding: 4px 10px; }
  .view-list .video-links .svc i { font-size: 16px; }
  .view-list .song-actions { grid-area: actions; margin-top: 6px; }
  .view-list .song-sub:empty, .view-list .song-sub:has(> :only-child:empty) { display: none; }
}

/* detail view, wide screens: body as high as the cover, year/duration at the bottom,
   8-line lyrics excerpt, action icons equal and centered under the link buttons */
@media (min-width: 992px) {
  .view-list .song-inner { align-items: stretch; }
  .view-list .song-cover { width: 165px; align-self: flex-start; }
  .view-list .song-body {
    height: 165px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.4fr) auto;
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas:
      "title excerpt links"
      "sub   excerpt links"
      "genre excerpt actions"
      ".     excerpt actions"
      "meta  excerpt actions";
  }
  .view-list .song-meta { align-self: end; margin: 0; line-height: 1.2; }
  .view-list .song-excerpt { font-size: 13.5px; line-height: 1.5; max-height: 165px; overflow: hidden; }
  .view-list .video-links { flex-wrap: nowrap; justify-content: flex-start; }
  .view-list .song-actions { justify-content: center; align-items: center; align-self: start; gap: 14px; margin-top: 10px; width: 100%; }
  .view-list .song-actions .act { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; font-size: 21px; line-height: 1; }
  .view-list .song-actions .act i { display: block; line-height: 1; }
}

/* detail view: link buttons small and all the same size, 3 per row, centered with the icons below */
@media (min-width: 992px) {
  .view-list .song-body { grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.4fr) 296px; }
  .view-list .video-links { flex-wrap: wrap; justify-content: center; align-items: flex-start; align-self: start; gap: 6px; }
  .view-list .video-links .svc { width: 92px; height: 28px; padding: 0 6px; justify-content: center; gap: 5px; font-size: 12.5px; line-height: 1; white-space: nowrap; overflow: hidden; }
  .view-list .video-links .svc i { font-size: 14px; }
  .view-list .video-links .svc-name { overflow: hidden; text-overflow: ellipsis; }
}
/* preview of an unpublished song (admin only) */
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; background: #b02a37; color: #fff; text-align: center; font-size: 14px; padding: 6px 12px; }
.preview-bar a { color: #fff; text-decoration: underline; margin-left: 8px; font-weight: 600; }
body.is-preview .header { top: 33px; }

/* ===== detail view v3 (wide screens): cover 120 | title, sub, genre, actions, year/duration | 4 lines | service slots on the right ===== */
.svc-slots { display: none; }
@media (min-width: 992px) {
  .view-list .song-cover { width: 120px; }
  .view-list .song-inner { padding: 8px; gap: 16px; }
  .view-list .song-body {
    height: auto; min-height: 120px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1.4fr) auto;
    grid-template-rows: auto auto auto auto 1fr auto auto;
    grid-template-areas:
      "title   excerpt slots"
      "sub     excerpt slots"
      "genre   excerpt slots"
      "cats    excerpt slots"
      ".       excerpt slots"
      "actions excerpt slots"
      "meta    excerpt slots";
    row-gap: 0;
  }
  .view-list .song-cats-line { grid-area: cats; }
  .view-list .song-title { font-size: 1.1em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .view-list .song-sub { font-size: 13px; }
  .view-list .genre { font-size: 12.5px; }
  .view-list .song-excerpt { font-size: 13.5px; line-height: 1.45; max-height: none; align-self: start; }
  .view-list .video-links { display: none !important; }
  .view-list .song-actions { grid-area: actions; justify-content: flex-start; align-self: end; margin: 4px 0 2px -6px; width: auto; gap: 6px; }
  .view-list .song-actions .act { width: 28px; height: 26px; font-size: 19px; }
  .view-list .song-meta { margin: 0; font-size: 13px; }

  /* fixed places: columns of 3 from the right edge, top to bottom */
  .view-list .svc-slots {
    display: grid !important; grid-area: slots; align-self: start; justify-self: end;
    grid-auto-flow: column; grid-template-rows: repeat(3, 28px); grid-auto-columns: 96px; gap: 6px;
    direction: rtl;
  }
  .view-list .svc-slot { direction: ltr; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    height: 28px; padding: 0 6px; border-radius: 4px; background: var(--svc); color: #fff; font-size: 12.5px; line-height: 1; white-space: nowrap; overflow: hidden; }
  .view-list .svc-slot i { font-size: 14px; }
  .view-list .svc-slot span { overflow: hidden; text-overflow: ellipsis; }
  .view-list a.svc-slot:hover { color: #fff; filter: brightness(1.1); }
  .view-list .svc-slot-empty { background: transparent; border: 1px dashed color-mix(in srgb, var(--default-color), transparent 80%); }
  .view-list .svc-slot-empty > * { visibility: hidden; }
}
@media (max-width: 991px) { .view-list .svc-slots { display: none !important; } }
/* icon-only square buttons, 4 in a row (then the next row), right-aligned, at the top of the field; the first one top right */
@media (min-width: 992px) {
  .view-list .svc-slots { display: grid !important; grid-template-columns: repeat(4, 30px); grid-auto-rows: 30px; grid-auto-flow: row; grid-template-rows: none;
    gap: 5px; direction: rtl; align-self: start; justify-self: end; }
  .view-list .svc-slot { width: 30px; height: 30px; padding: 0; gap: 0; font-size: 15px; }
  .view-list .svc-slot i { font-size: 15px; }
}
.filter-clear { border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%); color: var(--default-color); white-space: nowrap; }
.filter-clear:hover { border-color: #b02a37; color: #b02a37; }

/* "Details" view: play button in the bottom right corner of the card */
.act-play-corner { display: none; }
.view-list .song-inner { position: relative; }
.view-list .act-play-corner { display: inline-flex; align-items: center; justify-content: center; position: absolute; right: 10px; bottom: 8px; width: 28px; height: 26px; background: none; border: 0; padding: 0; line-height: 1; font-size: 19px; color: color-mix(in srgb, var(--default-color), transparent 40%); cursor: pointer; }
.view-list .act-play-corner:hover, .song.playing .act-play-corner { color: var(--accent-color); }
.view-list .song-actions .act-play { display: none; }

.video-links .album-play { background: none; border: 0; padding: 2px 8px 2px 0; line-height: 1; font-size: 20px; cursor: pointer; color: color-mix(in srgb, var(--default-color), transparent 40%); }
.video-links .album-play:hover, .video-links .album-play.playing { color: var(--accent-color); }

/* ===== cover places: 1:1 (grid, player, pages) and 16:9 (detail view of the list).
   A place without its own picture shows the other one whole (.cover-fit), on the background colour (Settings). ===== */
.cover-fit { object-fit: contain !important; background: var(--cover-bg, #1f1f1f); }
.song-detail-cover img { aspect-ratio: 1 / 1; object-fit: cover; }
.album-banner img, .album-head-cover, .album-card-cover img, .song-row .row-thumb img { background: var(--cover-bg, #1f1f1f); }
.song-cover .cv-wide { display: none; }
.view-list .song-cover .cv-sq { display: none; }
.view-list .song-cover .cv-wide { display: block; aspect-ratio: 16 / 9; }
/* detail view: the 16:9 place is as high as the 1:1 place was, so the rows keep their layout */
.view-list .song-cover { width: 320px; }
@media (max-width: 767px) { .view-list .song-cover { width: 100%; max-width: 480px; } }
@media (min-width: 992px) { .view-list .song-cover { width: 213px; } }

/* link icons: centered in song and album cards; detail view and album rows keep their own alignment */
.video-links { justify-content: center; }
.view-list .video-links, .song-row .row-links { justify-content: flex-start; }
/* detail view, narrow screens: icon-only square buttons in the colour of the service */
@media (max-width: 991px) {
  .view-list .video-links { gap: 5px; }
  .view-list .video-links .svc { width: 30px; height: 30px; padding: 0; gap: 0; justify-content: center; font-size: 15px; }
  .view-list .video-links .svc i { font-size: 15px; }
  .view-list .video-links .svc-name { display: none; }
}
/* detail view, wide screens: the first service is in the top right corner, the next one to its left (direction: rtl of the grid above) */
/* album cards: the links row sits at the bottom of the card, at the same height in every card of a row */
.album-card { display: flex; flex-direction: column; }
.album-card-body { flex: 1; display: flex; flex-direction: column; }
/* logged-in admin: bar at the top of the public pages (Dashboard, Edit this ...) */
.admin-bar { background: #212529; }
body.has-top-bar .header { top: 33px; }
/* genres as links: look like the text, underlined on hover */
.genre-link { color: inherit; }
.genre-link:hover { color: var(--accent-color); text-decoration: underline; }
/* genre filter: line between the songs of the genre and the songs of similar genres (across the whole list) */
.genre-similar-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: color-mix(in srgb, var(--default-color), transparent 35%); }
.genre-similar-sep::before, .genre-similar-sep::after { content: ""; flex: 1; border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 80%); }
