/*
 ©Copyright 2026 John Anthony Papa - Proprietary and Confidential
*/

/* metadj.org copy of the .live player stylesheet. The three picture rules use classes (.graphic, .last-graphic, .next-graphic)
   instead of ids, because every deck card has its own header and picture. The rest is unchanged. */

body {
   background: #000000;
   background-image: radial-gradient(darkgray, black);
}

.container {
    position: absolute;
    height: 478pt;
    width: 275pt;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    border-radius: 10px;
    border: 3px double #707070;
}

/* header area */
.box1 {
    position: absolute;
    height: 12%;
    width: 100%;
    top: 0;
    background-color: rgb(90, 90, 90);
    box-shadow: 4px 4px 4px darkgrey inset;
}

/* header lines (title, subtitle, comment) - stepped down 2px from 18/14/14 on 2026-10-06 */
.title {
    position: absolute;
    top: 1.3%;
    color: #000000;
    text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0px 0px 6px #ffffff,  0px 0px 8px #ffffff;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 16px;
    z-index: 6;
}
/* subtitle text */
.subtitle {
    position: absolute;
    top: 4.7%;
    color: #000000;
    text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0px 0px 6px #ffffff,  0px 0px 8px #ffffff;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 12px;
    z-index: 6;
}
/* comment text */
.comment {
    position: absolute;
    top: 7.8%;
    color: #000000;
    text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0px 0px 6px #ffffff,  0px 0px 8px #ffffff;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    font-size: 12px;
    z-index: 6;
}

/* next and last track graphics */
.next-graphic, .last-graphic {
    position: absolute;
    height: 60px;
    width: 60px;
    cursor: pointer;
    font-size: 10px;
    z-index: 7;
}
/* next track graphic */
.next-graphic {
    top: .75%;
    right: 1.75%;
}
/* last track graphic */
.last-graphic {
    top: .75%;
    left: 1.25%;
}

/* track graphic */
.graphic {
    position: absolute;
    width: 100%;
    top: 10.5%;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 1s;
    z-index: 2;
}

/* control region  */
.box2 {
    position: absolute;
    height: 31%;
    width: 100%;
    bottom: 0;
    background-color: rgb(90, 90, 90);
    box-shadow: 4px 4px 4px darkgrey inset;
}

/* track select button */
#track-select {
    position: absolute;
    height: 40px;
    width: 40px;
    cursor: pointer;
    bottom: 18%;
    left: 9%;
    font-size: 10px;
    z-index: 7;
}

/* track contributor text */
.track-contributor {
    position: absolute;
    bottom: 24%;
    left: 21.5%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    font-size: 14px;
    z-index: 6;
}
/* track artist text */
.track-artist {
    position: absolute;
    bottom: 21.25%;
    left: 21.5%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 15px;
    z-index: 6;
}
/* track title text */
.track-title {
    position: absolute;
    bottom: 18.25%;
    left: 21.5%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    font-size: 15px;
    z-index: 6;
}
/* track subtitle text */
.track-subtitle {
    position: absolute;
    bottom: 15.5%;
    left: 20%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    font-size: 13px;
    z-index: 6;
}
/* track comment text */
.track-comment {
    position: absolute;
    bottom: 12.75%;
    left: 21.5%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    font-family: Verdana, sans-serif;
    font-weight: normal;
    font-size: 12px;
    z-index: 6;
}

/* play pause button */
#play-pause {
    position: absolute;
    height: 80px;
    width: 80px;
    bottom: 7.5%;
    left: -.5%;
    cursor: pointer;
    font-size: 10px;
    z-index: 6;
}

/* next and last track buttons */
#next-track, #last-track {
    position: absolute;
    height: 55px;
    width: 55px;
    cursor: pointer;
    font-size: 10px;
    z-index: 7;
}
/* next track button */
#next-track {
    bottom: .3%;
    right: .5%;
}
/* last track button */
#last-track {
    bottom: .3%;
    left: .5%;
}

