/* Match the album card to the radio now-playing card. */
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-header {
 --gm-album-card-art: var(--gm-dock-album-art-size, 76px);
 display: grid;
 grid-template-columns: var(--gm-album-card-art) minmax(0, 1fr);
 grid-template-rows: var(--gm-album-card-art) auto;
 gap: 6px;
 min-height: 0;
 padding: 6px;
 padding-inline-start: calc(6px + 3mm);
 box-sizing: border-box;
}
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-cover {
 grid-area: 1 / 1;
 width: 100% !important;
 height: 100% !important;
 box-sizing: border-box;
}
#gmRadio.gm-dock .gm-dock-album-eq {
 grid-area: 1 / 2;
 place-self: center;
 width: 56px;
 height: 37px;
 transform: scale(1.6637837838);
}
#gmRadio.gm-dock .gm-dock-album-eq > span {
 flex-basis: 7px !important;
 min-width: 7px !important;
 width: 7px;
 height: 37px;
}
@media (min-width: 901px) {
 #gmRadio.gm-dock .gm-dock-album-eq { transform: scale(1.9264864865); }
}
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info {
 grid-area: 2 / 1 / 3 / -1;
 display: grid;
 grid-template-columns: minmax(0, 1fr) 36px;
 grid-template-rows: auto auto;
 column-gap: 8px;
 row-gap: 2px;
 min-width: 0;
 text-align: start;
}
html body #gmRadio.gm-dock:not(.minimized) {
 --gm-dock-card-title-size: 14px;
}
@media (min-width: 901px) {
 html body #gmRadio.gm-dock:not(.minimized) { --gm-dock-card-title-size: 15px; }
}
html body #gmRadio.gm-dock:not(.minimized) .gm-radio-song > .gm-radio-info {
 padding-inline-start: 3mm !important;
}
html body #gmRadio.gm-dock:not(.minimized) .gm-radio-info :is(#gmNowPlaying,#gmRadioAlbum),
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info :is(.gm-dock-song,.gm-dock-album-title) {
 font-family: Inter, Arial, sans-serif !important;
 font-size: var(--gm-dock-card-title-size) !important;
 font-weight: 400 !important;
 line-height: 1.25 !important;
}
html body #gmRadio.gm-dock:not(.minimized) .gm-radio-info :is(#gmNowPlaying,#gmRadioAlbum) {
 margin-inline: 0 !important;
 width: 100% !important;
}
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info :is(.gm-dock-song,.gm-dock-album-title) {
 grid-column: 1;
 max-width: 100%;
 translate: none;
 text-align: start;
 font-family: Inter, Arial, sans-serif;
}
#gmRadio .gm-dock-song { grid-row: 1; }
#gmRadio .gm-dock-album-title { grid-row: 2; }
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info .gm-dock-song[role="link"] {
 color: #ff858a !important;
 text-decoration: underline;
 text-underline-offset: 2px;
 cursor: pointer;
}
html body #gmRadio.gm-dock:not(.minimized) #gmRadioAlbum,
html body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info .gm-dock-album-title {
 color: var(--gm-request-light-gold, #f0ddb0) !important;
 text-decoration: none;
 cursor: default;
}
#gmRadio #gmDockAlbumSongActions {
 grid-area: 1 / 2 / 3 / 3;
 align-self: start;
 justify-self: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 width: 36px;
 transform: translateX(-1mm);
}
#gmRadio #gmDockAlbumSongActions > button {
 position: static;
 display: grid;
 place-items: center;
 width: 28px;
 min-width: 28px;
 height: 26px;
 min-height: 26px;
 padding: 4px;
 margin: 0;
 background: transparent;
 border: 0;
 box-sizing: border-box;
 cursor: pointer;
 color: #fff;
}
#gmRadio #gmDockAlbumSongActions svg { width: 20px; height: 20px; }
#gmRadio #gmDockAlbumSongShare svg {
 fill: none;
 stroke: currentColor;
 stroke-width: 1.8;
 stroke-linecap: round;
 stroke-linejoin: round;
}
#gmRadio #gmDockAlbumSongActions[hidden],
#gmRadio #gmDockAlbumSongActions > button[hidden] { display: none; }

