$art-size: 48px; .audio-player { position: fixed; bottom: 0.75rem; left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 1.5rem)); height: 80px; box-sizing: border-box; z-index: 100; display: grid; // Equal side columns keep the transport truly centred grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr); align-items: center; gap: 1.5rem; padding: 0 0.75rem 0 1rem; color: white; // Opaque bar: backdrop-filter over the virtualized grid caused constant // compositing/shifting on WebKit. background: rgb(18 18 24 / 0.98); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.45); &-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; > .MuiIconButton-root { flex-shrink: 0; color: rgb(255 255 255 / 0.75); .material-symbols-rounded { font-size: 1.25rem; } } &-text { display: flex; flex-direction: column; min-width: 0; } &-title { all: unset; cursor: pointer; font-weight: 600 !important; line-height: 1.25 !important; // Wrap long titles onto a second line before truncating display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; &:hover, &:focus-visible { text-decoration: underline; } } &-artist { opacity: 0.6; a { color: inherit; text-decoration: none; &:hover { text-decoration: underline; } } } } &-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; &-container { all: unset; position: relative; flex-shrink: 0; width: $art-size; height: $art-size; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgb(255 255 255 / 0.08); &:hover .audio-player-image-expand, &:focus-visible .audio-player-image-expand { opacity: 1; } } &-icon, &-expand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } &-icon { font-size: 1.5rem !important; opacity: 0.5; } // "Open player" affordance shown over the art on hover &-expand { z-index: 2; inset: 0; transform: none; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.5); opacity: 0; transition: opacity 0.15s ease; } } // Transport on top, compact seek row underneath &-center { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; .player-controls { gap: 0.5rem !important; .MuiFab-root { width: 36px; height: 36px; min-height: 36px; box-shadow: none; .material-symbols-rounded { font-size: 1.6rem !important; } } } } &-progress { gap: 0.6rem !important; .MuiTypography-root { min-width: 2.75em !important; font-size: 0.7rem; opacity: 0.6 !important; } .MuiSlider-root { padding: 8px 0; } .MuiSlider-thumb { width: 10px; height: 10px; opacity: 0; transition: opacity 0.15s ease; } &:hover .MuiSlider-thumb, .MuiSlider-root.Mui-active .MuiSlider-thumb { opacity: 1; } } &-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; min-width: 0; .MuiIconButton-root { color: rgb(255 255 255 / 0.75); &:hover { color: white; } } } &-volume { display: flex; align-items: center; min-width: 0; // Secondary control: neutral and compact .MuiSlider-root { width: 5.5rem !important; color: rgb(255 255 255 / 0.85); } } @media (max-width: 900px) { .audio-player-volume, .audio-player-progress .MuiTypography-root { display: none; } } @media (max-width: 640px) { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); height: 64px; .audio-player-center .player-controls > :not(:has(.MuiFab-root)), .audio-player-progress { display: none; } .audio-player-actions > :not(:last-child) { display: none; } } } /* Unified, minimal media bar (local playback + remote device control). */ .audio-player { display: flex; align-items: center; width: min(1440px, calc(100% - 1.5rem)); height: 84px; gap: 1.25rem; padding: 0 0.9rem; background: #0b0c12; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 16px; .media-bar { &-left { display: flex; align-items: center; gap: 0.75rem; width: 30%; min-width: 220px; max-width: 360px; } &-cover { width: 52px; height: 52px; flex: 0 0 52px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / 0.06); color: rgb(255 255 255 / 0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; img { width: 100%; height: 100%; object-fit: cover; display: block; } } &-info { display: flex; flex-direction: column; min-width: 0; flex: 1; } &-title { font-weight: 600 !important; line-height: 1.2 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; &:hover { text-decoration: underline; } } &-subtitle { opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } &-more { flex-shrink: 0; color: rgb(255 255 255 / 0.6); } &-center { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; } &-controls { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; .MuiIconButton-root { color: rgb(255 255 255 / 0.7); transition: color 0.15s ease, transform 0.15s ease; &:hover { color: #fff; background: rgb(255 255 255 / 0.06); } &.active { color: #7cc7ff; } .material-symbols-rounded { font-size: 1.25rem; } } } &-play { width: 42px !important; height: 42px !important; margin: 0 0.35rem; border: 1px solid rgb(255 255 255 / 0.35); color: #fff !important; .material-symbols-rounded { font-size: 1.6rem !important; } } &-progress { flex: 1; min-width: 140px; .MuiSlider-root { padding: 10px 0; color: #7cc7ff; } .MuiSlider-rail { background: rgb(255 255 255 / 0.16); opacity: 1; } .MuiSlider-track { border: 0; } .MuiSlider-thumb { width: 12px; height: 12px; background: #fff; box-shadow: none; &:hover, &.Mui-focusVisible { box-shadow: 0 0 0 6px rgb(124 199 255 / 0.16); } } .MuiTypography-root { opacity: 0.55; font-variant-numeric: tabular-nums; font-weight: 400; } } &-right { display: flex; align-items: center; gap: 0.1rem; flex-shrink: 0; .MuiIconButton-root { color: rgb(255 255 255 / 0.65); &:hover { color: #fff; background: rgb(255 255 255 / 0.06); } .material-symbols-rounded { font-size: 1.3rem; } } } &-volume { width: 84px !important; margin: 0 0.35rem 0 0 !important; color: #7cc7ff !important; .MuiSlider-rail { background: rgb(255 255 255 / 0.16); opacity: 1; } .MuiSlider-thumb { width: 10px; height: 10px; background: #fff; box-shadow: none; } } } } @media (max-width: 900px) { .audio-player { .media-bar-left { min-width: 160px; } .media-bar-volume, .media-bar-right .MuiSlider-root { display: none; } } }