/* ============================================================
   LIVE-STREAM STYLE PLAYER (Unified for Recorded Playback)
   ============================================================ */

#page-wrapper {
  width: 510px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.live-stream {
  box-sizing: border-box;
  width: 300px;
  height: 140px;
  margin-bottom: 10px;
  border: 3px solid #cccccc;
  padding: 0 7px;
  border-radius: 10px;
  background: #DDDDDD;
  margin-left: auto;
  margin-right: auto;
}

/* --- Player Controls (speaker + play/stop + slider) --- */

.player {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px;
  gap: 5px;
}

.player button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

#speaker {
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 10;
}

#playstop {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#volume { 
  accent-color: black; 
  width: 200px; 
  height: 30px; 
  background: linear-gradient(#444, #111); 
  border: 1px solid #888; 
  box-shadow: inset 0 0 2px #000;
}

.seek-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-family: monospace;
  font-size: 11px;
}

#seekbar {
  width: 175px;       
  height: 6px;
  background: #ccc;
  border-radius: 3px;
  cursor: pointer;
  accent-color: #234F72;
}

#currentTime,
#durationTime {
  width: 40px;         
  text-align: center;
}




/* --- Meter Container --- */

.meter-container {
  position: relative;
  width: 100%;
  height: 40px;

  border: 1px solid #333;
  border-radius: 4px;

  overflow: hidden;
  margin-top: 10px;

  background: linear-gradient(to bottom, #eee, #ccc);
}

.meter-text {
  visibility: hidden;
  width: 100%;
  color: #000;
  text-align: center;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
}

.meter-container:hover .meter-text {
  visibility: visible;
}

/* --- Meter Zones (green → orange → red) --- */

.meter-zones {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    to right,
    rgba(0,255,0,0.15) 0%,
    rgba(0,255,0,0.25) 58.3%,
    rgba(255,165,0,0.25) 58.3%,
    rgba(255,165,0,0.35) 83.3%,
    rgba(255,0,0,0.35) 83.3%,
    rgba(255,0,0,0.45) 100%
  );
}

/* --- Meter Bars --- */

.meter-bar {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 2;

  transition: width 0.03s linear;

  box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}

#green-bar {
  left: 0;
  background: lime;
  max-width: 58.3%;
}

#orange-bar {
  left: 58.3%;
  background: #ffaa00;
  max-width: 25%;
}

#red-bar {
  left: 83.3%;
  background: red;
  max-width: 16.7%;
}

/* --- Meter Scale --- */

.meter-scale {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.tick {
  position: absolute;
  top: 0;

  height: 100%;

  display: flex;
  align-items: flex-end;

  transform: translateX(-50%);

  font-size: 10px;
  color: #000;
  font-family: Arial, sans-serif;
}

/* --- Peak Dot --- */

#peak-dot { 
  position: absolute; 
  top: 0; 
  width: 4px; 
  height: 100%; 
  background: #ff0000; 
  z-index: 5; 
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(255,255,255,0.9);
}

/* --- Recorded Time Display --- */

.stream-info {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 5px;
  text-align: center;
  color: #000;
  font-family: monospace;
  pointer-events: none;
}

/* ============================================================
   PAGE LAYOUT + PLAYLIST (from your original CSS)
   ============================================================ */

#FileList {
  max-width: 460px;
  border: 1px solid #eee;
  padding: 1px;
  height: 500px;
  overflow: auto;
  margin: 20px;
}

/* Each row becomes a 3-column flexbox */
#FileList .mp3File {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 15px;
  cursor: pointer;
}

#FileList .mp3File span {
  margin: 0;
  padding: 0;
  line-height: 1.5;    /* tightest possible */
  font-size: 16px;
}

/* Alternating row shading stays exactly as before */
#FileList .mp3File:nth-child(odd) {
  background-color: #eee;
}

/* Column widths */
#FileList .col-left {
  width: 40%;      /* Time range */
  text-align: left;
}

#FileList .col-mid {
  width: 30%;      /* Duration mm:ss */
  text-align: center;
}

#FileList .col-right {
  width: 30%;      /* Filesize */
  text-align: right;
}

table.days {
  table-layout: auto;
  width: 500px;
  color: #234F72;
  border: 0px;
  text-align: center;
}

table.days thead {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 0px;
}

table.days th {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border: 0px;
}

table.days td {
  font-size: 24px;
  text-align: center;
  padding: 15px;
}