/* Place lyrics, favorite, equalizer and share beside the title. */
html body #gmAlbumTracks .gm-fav-row {
 display: flex !important;
 flex-wrap: nowrap;
 align-items: center;
 gap: 4px !important;
 min-height: 30px;
 margin-bottom: 3px;
 padding: 0 5px 0 0 !important;
 padding-inline: 0 5px !important;
 border: 1px solid #383838;
 background: #171717;
 box-sizing: border-box;
}
html body #gmAlbumTracks .gm-fav-row > .gm-track-btn {
 width: 0 !important;
 min-width: 0 !important;
 flex: 1 1 0 !important;
 overflow-wrap: anywhere;
 display: block;
 margin: 0;
 padding: 4px 6px;
 border: 0 !important;
 background: transparent !important;
 color: #fff !important;
 text-align: start;
}
html body #gmAlbumTracks .gm-fav-row:is(.gm-eq-current,:has(> .gm-track-btn:is(.active,[aria-current="true"],.gm-radio-linked-track,.gm-clip-linked-track,.gm-selected-linked-track))) {
 padding-block: 0 !important;
 border-color: #c3a467 !important;
 background: #30291e !important;
}
html body #gmAlbumTracks .gm-fav-row.gm-eq-current > .gm-track-btn,
html body #gmAlbumTracks .gm-fav-row > .gm-track-btn:is(.active,[aria-current="true"],.gm-radio-linked-track,.gm-clip-linked-track,.gm-selected-linked-track),
html body #gmAlbumTracks .gm-fav-row:has(> .gm-fav-heart[aria-pressed="true"]) > .gm-track-btn:is(.active,[aria-current="true"],.gm-radio-linked-track,.gm-clip-linked-track,.gm-selected-linked-track) {
 color: #e7c777 !important;
}
html body #gmAlbumTracks > .gm-track-btn:is(.active,[aria-current="true"],.gm-radio-linked-track,.gm-clip-linked-track,.gm-selected-linked-track) {
 color: #e7c777 !important;
}
#gmAlbumTracks .gm-fav-row > .gm-lyrics-link {
 order: 1;
 width: 22px;
 justify-content: center;
 margin: 0;
 padding: 3px 4px;
 min-height: 23px;
 border-radius: 4px;
 flex: none;
}
#gmAlbumTracks .gm-lyrics-link > span { display: none; }
#gmAlbumTracks .gm-lyrics-link > svg { width: 10px; height: 13px; }
html body #gmAlbumTracks .gm-fav-row > .gm-fav-heart {
 order: 2;
 flex: 0 0 22px !important;
 width: 22px !important;
}
#gmAlbumTracks .gm-fav-row > .gm-main-track-eq { position: static; order: 3; }
html body #gmAlbumTracks .gm-fav-row > .gm-song-share-btn {
 order: 4;
 flex: 0 0 22px;
 width: 22px;
 margin-inline-end: -1.5px;
}
#gmAlbumTracks .gm-main-track-eq { width: 22px; height: 10px; gap: 1.5px; }
#gmRadio .gm-dock-track > .gm-mini-eq { width: 25px; height: 15px; }
#gmAlbumTracks .gm-main-track-eq > span {
 flex-basis: 3px !important;
 width: 3px;
 min-width: 3px !important;
 height: 10px;
}
#gmRadio .gm-dock-track > .gm-mini-eq > span {
 flex-basis: 3px !important;
 width: 3px;
 min-width: 3px !important;
 height: 15px;
}
#gmRadio.gm-dock .gm-dock-track[aria-current="true"] {
 padding-block: 5px;
 color: #e7c777;
}

