.audio { &-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; &::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); // Dark overlay backdrop-filter: blur(60px); -webkit-backdrop-filter: blur(60px); } &-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); // Prevent white edges from blur } } &-container { // Art size drives the whole left column so everything fits the viewport. --np-size: min(420px, 44vh, 80vw); display: grid; grid-template-columns: var(--np-size) minmax(0, 560px); justify-content: center; align-items: center; gap: clamp(2rem, 6vw, 6rem); height: 100vh; width: 100%; padding: 5rem 3rem 2.5rem; box-sizing: border-box; position: relative; z-index: 1; color: white; overflow: hidden; @media (max-width: 900px) { grid-template-columns: minmax(0, var(--np-size)); grid-template-rows: auto minmax(0, 1fr); align-items: start; padding: 4.5rem 1rem 1rem; gap: 1.5rem; overflow-y: auto; } } &-now-playing { display: flex; flex-direction: column; gap: 1.25rem; width: var(--np-size); min-width: 0; &-art { width: 100%; aspect-ratio: 1; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); background: rgb(255 255 255 / 0.08); display: flex; align-items: center; justify-content: center; img { width: 100%; height: 100%; object-fit: cover; display: block; } .material-symbols-rounded { font-size: 6rem; opacity: 0.6; } } &-meta { display: flex; align-items: center; gap: 0.75rem; } &-text { flex: 1; min-width: 0; } &-subtitle { opacity: 0.7; a { color: inherit; text-decoration: none; &:hover { text-decoration: underline; opacity: 1; } } } &-transport { display: flex; align-items: center; justify-content: space-between; // Spread prev / play / next evenly with shuffle and repeat .player-controls { display: contents !important; } // Toggle-style buttons read as "off" until enabled > .MuiIconButton-root, > span > .MuiIconButton-root { color: rgb(255 255 255 / 0.55); } > .MuiIconButton-root.is-active { color: $clr-accent-default; } } &-utility { display: flex; align-items: center; justify-content: space-between; gap: 1rem; } &-volume { display: flex; align-items: center; flex: 1; max-width: 14rem; opacity: 0.85; // Secondary control: neutral instead of the accent colour .MuiSlider-root { color: rgb(255 255 255 / 0.85); } } } &-side { display: flex; flex-direction: column; gap: 1.5rem; height: min(80vh, 760px); min-height: 0; @media (max-width: 900px) { height: 70vh; } &-lyrics { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; // Fade lines in and out at the edges mask-image: linear-gradient(transparent, black 15%, black 85%, transparent); &::-webkit-scrollbar { display: none; } } // "Up next" sits on a quiet card; no blur so the artwork backdrop stays clean &-queue { flex: 1; min-height: 0; // The queue view scrolls its own list so the header stays put display: flex; flex-direction: column; overflow: hidden; padding: 1rem 1.25rem 0; .queue { flex: 1; min-height: 0; } background: rgb(0 0 0 / 0.22); border: 1px solid rgb(255 255 255 / 0.06); border-radius: 1.25rem; &::-webkit-scrollbar { width: 6px; } &::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; } } &.has-lyrics .audio-side-queue { flex: 0 1 auto; max-height: 40%; } } &-lyrics { width: 100%; &-container { display: flex; flex-direction: column; align-items: flex-start; // Room above and below so the active line can scroll to the middle padding: 35% 0.5rem; } &-status { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; opacity: 0.7; } &-line { margin: 0 0 0.6rem !important; padding: 0.35rem 0.75rem; border-radius: 0.75rem; font-size: clamp(1.25rem, 2vw, 1.85rem) !important; line-height: 1.35 !important; font-weight: 700 !important; text-align: left; opacity: 0.35; transition: opacity 0.35s ease, filter 0.35s ease; filter: blur(0.4px); &[data-active-lyric="true"] { opacity: 1; filter: none; } &[data-seekable="true"] { cursor: pointer; transition: opacity 0.35s ease, filter 0.35s ease, background-color 0.2s ease; &:hover, &:focus-visible { opacity: 0.8; filter: none; background: rgb(255 255 255 / 0.08); outline: none; } &[data-active-lyric="true"]:hover { opacity: 1; } } } // Unsynced lyrics: plain readable text, no highlight &[data-has-synced-lyrics="false"] { .audio-lyrics-container { padding: 1rem 0.5rem 4rem; } .audio-lyrics-line { font-size: 1.15rem !important; font-weight: 500 !important; opacity: 0.85; filter: none; margin-bottom: 0.25rem !important; } } &-unsynced-notice { position: sticky; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem; margin-left: 0.5rem; background: rgb(0 0 0 / 0.35); border-radius: 2rem; opacity: 0.85; .material-symbols-rounded { font-size: 1.1rem; } } } } .player-progress-stacked { display: flex; flex-direction: column; width: 100%; .MuiSlider-root { padding: 10px 0; } &-times { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.7; font-variant-numeric: tabular-nums; } }