/*
.jukebox {
    background: #333;
    border: 5px solid #ffd700;
    border-radius: 20px;
    box-shadow: 0 0 20px #ff0066, 0 0 40px #ffcc00;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: auto;	
}
*/

.container-jukebox {
    display: block;
    width: 100%;
    max-width: 299px;
    margin: 0 auto; /* Strict centering */
    padding: 0;
}

.container-jukebox img {
    display: block;
}

.container-jukebox table {
    border-collapse: collapse;
    width: 100%;
    max-width: 299px;
    margin: 0 auto;
    padding: 0;
}

.upright-cell {
    text-align: center;
    width: 74px;
    background: url('images/jukebox/jukebox_upright_solid_color.gif') repeat-y center;
}
.upright-cell.right {
    width: 82px;
}

.jukebox-bottom-container {
    position: relative;
    width: 299px;
    height: 293px;
    margin: 0 auto;
}

.jukebox-bottom-container img {
    display: block;
    width: 100%;
    height: auto;
}

.jukebox-bottom-container .controls {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    margin: auto;
    width: 90%;
    max-width: 270px;
    background: rgba(51, 51, 51, 0.9);
    z-index: 10;
    padding: 5px;
}

.fun-facts {
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Strict centering */
    padding: 0;
}
.fun-facts table {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    font-size: clamp(12px, 3vw, 14px);
    margin: 0 auto;
    padding: 0;
}
.fun-facts td {
    padding: 0 4px !important;   /* 0 top/bottom, 4px left/right */
}

.track-list {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  line-height: 1.4;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.track {
  padding: 1px 4px;         /* Slightly tighter padding */
  height: 18px;             /* Slightly shorter row height */
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
}

.track-list .track:nth-child(odd) {
    background: #FFC6C6;   /*ORIG ffb6c1; */
}

/*.track-list .track:nth-child(even) {
    background: #ffffff;
} */ /* REDUNDANT w/ base attribute in .track. */

.track:hover {
    transform: scale(1.05);
    box-shadow: 0 0 3px #ff0066;
}

.track.playing {
    background: #ffcc00 !important;
    box-shadow: 0 0 0 #ff0066;
    color: #006400;
    /*text-transform: uppercase;*/
}

.track.paused {
    background: #999999 !important;
    font-weight: 0;
    /*text-transform: uppercase;*/
}

.track-number {	
    background: #ff0066;
    color: #fff;
    padding: 0px 1px; /* Minimal padding */
    border-radius: 1px;
    margin-right: 0; /* No space between track number and title */
    font-size: 0.95em;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-weight: bold;
    white-space: nowrap;
	
	/* padding: 0px 3px;
	margin-right: 2px;	ignoring from last AI response */
}

.track.playing .track-number {
    background: #00cc66 !important;
    color: #333;
}

.track.paused .track-number {
    background: #666666 !important;
    color: #333;
}

.track-info {
    flex-grow: 1;
}

.track-title {
    margin: 0;
    font-size: 1em;
	/* x line-height: 1.2;         /* Helps vertically center the text */
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-weight: bold !important;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track.playing .track-title {
    color: #006400 !important;
    /*text-transform: uppercase !important;
    font-size: 0.8em;*/
}

.track.paused .track-title {
    color: #333 !important;
    /*text-transform: uppercase !important;
    font-size: 0.8em;*/
}

.controls {
    position: absolute;
    width: 146px;
    left: calc(50% - 4px);        /* Shift 4px to the left */
    transform: translateX(-50%);
    top: calc(100% - 240px);      /* Moves it down (293px image - 240px = 53px from top) */
    
    background: #333;
    border: 1px solid #ffd700;
    border-radius: 10px;
    padding: 2px;

    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
	
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.95em;
    /* line-height: 1.2; */  /* Might need to consider using/adjusting if multi-lines are squished. */
    color: #fff;
}

.controls button,
.controls input[type="range"],
.controls .duration-info {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-size: 0.75em;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 3px;
    flex-wrap: wrap;
}

.control-button {
    background: #ff0066;
    color: #FFFFF0; /* Off-White, replaced #fff; */
    border: 1px solid #ffd700;
    border-radius: 5px;
    padding: 0 1px;
    font-weight: bold !important; 
    letter-spacing: -0.05em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#play-pause-button {
    padding: 0 2px;
    width: 40px;
}

/*
.control-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #ffcc00;
}

.control-button:active {
    background: #00CC66;
}
*/

.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.volume-icon {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    box-shadow: 0 0 5px #ff0066;
    flex-shrink: 0;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 5px;
    outline: none;
    background: #666666;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: #ff99cc;
    border: 2px solid #ffd700;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -3px;
}

input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #ff99cc;
    border: 2px solid #ffd700;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -3px;
}

#volume-slider {
    background: #666666;
}

#volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(to right, #cccccc 0%, #cccccc var(--value), #666666 var(--value), #666666 100%);
    --value: calc(100% * (var(--slider-value) / 1));
}

#volume-slider::-moz-range-track {
    height: 4px;
    border-radius: 5px;
    background: #666666;
}

#volume-slider::-moz-range-progress {
    background: #cccccc;
    height: 4px;
    border-radius: 5px;
}

#duration-slider {
    background: #666666;
    width: 100%;          /* Ensures it fills its container */
    max-width: 95px;      /* Approximate width of volume slider's track */
    margin: 0 auto;
    display: block;
}

#duration-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 5px;
    background: linear-gradient(to right, #0066ff 0%, #0066ff var(--value), #666666 var(--value), #666666 100%);
    --value: calc(100% * (var(--slider-value) / 100));
}

#duration-slider::-moz-range-track {
    height: 4px;
    border-radius: 5px;
    background: #666666;
}

#duration-slider::-moz-range-progress {
    background: #0066ff;
    height: 4px;
    border-radius: 5px;
}

.duration-info {
    font-size: 0.95em;
    color: #fff;
    margin-top: 3px;
    text-align: center;
}
