/* Universal box-sizing for consistency */ *, *::before, *::after { box-sizing: border-box; } body { font-family: "Mukta", sans-serif; width: 100%; height: 100%; margin: 0; padding: 0; min-width: 100vw; min-height: 100vh; /* background: linear-gradient(-45deg, #FFCDD2 50%, #B2EBF2 50%); */ } /* Container for the player and album cover */ .music-container { width: 800px; /* fixed desktop width */ max-width: 90vw; /* prevent overflow on smaller screens */ height: 290px; margin: 0 auto 120px auto; /* increased bottom margin */ overflow-x: visible; /* allow horizontal overflow if needed */ overflow-y: hidden; position: relative; display: flex; justify-content: center; align-items: center; box-sizing: border-box; padding: 1rem; box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3); } /* Album cover section */ .album-cover { aspect-ratio: 1 / 1; width: 100%; max-width: 30%; height: auto; } .album-cover > img { width: 100%; height: 100%; object-fit: cover; } .album-cover > img:hover { opacity: 0.7; } /* Player info and controls */ .music-player { flex: 1 1 70%; /* Take remaining ~70% */ max-width: 70%; width: auto; height: 100%; /* Match container height */ padding: 1em; text-align: center; display: flex; flex-direction: column; justify-content: center; background: inherit; box-sizing: border-box; min-width: 0; /* Fix flex overflow */ flex-shrink: 0; /* Prevent shrinking that hides content */ } /* Text styling */ .music-player__title { color: inherit; font-size: 0.9rem; margin: 0 0 0.1em 0; } .music-player__header { color: inherit; font-size: 1rem; margin: 1 0 0.1em 0; } .music-player__author { color: inherit; font-size: 0.9rem; margin: 0 0 0.5em 0; } .music-player__genre { color: inherit; font-size: 0.9rem; margin: 0 0 0.5em 0; } .music-player__genre:before { font-weight: bold; content: "Genre: "; } .station-tabs { padding-top: 4%; } /* Music bar and progress */ /* .music-bar { background: #efefef; stroke-width: 1; height: 8px; width: 100%; cursor: pointer; } .music-bar #length { width: 0%; background: #2196F3; height: 100%; transition: width linear 200ms; } */ /* Time display */ .music-time { display: flex; flex-flow: row wrap; } .music-time__last { margin-left: auto; } /* Playback order icons */ .music-order { display: flex; flex-flow: row wrap; } .music-order__shuffle, .music-order__loop { width: 1.2em; height: 1.2em; opacity: 0.2; margin: 0.3em 0; } .music-order__shuffle.is-loop, .music-order__loop.is-loop, .music-order__shuffle.is-loop-one, .music-order__loop.is-loop-one { opacity: 1 !important; } .music-order__shuffle { margin-left: auto; } /* Controls container */ .music-control { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; height: 2em; } .music-control__play { width: 3em; height: 3em; margin: 0 1em; } .music-control__backward, .music-control__forward { width: 1.5em; height: 1.5em; } /* Mobile override */ @media all and (max-width: 960px) { .music-container { flex-direction: column !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin-bottom: 50px !important; overflow: visible !important; padding: 1rem !important; } .album-cover { flex: none !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin-bottom: 1rem !important; min-width: 0 !important; } .album-cover > img { aspect-ratio: unset !important; height: auto !important; width: 100% !important; } .music-player { flex: none !important; width: 100% !important; max-width: 100% !important; height: auto !important; padding: 0 !important; min-width: 0 !important; flex-shrink: 0 !important; } }