/* Keep the form fields in their original positions. */
:is(#gmSiteReviews,#gmAlbumReviews) > h3,
:is(#gmSiteReviews,#gmAlbumReviews) .gmr-summary,
:is(#gmSiteReviews,#gmAlbumReviews) .gmr-form-title { text-align: center; }
:is(#gmSiteReviews,#gmAlbumReviews) .gmr-summary,
:is(#gmSiteReviews,#gmAlbumReviews) .gmr-rating { justify-content: center; }
#gmAlbumReviews .gmr-score { color: #e7c777; }
#gmAlbumReviews .gmr-form-title { color: #f0ddb0; }
:is(#gmSiteReviews,#gmAlbumReviews) .gmr-label[for$="-comment"] { color: #fff; }
.gmr-visually-hidden {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}

/* The cover and text are one button, with a separate favorite toggle. */
html body #gmFavorites .gm-fav-list .gm-fav-item {
 gap: 0 !important;
 padding: 0;
}
html body #gmFavorites .gm-fav-list .gm-fav-item > .gm-fav-item-action {
 align-self: stretch;
 display: flex;
 flex: 1 1 auto;
 min-width: 0;
 align-items: center;
 column-gap: 3mm !important;
 padding-block: 1mm !important;
 padding-inline: 1mm 0 !important;
 background: transparent;
 border: 0;
 border-radius: 0;
 color: inherit;
 font: inherit;
 text-align: start;
 cursor: pointer;
}
html body #gmFavorites .gm-fav-list .gm-fav-item > .gm-fav-item-action:disabled { cursor: default; }
#gmFavorites .gm-fav-item-action:focus-visible,
#gmFavorites .gm-fav-item > .gm-fav-heart:focus-visible {
 outline: 2px solid #e7c777;
 outline-offset: -2px;
}
html body #gmFavorites .gm-fav-list .gm-fav-item > .gm-fav-heart {
 align-self: stretch;
 flex: 0 0 calc(26px + 3mm);
 width: calc(26px + 3mm);
 height: auto;
 padding: 0 !important;
 padding-inline: 8px 3mm !important;
 box-sizing: border-box;
 border: 0;
 background: transparent;
}
#gmFavorites .gm-fav-item > .gm-fav-heart svg { width: 18px; height: 18px; }
#gmFavorites .gm-fav-item-action > img { flex: none; }
#gmRadio .gm-dock-quoted-album,
html body #gmFavorites .gm-fav-item.gm-fav-album-selectable .gm-fav-meta strong,
#gmFavorites .gm-fav-item .gm-fav-meta small,
#gmFavorites #gmFavNow .gm-fav-now-album {
 color: var(--gm-request-light-gold, #f0ddb0) !important;
}
#gmFavorites #gmFavNow .gm-fav-now-album {
 display: block;
 margin-top: 4px;
 overflow-wrap: anywhere;
}
#gmFavorites .gm-fav-item-action .gm-fav-meta strong { cursor: inherit !important; }
#gmFavorites .gm-fav-tools #gmFavImport { background: #4c3722 !important; }

/* A shared icon canvas keeps glyph weight and size consistent. */
:root {
 --gm-control-shuffle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h3c5 0 7 12 12 12h3m-4-4 4 4-4 4M3 18h3c5 0 7-12 12-12h3m-4-4 4 4-4 4'/%3E%3C/svg%3E");
 --gm-control-repeat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.7 8A8.8 8.8 0 1 1 10 3.4M5 3.5h5v5'/%3E%3C/svg%3E");
 --gm-control-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4h3v16H2zm11 0v16L5 12zm9 0v16l-9-8z'/%3E%3C/svg%3E");
 --gm-control-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4h3v16h-3zM2 4l9 8-9 8zm9 0 8 8-8 8z'/%3E%3C/svg%3E");
 --gm-control-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3v18l16-9z'/%3E%3C/svg%3E");
 --gm-control-pause: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h4v18H6zm8 0h4v18h-4z'/%3E%3C/svg%3E");
 --gm-control-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3C/svg%3E");
}
:is(#gmAlbumShuffle,#gmFavShuffle,[data-icon="albumShuffle"]) { --gm-transport-icon: var(--gm-control-shuffle); }
:is(#gmAlbumRepeat,#gmFavRepeat,[data-icon="albumRepeat"]) { --gm-transport-icon: var(--gm-control-repeat); }
:is(#gmAlbumPrev,#gmFavPrev,[data-icon="albumPrevious"]) { --gm-transport-icon: var(--gm-control-prev); }
:is(#gmAlbumNext,#gmFavNext,[data-icon="albumNext"]) { --gm-transport-icon: var(--gm-control-next); }
:is(#gmAlbumPlay,#gmFavToggle,[data-icon="play"]) { --gm-transport-icon: var(--gm-control-play); }
:is(#gmAlbumPlay,#gmFavToggle).gm-is-paused-icon,
[data-icon="pause"] { --gm-transport-icon: var(--gm-control-pause); }
:is(#gmAlbumStop,[data-icon="albumStop"]) { --gm-transport-icon: var(--gm-control-stop); }
html body :is(#gmRadio.gm-dock,#albumModal,#gmFavorites) :is(.gm-radio-controls,.gm-dock-controls,.gm-player-controls,.gm-fav-controls) > button {
 position: relative;
 font-size: 0 !important;
 background-image: none !important;
}
html body :is(#gmRadio.gm-dock,#albumModal,#gmFavorites) :is(.gm-radio-controls,.gm-dock-controls,.gm-player-controls,.gm-fav-controls) > button::after {
 content: "";
 position: absolute;
 width: 17px;
 height: 17px;
 inset: 50% auto auto 50%;
 transform: translate(-50%, -50%);
 background-color: currentColor;
 mask: var(--gm-transport-icon) center / contain no-repeat;
 pointer-events: none;
}
#albumModal #gmAlbumPlayer .gm-player-controls > button,
#gmFavorites .gm-fav-controls > button {
 min-height: 32px;
 width: 34px;
}
html.gm-ios-player body #gmRadio.gm-dock:not(.minimized) .gm-radio-controls > button,
html.gm-ios-player body #albumModal .gm-player-controls > button {
 background-image: none !important;
}
#gmRadio .gm-dock-song[role="link"]:focus-visible,
#gmRadio #gmDockAlbumSongActions > button:focus-visible {
 outline: 2px solid #e7c777;
 outline-offset: 1px;
}
html body #gmAlbumTracks .gm-fav-row.gm-eq-current > .gm-track-btn:is(.active,[aria-current="true"]) {
 border: 0 !important;
 background: transparent !important;
}

/* Album-level actions share the year baseline and the player's outer edges. */
#albumModal .gm-album-meta-row {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
 margin: -10px 0 18px;
}
#albumModal .gm-album-meta-row .album-year { margin: 0; }
#gmAlbumActions {
 display: flex;
 align-items: center;
 gap: 4px;
 flex: none;
}
#gmAlbumActions > :is(.gm-fav-heart,.gm-share-btn) {
 position: static !important;
 display: grid !important;
 place-items: center;
 width: 27px !important;
 height: 27px !important;
 padding: 2px !important;
 margin: 0 !important;
 border: 0 !important;
 background: transparent !important;
 color: #fff;
 box-shadow: none !important;
}
#gmAlbumActions > button > svg {
 width: 21px !important;
 height: 21px !important;
}
#gmAlbumActions > .gm-share-btn svg :is(path,circle) {
 fill: none !important;
 stroke: currentColor !important;
 stroke-width: 1.8 !important;
}
#gmAlbumActions > button:focus-visible {
 outline: 2px solid #e7c777;
 outline-offset: -2px;
}