/* progress bar */
#progress-bar {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    height: 5px;
    background: #000000;
    width: 200pt;
    bottom: 6%;
    border-radius: 30px;
    left: 15%;
    z-index: 6;
}
/* progress bar slider thumb */
#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: -3px;
    margin-left: 0px;
    height: 5px;
    width: 5px;
    border: 0;
    background: #ffffff;
    border-radius: 2px;
    cursor: pointer;
}
/* progress bar runnable track */
#progress-bar::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    max-height: 5px;
    border-radius: 2px;
}
/* remove progress bar blue shade */
#progress-bar:focus {
    outline: none;
}
/* track current time text */
.currentTime {
    position: absolute;
    height: 50px;
    width: 50px;
    cursor: default;
    bottom: -2%;
    left: 15.5%;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    align-items: center;
    z-index: 6;
}
/* track total time text */
.durationTime {
    position: absolute;
    height: 50px;
    width: 50px;
    cursor: default;
    bottom: -2%;
    right: 10%;
    font-family: Verdana, sans-serif;
    font-size: 12px;
    align-items: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    z-index: 6;
}

/* playlist button */
#show-list {
    position: absolute;
    height: 55px;
    width: 55px;
    cursor: pointer;
    bottom: 22%;
    left: .3%;
    font-size: 10px;
    z-index: 7;
}

/* playlist overlay */
#overlay {
    position: absolute;
    display: none;
    height: 282pt;
    width: 296pt;
    top: 75px;
    left: 5px;
    cursor: pointer;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: rgba(0,0,0,0.5); 
    z-index: 5;
}

/* content */
.content {
   position: absolute;
   display: block;
   height: 280pt;
   width: 290pt;
   top: 1px;
   left: 0;
   cursor: pointer;
   scrollbar-width: thin;
   scrollbar-color: gray darkgrey;
   overflow-y: scroll;
   overflow-x: hidden;
   background-color: rgba(0,0,0,0); 

   color: #000000;
   text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0px 0px 6px #ffffff,  0px 0px 8px #ffffff;
   font-family: Verdana, sans-serif;
   font-weight: normal;
   font-size: 11px;
   z-index: 5;
}

/* shuffle tracks */
#shuffle-tracks {
   position: sticky;
   height: 40px;
   width: 40px;
   margin: 2px;
   cursor: pointer;
    top: 1%;
    left: 1%;
   font-size: 10px;
   z-index: 7;
}

/* selected label */
.selected-label {
   position: sticky;
   top: 0;
   left: 0;
   height: 20px;
   width: 658px;
   color: #000000;
   text-shadow: 0 0 2px #ffffff, 0 0 4px #ffffff, 0px 0px 6px #ffffff,  0px 0px 8px #ffffff;
   font-family: Verdana, sans-serif;
   font-weight: bold;
   font-size: 10px;
   z-index: 6;
}

/* selected tracks image */
#selected-tracks {
    position: sticky;
    height: 40px;
    width: 40px;
    margin: 2px;
    cursor: pointer;
    top: 1%;
    left: 1%;
    font-size: 10px;
    z-index: 7;
}

/* playlist text */
.track-list {
    position: relative;
    width: 310pt;
    top: 0%;
    left: 0;
    color: white;
    text-shadow: 2px 2px 4px #000000, 1px 1px 2px #000000;
    z-index: 5;
}
/* unique playlist text */
.track-list p {
    color: white;
    font-size: 16px;
    font-weight: bold;
}
/* unique playlist song text */
.track-list a {
    font-size: 14px;
    color: white;
    text-decoration:none;
    cursor: pointer;
}

/* visualizer button */
#show-visual {
    position: absolute;
    height: 40px;
    width: 40px;
    cursor: pointer;
    bottom: 8%;
    right: .3%;
    font-size: 10px;
    z-index: 7;
}
/* visualizer overlay */
#overlay3 {
    position: absolute;
    display: none;
    height: 260pt;
    width: 300pt;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: rgba(0,0,0,0); 
    z-index: 5;
}
/* visualizer graphic */
.visualizer {
    position: absolute;
    width: 350pt;
    bottom: -3pt;
    left: -7pt;
    color: white;
    z-index: 3;
}

/* Playback problems sit above the footer without changing normal layout. */
#playback-status { position:absolute; left:12px; right:12px; bottom:17%; padding:6px; background:#381d1d; color:white; font:12px Verdana,sans-serif; z-index:20; border:1px solid #d78c8c; border-radius:6px; }
#playback-status[hidden] { display:none; }

/* The artwork and control band share an exact boundary. Container-width
   units follow the square picture when the frame narrows on a phone. */
