/* scanner-live.css */

/* General container for the player */
#sl-player-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  position: relative;
}

/* Controls above recent */
#sl-startstop-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* Status text */
#sl-status {
  font-weight: bold;
}

/* Card styling */
.sl-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  margin: 2px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f7f7f7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sl-now-card {
  border: 2px solid #007acc;
  background: #e0f0ff;
}

/* Card content */
.sl-card-content {
  display: flex;
  flex-direction: column;
}

/* Channel name larger */
.sl-card-title {
  font-weight: bold;
  font-size: 0.8em;
}

/* Timestamp under name */
.sl-card-time {
  font-size: 0.6em;
  color: #666;
}

/* Buttons on right side */
.sl-btn {
  margin-left: 10px;
  padding: 4px 8px;
  border: none;
  background-color: #007acc;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.sl-btn:hover {
  background-color: #005f99;
}

/* Queue and Now Playing containers */
#sl-recent, #sl-queue, #sl-now {
  display: flex;
  flex-direction: column-reverse; /* newest at bottom */
  overflow-y: hidden;
  margin-bottom: 5px;
}

/* Recently played fixed height: 5 cards */
#sl-recent {
  height: calc(5 * 44px + 10px); /* 44px approx per card + margins */
  margin-bottom: 10px;
}

/* Now playing stripe positioned 5 cards down */
#sl-now {
  height: 44px;
  margin-bottom: 10px;
}

/* Queue grows downward */
#sl-queue {
  max-height: 300px;
  overflow-y: auto;
}

/* Modal */
#sl-channel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#sl-channel-modal .sl-modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 350px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
}

#sl-channel-modal .sl-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
}

/* Channel entries inside modal */
.sl-channel-entry {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.sl-channel-entry label {
  margin-left: 6px;
  flex: 1;
}