/* Move only the now-playing accessories, retaining their existing transforms. */
#gmRadio.gm-dock:not(.minimized) :is(.gm-radio-track-eq,.gm-dock-album-eq) {
 translate: 2mm 0;
}
#gmRadio.gm-dock:not(.minimized) :is(#gmRadioSongActions,#gmDockAlbumSongActions) {
 translate: 2mm 1mm;
}
#gmRadio :is(#gmRadioArt,.gm-dock-album-cover)[role="link"] {
 cursor: pointer !important;
 touch-action: manipulation;
}
#gmRadio :is(#gmRadioArt,.gm-dock-album-cover)[role="link"]:focus-visible {
 outline: 2px solid #e7c777;
 outline-offset: 2px;
}

#gmFavorites .gm-fav-player > .gm-fav-now-label {
 position: relative;
 top: -2mm;
 text-decoration: underline 1px #b79a62;
 text-underline-offset: 4px;
}
#gmFavorites:has([data-fav-tab="videos"][aria-selected="true"]) .gm-fav-player > .gm-fav-now-label {
 top: -1mm;
}

/* Keep the same corners for every playback state. */
#gmAlbumTracks .gm-fav-row,
#gmAlbumTracks .gm-track-btn,
#gmFavorites .gm-fav-list .gm-fav-item,
#gmFavorites .gm-fav-list .gm-fav-album-track {
 border-radius: 6px;
}

