@charset 'utf-8';

/* =========================================================
   Radio Player — Isolated Embeddable Widget Layout
   Visual Theme: Translucent surfaces with custom heavy metal 
   Metal Mania typography overrides.
   ========================================================= */

:root {
    --accent: #00e1e7;
    --accent-strong: #00b8bd;
    --accent-ink: #062a2c;
    --bg-widget: rgba(11, 14, 19, 0.95); /* Semi-transparent base panel to blend with your page */
    --text: #f4f6f8;
    --text-muted: rgba(244, 246, 248, 0.62);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
    --radius: 20px;
}

/* Scoped layout wrapper to prevent styles from bleeding out into your website */
.my-site-radio-widget {
    box-sizing: border-box;
    width: 100%;
    max-width: 800px; /* Constrains it into a neat dashboard card or sidebar asset */
    margin: 0 auto;
    padding: 24px;
    background-color: var(--bg-widget);
    color: var(--text);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: 'Metal Mania', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-site-radio-widget * { 
    box-sizing: border-box; 
}

/* Stripped out the original .bg full-screen backdrop overrides completely to keep your web design native */

.my-site-radio-widget [hidden] { display: none !important; }
.my-site-radio-widget .hidden { display: none; }
.my-site-radio-widget .text-uppercase { text-transform: uppercase; }
.my-site-radio-widget .text-capitalize { text-transform: capitalize; }

/* ---- Masthead Header ---- */
.my-site-radio-widget .masthead {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ---- Player Core Container ---- */
.my-site-radio-widget .player {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.my-site-radio-widget .cover-album {
    width: 620px;
    height: 620px;
    aspect-ratio: 1 / 1;
    flex: none;
    border-radius: 16px;
    background: url('../img/cover.png') center / cover no-repeat;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.my-site-radio-widget #currentCoverArt {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.my-site-radio-widget .player-info {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.my-site-radio-widget .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
}

.my-site-radio-widget .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a5f;
    box-shadow: 0 0 10px #ff5a5f;
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.my-site-radio-widget #currentSong {
    margin: 12px 0 4px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.my-site-radio-widget #currentArtist {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* ---- Controls Layer Group ---- */
.my-site-radio-widget .controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.my-site-radio-widget .control-cluster {
    display: flex;
    align-items: center;
    gap: 18px;
}
/* ---- Buttons & Control Anchors ---- */
.my-site-radio-widget .ctrl-btn {
    width: 52px;
    height: 52px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.3s ease;
}

.my-site-radio-widget .ctrl-btn:hover { 
    background: var(--surface-strong); 
}

.my-site-radio-widget .ctrl-btn:active { 
    transform: scale(0.94); 
}

.my-site-radio-widget .ctrl-btn:focus-visible { 
    outline: 2px solid var(--accent); 
    outline-offset: 4px; 
}

.my-site-radio-widget .play-btn {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text);
    background: var(--surface-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.2s ease;
}

.my-site-radio-widget .play-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
}

.my-site-radio-widget .play-btn:active { 
    transform: scale(0.96); 
}

.my-site-radio-widget .play-btn:focus-visible { 
    outline: 2px solid var(--accent); 
    outline-offset: 4px; 
}

.my-site-radio-widget .play-btn .fa-play { 
    margin-left: 5px; 
}

/* Accessibility anchor for screen readers */
.my-site-radio-widget .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Volume Wrapper Components ---- */
.my-site-radio-widget .volume-wrap {
    display: flex; /* Enforces slider visibility context inside web layouts uniformly */
    position: relative;
    width: 100%;
    max-width: 240px;
    margin-top: 6px;
}

.my-site-radio-widget .volume-popover {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(11, 14, 19, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.my-site-radio-widget .vol-value {
    flex: none;
    min-width: 36px;
    text-align: right;
    font-size: 18px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.my-site-radio-widget input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-strong);
    cursor: pointer;
}

.my-site-radio-widget input[type=range]:focus { 
    outline: none; 
}

.my-site-radio-widget input[type=range]:focus-visible { 
    outline: 2px solid var(--accent); 
    outline-offset: 4px; 
}

.my-site-radio-widget input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 225, 231, 0.2);
}

.my-site-radio-widget input[type=range]::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--surface-strong);
}

.my-site-radio-widget input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 225, 231, 0.2);
}

/* ---- Upcoming Queue Container ---- */
.my-site-radio-widget .up-next {
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.my-site-radio-widget .up-next.hidden { 
    display: none; 
}

.my-site-radio-widget .up-next-label {
    flex: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.my-site-radio-widget .up-next-cover {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    background: url('../img/cover.png') center / cover no-repeat;
}

.my-site-radio-widget .up-next-info { 
    min-width: 0; 
}

.my-site-radio-widget .up-next-song {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-site-radio-widget .up-next-artist {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ---- Recent Song History List ---- */
.my-site-radio-widget .historic {
    width: 100%;
    margin-top: 24px;
}

.my-site-radio-widget .section-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Restricts column widths to safely clip overflowing titles inside narrow layout containers */
.my-site-radio-widget .history-list {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.my-site-radio-widget #historicSong article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.my-site-radio-widget .cover-historic {
    width: 60px;  /* Scaled down to prevent taking over your parent site's dimensions */
    height: 60px;
    flex: none;
    border-radius: 6px;
    background: url('../img/cover.png') center / cover no-repeat;
}

.my-site-radio-widget .music-info { 
    min-width: 0; 
}

.my-site-radio-widget .music-info .song {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-site-radio-widget .music-info .artist {
    font-size: 18px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Scoped Lyrics Overlay Popover ---- */
.my-site-radio-widget #modalLyrics {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999; /* Higher z-index to overlay neatly on your website */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.my-site-radio-widget .modal-card {
    width: min(480px, 100%);
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #12161d;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.my-site-radio-widget .modal-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.my-site-radio-widget #lyricsSong {
    margin: 0;
    min-width: 0;
    font-size: 28px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-site-radio-widget .modal-close {
    flex: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-site-radio-widget .modal-close:hover {
    background: var(--surface-strong);
    color: var(--text);
}
/* ---- Scoped Lyric Presentation Box ---- */
.my-site-radio-widget #lyric {
    padding: 16px 20px;
    overflow-y: auto;
	font-family: Arial, sans-serif;
    font-size: 20px; /* Clean size optimized for text widgets */
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

/* Prevent layout scrolling when lyrics modal is open */
.my-site-radio-widget-modal-open { 
    overflow: hidden; 
}

/* ---- PWA Installation Hook Elements ---- */
.my-site-radio-widget .install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(11, 14, 19, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease;
    width: auto;
}

.my-site-radio-widget .install-btn:hover { 
    background: rgba(255, 255, 255, 0.12); 
}

