/* =========================================================
   External MP3 Player – TLIG Library look & feel
   ---------------------------------------------------------
   Tweak the main accent colour here to match the theme.
   ========================================================= */

:root {
    /* Accent colour (match this to your theme link/button colour) */
    --emp-accent: #7b2532;          /* deep, warm burgundy */
    --emp-accent-hover: #5e1c27;    /* darker shade on hover */
    --emp-soft-bg: #faf6f7;         /* very soft tinted background */
    --emp-border: #dddddd;
}

/* Fallbacks if CSS variables are not supported (very old browsers) */
.emp-playlist-wrapper,
.emp-live-stream-player {
    border-color: #dddddd;
}

/* =========================================================
   Playlist styles
   ========================================================= */

.emp-playlist-wrapper {
    max-width: 100%;
    margin: 1rem 0 1.5rem;
    font-family: inherit; /* follow theme font */
    font-size: 14px;
    line-height: 1.5;
}

.emp-audio-player {
    width: 100%;
    margin-bottom: 0.5rem;
    background-color: #f7f7f7; /* light panel behind controls */
}

/* Scrollable list container */
.emp-playlist-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--emp-border);
    border-radius: 4px;
    padding: 0;
    background-color: #ffffff;
}

.emp-playlist-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual track row */
.emp-playlist-container li {
    cursor: pointer;
    padding: 6px 10px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    color: inherit;              /* same text colour as theme */
    background-color: transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.emp-playlist-container li:last-child {
    border-bottom: none;
}

/* Hover state */
.emp-playlist-container li:hover {
    background-color: #f4f4f4;
    color: var(--emp-accent);
}

/* Currently playing track */
.emp-playlist-container li.playing {
    background-color: var(--emp-soft-bg);
    color: var(--emp-accent);
    font-weight: 600;
}

/* Message when no files */
.emp-no-files {
    font-style: italic;
    opacity: 0.8;
}

/* =========================================================
   Live stream player styles
   ========================================================= */

.emp-live-stream-player {
    font-family: inherit;   /* use theme font */
    font-size: 14px;
    display: inline-block;
    padding: 10px 12px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    border-radius: 8px;
    border-top: 3px solid var(--emp-accent); /* subtle accent bar */
}

/* Layout of controls */
.emp-live-stream-player .player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Round play/pause button */
.emp-live-stream-player .play-pause-btn {
    background: var(--emp-accent);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.25s ease, transform 0.1s ease;
}

.emp-live-stream-player .play-pause-btn:hover {
    background: var(--emp-accent-hover);
    transform: translateY(-1px);
}

.emp-live-stream-player .play-pause-btn:active {
    transform: translateY(0);
}

/* Volume slider */
.emp-live-stream-player .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    border-radius: 2px;
    background: #c4c4c4; /* slightly darker for better contrast */
    outline: none;
    cursor: pointer;
}

/* WebKit thumb (Chrome, Safari, Edge) */
.emp-live-stream-player .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--emp-accent);
    box-shadow: 0 0 0 2px #ffffff;
}

/* Firefox thumb */
.emp-live-stream-player .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--emp-accent);
    border: 2px solid #ffffff;
}

/* Track (Firefox) */
.emp-live-stream-player .volume-slider::-moz-range-track {
    height: 4px;
    background: #c4c4c4;
    border-radius: 2px;
}

/* LIVE timer text */
.emp-live-stream-player .live-timer {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--emp-accent);
    white-space: nowrap;
}

/* =========================================================
   Higher-contrast progress bar for the HTML5 audio element
   (main playlist player) – WebKit browsers (Chrome/Edge/Safari)
   ========================================================= */

/* Overall control panel background */
.emp-audio-player::-webkit-media-controls-panel {
    background-color: #f7f7f7;
}

/* Progress (seek) bar track */
.emp-audio-player::-webkit-media-controls-timeline {
    background-color: #e0e0e0;      /* darker track for contrast */
    border-radius: 999px;
}

/* Current time / duration text (if visible) */
.emp-audio-player::-webkit-media-controls-current-time-display,
.emp-audio-player::-webkit-media-controls-time-remaining-display {
    color: #333333;
}