/* Extend the tracks to the former divider position. */
#albumModal .album-modal-inner {
 --gm-album-grid-row-gap: 42px;
 row-gap: var(--gm-album-grid-row-gap);
}
#albumModal #gmAlbumTracks {
 max-height: calc(220px + var(--gm-album-grid-row-gap) + 24px);
}
#albumModal #gmAlbumReviews {
 margin-top: calc(-1 * var(--gm-album-grid-row-gap));
 border-top: 0;
}
@media (max-width: 760px) {
 #albumModal .album-modal-inner { --gm-album-grid-row-gap: 18px; }
}

/* Keep the lyrics, equalizer and heart in one compact row. */
html body #gmFavorites .gm-fav-list .gm-fav-album-track,
html body #gmFavorites .gm-fav-list .gm-fav-item:has(> .gm-fav-track-eq) {
 column-gap: 4px !important;
}
#gmFavorites .gm-fav-list .gm-fav-album-track {
 display: flex;
 align-items: center;
 padding: 0;
}
#gmFavorites .gm-fav-album-track-play {
 flex: 1 1 auto;
 min-width: 0;
 padding: 10px 8px;
 background: transparent;
 border: 0;
 color: inherit;
 font: inherit;
 text-align: start;
 overflow-wrap: anywhere;
}
#gmFavorites .gm-fav-list :is(.gm-fav-item,.gm-fav-album-track) > .gm-lyrics-link {
 order: 1;
 flex: none;
 justify-content: center;
 width: 22px;
 height: 25px;
 padding: 0;
 margin-inline-start: 0;
 border-radius: 5px;
}
#gmFavorites .gm-fav-list .gm-lyrics-link > span { display: none; }
#gmFavorites .gm-fav-list .gm-lyrics-link > svg { width: 12px; height: 15px; }
#gmFavorites .gm-fav-track-eq {
 order: 2;
 width: 22px;
 height: 13px;
 margin-inline-start: 0;
 gap: 1px;
}
#gmFavorites .gm-fav-track-eq > span {
 flex-basis: 3px !important;
 min-width: 3px !important;
 width: 3px;
 height: 13px;
}
#gmFavorites .gm-fav-list :is(.gm-fav-item,.gm-fav-album-track) > .gm-fav-heart { order: 3; }
#gmFavorites .gm-fav-album-track > .gm-fav-heart {
 align-self: stretch;
 flex: 0 0 22px;
 padding: 0;
 border: 0;
 background: transparent;
}
#gmFavorites .gm-fav-album-track > .gm-fav-heart svg { width: 18px; height: 18px; }
#gmFavorites .gm-fav-item:not([data-gm-favorite-lyrics]) > .gm-fav-track-eq { height: 1em; }
#gmFavorites .gm-fav-item:not([data-gm-favorite-lyrics]) > .gm-fav-track-eq > span { height: 1em; }

/* Separate each album-player track so its rounded ends remain visible. */
#gmRadio.gm-dock #gm-dock-face-album .gm-dock-tracklist > .gm-dock-track {
 border-radius: 999px;
 padding-inline: 11px;
}
#gmRadio.gm-dock #gm-dock-face-album .gm-dock-tracklist > .gm-dock-track + .gm-dock-track {
 margin-block-start: 3px;
}

