style(immersive): improve split lyrics layout for better space usage

Artwork scales with viewport (min of 500px/38vw/58vh) instead of fixed
380px cap. Lyrics use responsive clamp() sizing (up to 34px inactive,
42px active) with better line-height. Reduced padding/gaps throughout
split mode for less dead space. Tighter mask gradient on lyrics panel.

cc
This commit is contained in:
vicrodh committed 2026-04-05 14:00:47 -06:00
1 parent 4187c6a096
commit a3f63f2148
4 files changed
+25 -25

No files matched your search

@@ -36,7 +36,7 @@
/* Floating variant (default) */
.artwork-wrapper {
width: 100%;
max-width: 380px;
max-width: min(500px, 38vw, 58vh);
aspect-ratio: 1;
border-radius: 12px;
overflow: hidden;
@@ -55,7 +55,7 @@
.vinyl-disc {
position: relative;
width: 100%;
max-width: 380px;
max-width: min(500px, 38vw, 58vh);
aspect-ratio: 1;
border-radius: 50%;
background: linear-gradient(
@@ -104,14 +104,14 @@
@media (max-width: 1200px) {
.artwork-wrapper,
.vinyl-disc {
max-width: 320px;
max-width: min(420px, 35vw, 50vh);
}
}
@media (max-width: 900px) {
.artwork-wrapper,
.vinyl-disc {
max-width: 280px;
max-width: min(320px, 60vw, 32vh);
}
}
</style>
@@ -887,13 +887,13 @@
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 1400px;
max-width: 1600px;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 80px 48px 140px;
gap: 60px;
padding: 64px 40px 100px;
gap: 40px;
z-index: 1;
}
@@ -908,7 +908,7 @@
.split-track-info {
text-align: center;
max-width: 380px;
max-width: 500px;
}
.split-title-row {
@@ -971,9 +971,8 @@
flex: 1;
min-width: 0;
min-height: 0;
max-width: 700px;
max-width: 800px;
height: 100%;
max-height: 80vh;
display: flex;
flex-direction: column;
align-self: center;
@@ -1009,12 +1008,12 @@
/* Responsive */
@media (max-width: 1200px) {
.immersive-main {
padding: 70px 32px 130px;
gap: 40px;
padding: 64px 28px 100px;
gap: 32px;
}
.panel-section {
max-width: 620px;
max-width: 700px;
}
.focus-panel {
@@ -1025,8 +1024,8 @@
@media (max-width: 900px) {
.immersive-main {
flex-direction: column;
padding: 70px 24px 140px;
gap: 24px;
padding: 64px 24px 110px;
gap: 20px;
justify-content: flex-start;
}
@@ -1051,8 +1050,8 @@
@media (max-width: 600px) {
.immersive-main {
padding: 60px 16px 130px;
gap: 20px;
padding: 56px 16px 100px;
gap: 16px;
}
.focus-panel {
@@ -73,15 +73,15 @@
mask-image: linear-gradient(
to bottom,
transparent 0%,
black 8%,
black 85%,
black 5%,
black 88%,
transparent 100%
);
-webkit-mask-image: linear-gradient(
to bottom,
transparent 0%,
black 8%,
black 85%,
black 5%,
black 88%,
transparent 100%
);
}
+5 -4
View File
@@ -240,16 +240,17 @@
/* Immersive mode - larger text with Oswald font */
/* Performance: uses CSS classes for opacity instead of inline styles */
.lyrics-lines.immersive {
gap: 20px;
padding: 24px;
gap: clamp(18px, 2.5vh, 30px);
padding: 16px 24px;
/* Containment: isolate layout/paint to this subtree */
contain: layout style;
}
.lyrics-lines.immersive .lyrics-line {
font-family: 'Oswald', var(--font-sans), sans-serif;
font-size: 28px;
font-size: clamp(24px, 2.6vw, 34px);
font-weight: 400;
line-height: 1.3;
letter-spacing: 0.02em;
/* Text shadow for contrast against any background */
text-shadow:
@@ -276,7 +277,7 @@
}
.lyrics-lines.immersive .lyrics-line.active {
font-size: 30px;
font-size: clamp(28px, 3.2vw, 42px);
font-weight: 600;
color: #ffffff !important;
opacity: 1;