.container { container-type: inline-size; --control-top: calc(10.5% + 100cqw); }
.graphic { box-sizing: border-box; max-width: none !important; width: 100%;
    height: auto; aspect-ratio: 1; object-fit: cover; bottom: auto; }
.box2 { top: var(--control-top); height: auto; bottom: 0; }
#track-select { top: calc(var(--control-top) + 45px); bottom: auto; }
/* Text now flows down in one column. A wrapping title can grow without
   moving upward into the artist. Extra metadata scrolls, never covers play. */
.track-meta { position: absolute; top: calc(var(--control-top) + 44px);
    bottom: 80px; left: 21.5%; right: 12%; z-index: 6;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
    overflow-wrap: anywhere; }
.track-meta > div { position: static; margin: 0; width: auto;
    line-height: 18px; }
.track-meta > div:empty { display: none; }
.track-meta .track-contributor, .track-meta .track-subtitle,
.track-meta .track-comment { line-height: 16px; }
/* Playlist overlay occupies precisely the artwork square, never the frame
   or transport band. Fixed table columns let labels wrap inside the remainder. */
.container #overlay { box-sizing: border-box; top: 10.5%; left: 0;
    width: 100%; height: 100cqw; overflow: hidden; }
.container #overlay .content { position: relative; box-sizing: border-box;
    top: 0; left: 0; width: 100%; height: 100%; padding: 4px;
    overflow-x: hidden; overflow-y: auto; }
#overlay .selected-label { box-sizing: border-box; width: 100%; height: 44px; }
.track-list { width: 100%; }
.track-list table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.track-list td { vertical-align: middle; }
.track-list td:nth-child(1) { width: 110px !important; }
.track-list td:nth-child(2) { width: 46px !important; }
.track-list td:nth-child(3) { width: auto !important; padding: 0 10px 0 3px; }
.track-list td a { display: block; overflow-wrap: anywhere; white-space: normal; }
/* Leave more room beside the metadata for the right-hand controls. */
.track-meta { right: 18%; }
/* Overlay controls are mirror anchors on one sticky row. Do not inherit the
   old table's half-width cell placement or sticky left offsets. */
#overlay .selected-label { position: sticky; top: 0; left: 0; z-index: 8; }
#overlay .selected-label table { width: 100%; height: 44px; }
#overlay .selected-label td { padding: 0; }
#overlay #selected-tracks, #overlay #shuffle-tracks {
    position: absolute; top: 2px; width: 40px; height: 40px; margin: 0;
}
#overlay #selected-tracks { left: 2px; right: auto; }
#overlay #shuffle-tracks { right: 2px; left: auto; }
/* Fit visualizer overlay and canvas to the actual inner frame width. */
#overlay3 { box-sizing: border-box; left: 0; width: 100%; }
.visualizer { box-sizing: border-box; left: 0; width: 100%; }
.visualizer canvas { display: block; width: 100%; height: auto; }
/* Keep playlist content inside the picture's six-pixel ridge border. The
   artwork outer square stays fixed; only overlay top/height are inset. */
.container #overlay { top: calc(10.5% + 6px); height: calc(100cqw - 12px); }

/* Preserve desktop's one-pixel seam correction in the shared player. */
@media (min-width: 600px) {
    .container #overlay { top: calc(10.5% + 5px); height: calc(100cqw - 10px); }
}
/* One-pixel rightward visual adjustment, clipped by the existing frame. */
.visualizer canvas { transform: translateX(1px); }

/* Match the vertical ridge insets on the left and right. */
.container #overlay { left: 6px; width: calc(100% - 12px); }
@media (min-width: 600px) {
    .container #overlay { left: 5px; width: calc(100% - 10px); }
}
/* Mirror the progress bar's existing left inset on the right. */
#progress-bar { left: 15%; right: 15%; width: auto; }

/* Left slot of the control band: favorite the playlist being played (added by player.js).
   The playlist-list button sits in the mirrored slot on the right. */
/* Both buttons sit just under the artwork edge, level with each other. */
#show-list { left: auto; right: .3%; top: calc(var(--control-top) + 1.5px); bottom: auto; }
#favorite-playlist { position: absolute; height: 55px; width: 55px; left: .3%;
    top: calc(var(--control-top) + 1.5px); cursor: pointer; font-size: 10px; z-index: 7; }
#favorite-playlist[hidden] { display: none; }