/* Sharing is the final action in both favorite song lists. */
html body #gmFavorites .gm-fav-list [data-gm-favorite-lyrics] > .gm-song-share-btn {
 order: 4;
 flex: 0 0 22px;
 display: grid;
 place-items: center;
 min-width: 0;
 min-height: 30px;
 padding: 0 !important;
 margin-inline-end: calc(3mm - (22px - 17px) / 2);
 border: 0;
 background: transparent;
 color: #fff;
 cursor: pointer;
}
#gmFavorites .gm-song-share-btn svg {
 width: 17px;
 height: 17px;
 fill: none;
 stroke: currentColor;
 stroke-width: 1.6;
 stroke-linecap: round;
 stroke-linejoin: round;
}
html body #gmFavorites .gm-fav-list .gm-fav-item[data-gm-favorite-lyrics]:has(> .gm-song-share-btn) > .gm-fav-heart {
 flex-basis: 22px;
 width: 22px;
 padding-inline: 0 !important;
}
#gmFavorites .gm-fav-list .gm-fav-album-track:not(:has(> .gm-song-share-btn)) > .gm-fav-heart {
 margin-inline-end: calc(3mm - (22px - 18px) / 2);
}

/* Preserve visible lowercase letters in the album heading on every screen. */
html body #albumModal #albumTitle {
 font-family: Georgia, "Times New Roman", serif !important;
 font-variant-caps: normal;
 text-transform: none;
}

/* Hebrew list layout: mirror the columns while isolating track numbers and titles. */
html[lang="he"] #gmFavorites .gm-fav-item[data-gm-favorite-lyrics] .gm-fav-meta {
 unicode-bidi: normal;
}
html[lang="he"] #gmFavorites .gm-fav-item[data-gm-favorite-lyrics] .gm-fav-meta > :is(strong,small) {
 display: block;
 text-align: right;
 unicode-bidi: plaintext;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-fav-row,
html[lang="he"] #gmRadio #gm-dock-face-album .gm-dock-track,
html[lang="he"] #gmRadio #gmPlaylistPickerList .gm-playlist-item {
 direction: rtl;
 text-align: right;
}
html body #albumModal[lang="he"] #gmAlbumTracks .gm-track-btn,
html[lang="he"] #gmRadio #gm-dock-face-album .gm-dock-track-name {
 display: flex;
 align-items: baseline;
 gap: .35em;
 direction: rtl;
 unicode-bidi: normal;
 text-align: right;
}
html[lang="he"] #gmRadio .gm-dock-track-name { flex: 1; min-width: 0; }
:is(#albumModal[lang="he"] #gmAlbumTracks,html[lang="he"] #gmRadio #gm-dock-face-album) .gm-track-number {
 flex: none;
 unicode-bidi: isolate;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-track-name,
html[lang="he"] #gmRadio #gm-dock-face-album .gm-track-name {
 min-width: 0;
 overflow-wrap: anywhere;
}
html[lang="he"] #gmRadio #gm-dock-face-album .gm-track-name {
 unicode-bidi: plaintext;
}
html body #albumModal[lang="he"] #gmAlbumTracks .gm-track-btn {
 justify-content: flex-start;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-track-name {
 direction: rtl;
 text-align: right;
 unicode-bidi: isolate;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-track-ending {
 white-space: nowrap;
}
/* Keep the title in one text run and make the duration a single RTL box. */
#gmAlbumTracks .gm-track-rtl-boundary { display: none; }
#albumModal[lang="he"] #gmAlbumTracks .gm-track-rtl-boundary {
 display: inline;
 unicode-bidi: normal;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-inline-track-time {
 display: inline-block;
 direction: ltr;
 unicode-bidi: isolate;
 vertical-align: baseline;
 margin-right: .3em;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-track-time-text {
 display: inline-flex;
 flex-direction: row-reverse;
 direction: ltr;
 align-items: baseline;
 gap: .25em;
 white-space: nowrap;
}
html[lang="he"] #gmFavorites:has([data-fav-tab="videos"][aria-selected="true"]) .gm-fav-player > .gm-fav-now-label {
 top: -1mm;
}
#albumModal[lang="he"] #gmAlbumTracks .gm-fav-row > .gm-main-track-eq { order: 2; }
html body #albumModal[lang="he"] #gmAlbumTracks .gm-fav-row > .gm-fav-heart { order: 3; }

/* Keep the text aligned to the cover edge regardless of the title's script. */
html[lang="he"] body #gmRadio.gm-dock:not(.minimized) .gm-dock-album-info :is(.gm-dock-song,.gm-dock-album-title) {
 justify-self: stretch;
 text-align: right;
}
