/* Wide website only: preserve title fonts, cards and single-row bottom player. */
html[data-sehaj-desktop-catalog="true"] .toolbar-row-controls {display:none!important;}
html[data-sehaj-desktop-catalog="true"] .toolbar-row-filters {display:block!important;width:100%!important;}
html[data-sehaj-desktop-catalog="true"] .toolbar-row-filters > :not(#qaD38A8Icons) {display:none!important;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons > button {display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:64px;padding:8px;background:var(--card-bg,#fff);color:inherit;border:1px solid #cbd5e1;border-radius:9px;font:inherit;cursor:pointer;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons .qa-d38a8-symbol {font-size:24px;line-height:1.2;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons .qa-d38a8-label {font-size:14px;font-weight:600;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons > button[aria-pressed="true"] {background:#e7f0ff!important;border:2px solid #2563eb!important;color:#1746a2!important;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons > button:focus-visible {outline:3px solid #2563eb;outline-offset:2px;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel[open] {display:block!important;}
html[data-sehaj-desktop-catalog="true"] .card-actions > .fav-heart-btn {display:inline-flex!important;position:static!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:6px;border:1px solid #cbd5e1;border-radius:10px;font-size:25px;flex:0 0 auto;}
html[data-sehaj-desktop-catalog="true"] .qa-d38c-panel {max-width:900px;max-height:calc(100dvh - 32px);}
html[data-sehaj-desktop-catalog="true"] .qa-d38c-body {padding:20px;}
html[data-sehaj-desktop-catalog="true"] .qa-d38c-actions {grid-template-columns:repeat(4,minmax(0,1fr));}
@media(min-width:1400px){html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons {grid-template-columns:repeat(10,minmax(0,1fr));}}
/* Keep the primary playback action first and details last. */
html[data-sehaj-desktop-catalog="true"] .card-actions > .play-btn-icon {order:-2;}
html[data-sehaj-desktop-catalog="true"] .card-actions > .fav-heart-btn {order:-1;}
html[data-sehaj-desktop-catalog="true"] .card-actions > .card-more-btn {order:2;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions {display:flex;gap:12px;flex-wrap:wrap;padding:16px 0 4px;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions button {min-height:46px;padding:10px 18px;border:1px solid #94a3b8;border-radius:9px;font:inherit;font-weight:600;cursor:pointer;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Apply {background:#126feb;color:white;border-color:#126feb;}
/* Related sorting controls start a fresh row together on tablet/laptop grids. */
@media(min-width:600px){
 #moreFiltersPanel .extra-filters > .named-filter:has(#triggerSortBy) {grid-column:1!important;}
 #moreFiltersPanel .extra-filters > .named-filter:has(#triggerSortOrder) {grid-column:2!important;}
}
html[data-sehaj-tablet-player="two-row"] #moreFiltersPanel .extra-filters > .named-filter:has(#triggerSortBy) {grid-column:1!important;}
html[data-sehaj-tablet-player="two-row"] #moreFiltersPanel .extra-filters > .named-filter:has(#triggerSortOrder) {grid-column:2!important;}
/* Compact laptop controls: save vertical space, retain selected text sizes. */
html[data-sehaj-desktop-catalog="true"] #qaD38A8Icons > button {flex-direction:row;min-height:44px;padding:6px;gap:6px;}
html[data-sehaj-desktop-catalog="true"] .toolbar {padding:12px;margin-bottom:12px!important;}
html[data-sehaj-desktop-catalog="true"] #songsList {margin-top:12px!important;gap:10px;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .sehaj-desktop-filter-header {display:flex!important;align-items:center;gap:12px;padding:6px 0!important;}
html[data-sehaj-desktop-catalog="true"] .sehaj-desktop-filter-header > .named-filter {width:min(360px,50%);margin-left:auto;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .extra-filters {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px 12px!important;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .filter-btn-trigger {min-height:40px;padding:7px 10px;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter {min-width:0;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .filter-field-label {margin:0 0 3px;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions {grid-column:3/5;align-self:end;justify-content:flex-end;padding:0;gap:8px;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions button {min-height:40px;padding:7px 12px;}
html[data-sehaj-desktop-catalog="true"] .song-card {min-height:0!important;padding:12px 16px!important;gap:6px!important;}
html[data-sehaj-desktop-catalog="true"] .song-details {width:100%;}
html[data-sehaj-desktop-catalog="true"] .song-title-row {margin:0!important;padding:0!important;gap:0;}
html[data-sehaj-desktop-catalog="true"] .song-card .recording-title-field {margin:0!important;padding:0!important;}
html[data-sehaj-desktop-catalog="true"] .song-card .recording-title-toggle {min-height:0!important;margin:0!important;padding:3px 0!important;line-height:1.35;}
html[data-sehaj-desktop-catalog="true"] .sehaj-desktop-footer {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin-top:8px;}
html[data-sehaj-desktop-catalog="true"] .sehaj-desktop-footer .recording-stats-row {margin:0!important;flex:1 1 auto;}
html[data-sehaj-desktop-catalog="true"] .sehaj-desktop-footer .card-actions {margin:0!important;padding:0!important;width:auto!important;flex:0 0 auto;gap:8px;}
/* Two aligned desktop filter rows, with no separate header strip. */
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .sehaj-desktop-filter-header {display:none!important;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .extra-filters {grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:end;justify-items:center;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .extra-filters > .named-filter {width:100%;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .filter-field-label {text-align:center;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerFilterContributor) {grid-column:1!important;grid-row:1;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerFilterAlbum) {grid-column:2!important;grid-row:1;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerFilterLocation) {grid-column:3!important;grid-row:1;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerFilterLanguage) {grid-column:4!important;grid-row:1;}
html[data-sehaj-desktop-catalog="true"] #closeMoreFiltersBtn {grid-column:5;grid-row:1;justify-self:center;align-self:end;min-width:44px;width:44px;height:40px;min-height:40px;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerFilterMonth) {grid-column:1!important;grid-row:2;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerSortBy) {grid-column:2!important;grid-row:2;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .named-filter:has(#triggerSortOrder) {grid-column:3!important;grid-row:2;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions {display:contents!important;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions > button:first-child {grid-column:4;grid-row:2;width:100%;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8Apply {grid-column:5;grid-row:2;width:100%;}
html[data-sehaj-desktop-catalog="true"] #moreFiltersPanel .filter-btn-trigger,
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions > button {min-height:44px;}
html[data-sehaj-desktop-catalog="true"] #closeMoreFiltersBtn {width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;}
html[data-sehaj-desktop-catalog="true"] #qaD38A8SheetActions > button:first-child {background:#126feb;color:white;border-color:#126feb;}
html[data-sehaj-desktop-catalog="true"] .qa-d38c-panel .qa-d38c-x {background:#126feb;color:white;border:1px solid rgba(255,255,255,.55);}

/* Desktop catalog width and readable toolbar labels. */
@media (min-width: 1024px) {
  body #qaD38A8Icons .qa-d38a8-label,
  html[data-sehaj-desktop-catalog="true"] body #qaD38A8Icons .qa-d38a8-label {
    min-width: 0;
    font-size: 17px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body #qaD38A8Icons > button,
  html[data-sehaj-desktop-catalog="true"] body #qaD38A8Icons > button {
    height: auto;
  }
}
@media (min-width: 1440px) {
  body {
    max-width: 1350px;
  }
}

/* Desktop playback dock. Keep the native media element and existing buttons. */
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  body .audio-player-bar {
    background: #29486b;
    border-top: 1px solid #6381a1;
    box-shadow: 0 -5px 22px rgb(15 23 42 / 24%);
    padding-inline: clamp(14px, 2vw, 32px);
    column-gap: clamp(8px, 1vw, 16px);
  }
  body .audio-player-bar #playerTitle {
    color: #f8fafc;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
  }
  body .audio-player-bar .player-btn {
    color: #f1f5f9;
    background: #365779;
    border: 1px solid #7894b1;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  }
  body .audio-player-bar #stopClosePlayerBtn {
    color: #ffe4e6;
    background: #65475d;
    border-color: #b587a0;
  }
  body .audio-player-bar #openQueueBtn {
    color: #fff;
    background: #1e5faa;
    border-color: #6da2e4;
  }
  body .audio-player-bar .player-btn:not(:disabled):hover {
    background: #3e6289;
    border-color: #98b9e1;
  }
  body .audio-player-bar #stopClosePlayerBtn:not(:disabled):hover {
    background: #75516b;
  }
  body .audio-player-bar #openQueueBtn:not(:disabled):hover {
    background: #236bb7;
  }
  body .audio-player-bar .player-btn:disabled {
    opacity: .56;
    cursor: default;
  }
  body .audio-player-bar .player-btn:focus-visible,
  body .audio-player-bar #playerTitle:focus-visible,
  body .audio-player-bar #audioPlayer:focus-visible {
    outline: 2px solid #a7d2ff;
    outline-offset: 2px;
  }
  body .audio-player-bar #audioPlayer {
    border-radius: 999px;
    color-scheme: light;
  }
}

@media (min-width: 1600px) and (hover: hover) and (pointer: fine) {
  body .audio-player-bar .player-btn { font-size: 17px; }
}

#desktopAudioToggle[hidden], #desktopAudioTimeline[hidden] { display: none !important; }
.audio-player-bar.desktop-transport-on #audioPlayer { display: none !important; }
.audio-player-bar.desktop-transport-on #desktopAudioToggle {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  padding: 6px;
  background: #e8f1ff;
  color: #163e70;
  border-color: #bdd8ff;
}
.audio-player-bar.desktop-transport-on #desktopAudioToggle:not(:disabled):hover { background: #fff; }
#desktopAudioToggle svg { width: 24px; height: 24px; fill: currentColor; }
#desktopAudioToggle[data-playing="true"] .desktop-play-symbol,
#desktopAudioToggle:not([data-playing="true"]) .desktop-pause-symbol { display: none; }
#desktopAudioTimeline:not([hidden]) {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
  color: #f1f5f9;
}
#desktopAudioTime { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
#desktopAudioSeek { flex: 1; min-width: 42px; }
#desktopAudioVolume { width: clamp(38px, 4vw, 68px); }
#desktopAudioSeek, #desktopAudioVolume { margin: 0; accent-color: #c5deff; }
#desktopAudioMute {
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 6px;
  min-width: 32px;
  min-height: 38px;
  padding: 0;
  cursor: pointer;
}
#desktopAudioTimeline :focus-visible { outline: 2px solid #a7d2ff; outline-offset: 2px; }
