/* =========================================================
   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: 15px;
    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;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

/* Controls layout */
.emp-live-stream-player .player-controls {
    display: flex;
    align-items: center;
}

/* Basic round play/pause button with TLIG color */
.emp-live-stream-player .play-pause-btn {
    background: var(--emp-accent);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}

/* No hover/active effects */
.emp-live-stream-player .play-pause-btn:hover,
.emp-live-stream-player .play-pause-btn:active {
    background: var(--emp-accent);
}

/* Volume slider (shown on non-home pages) */
.emp-live-stream-player .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    border-radius: 2px;
    background: #c4c4c4;
    outline: none;
    cursor: pointer;
    margin-left: 12px;
}

/* Live timer text */
.emp-live-stream-player .live-timer {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--emp-accent);
    white-space: nowrap;
}

/* Wrapper so title + player stay together */
.emp-live-stream-block {
    display: inline-block;
}

/* Optional title above the live player */
.emp-live-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--emp-accent);
    text-align: center;
}

/* Hide volume slider */
.emp-live-stream-player .volume-slider {
    display: none;
}
