/* =============================================================================
   legacy.css — Shared styles for stats, music, loa and iadata pages
   ============================================================================= */

/* ── Shared box utility (used across all legacy pages) ───────── */
/*
   .legacy-box  — the single shared box style.
   .st-section  — alias used by stats; inherits all legacy-box rules.
   Apply either class to get the consistent box look.
*/
.legacy-box,
.st-section {
	background: #f8f9fa;
	border-left: 4px solid #007bff;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 20px 0;
}
.legacy-box.warn,
.st-section.st-warn { border-left-color: #ffc107; }

.legacy-box h1, .legacy-box h2, .legacy-box h3, .legacy-box h4,
.st-section h1,  .st-section h2,  .st-section h3,  .st-section h4 {
	color: #007bff;
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
}
.legacy-box.warn h1, .legacy-box.warn h2, .legacy-box.warn h3, .legacy-box.warn h4,
.st-section.st-warn h1, .st-section.st-warn h2, .st-section.st-warn h3, .st-section.st-warn h4 {
	color: #856404;
}
.st-section h2 { font-size: 1.1rem; }
.legacy-box p,
.st-section p { margin-bottom: 0; color: #333; line-height: 1.6; }
.st-stat-box { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.st-stat { flex: 1; min-width: 180px; }
.st-stat strong { display: block; font-size: .82rem; color: #555; margin-bottom: 4px; }
.st-stat span { font-size: 1.5rem; font-weight: 700; color: #007bff; }
.st-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.st-nav a { display: block; padding: 8px 12px; background: #fff; border: 1px solid #dee2e6; border-radius: 4px; color: #007bff; text-decoration: none; font-size: .9rem; }
.st-nav a:hover { background: #e9f0ff; }
.back-top { text-align: center; margin: 6px 0 18px; }
.back-top a { color: #007bff; font-size: .85rem; text-decoration: none; }

/* ── Artist Catalog (loa) ────────────────────────────────────── */
.loa-page { padding: 70px 0 60px; }

.loa-page-header {
    background: #f8f9fa;
    padding: 0;
    margin-bottom: 28px;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.loa-page-header-art {
    width: 260px;
    min-width: 260px;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
    align-self: stretch;
}
@media (max-width: 575px) {
    .loa-page-header-art { display: none; }
}
.loa-page-header-text {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

/* Mini play button */
.loa-mini-player {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 7px 16px 7px 12px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    align-self: flex-start;
    transition: background .18s, transform .12s;
    user-select: none;
    letter-spacing: .02em;
}
.loa-mini-player:hover { background: #0056b3; transform: scale(1.04); }
.loa-mini-player.playing { background: #28a745; }
.loa-mini-player.playing:hover { background: #1e7e34; }
.loa-mini-player-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.loa-mini-player.playing .loa-mini-player-icon { animation: mini-pulse 1.4s ease-in-out infinite; }
@keyframes mini-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.18); }
}

/* Full player box */
.loa-player-box {
    display: none;
    background: linear-gradient(135deg, #0a1428 0%, #0d2050 60%, #0a1428 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 6px 32px rgba(0,0,0,.35);
}
.loa-player-box.open { display: block; }

.loa-player-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}

.loa-player-art-wrap {
    position: relative;
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    background: #07111f;
}
.loa-player-art-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 160px;
}
.loa-player-art-wrap .loa-playing-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,123,255,.85);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s;
}
.loa-player-art-wrap.playing .loa-playing-badge { opacity: 1; }

.loa-player-controls {
    flex: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-width: 220px;
}

.loa-player-now {
    color: #cce4ff;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0;
}
.loa-player-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loa-player-artist {
    color: #7aadff;
    font-size: .9rem;
    margin: 0;
}
.loa-np-artist-link {
    color: #7aadff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(122, 173, 255, 0.5);
    transition: color .15s, border-color .15s;
}
.loa-np-artist-link:hover {
    color: #cce4ff;
    border-bottom-color: rgba(204, 228, 255, 0.7);
}

.loa-player-btn-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.loa-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .18s, transform .12s;
    box-shadow: 0 3px 14px rgba(0,123,255,.45);
}
.loa-play-btn:hover { background: #0056b3; transform: scale(1.08); }
.loa-play-btn.playing { background: #28a745; box-shadow: 0 3px 14px rgba(40,167,69,.45); }
.loa-play-btn.playing:hover { background: #1e7e34; }

.loa-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7aadff;
    font-size: .85rem;
}
input[type=range].loa-vol {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: #1a3a6e;
    outline: none;
    cursor: pointer;
}
input[type=range].loa-vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}
input[type=range].loa-vol::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    cursor: pointer;
}

.loa-player-meta {
    font-size: .78rem;
    color: #4d7ab5;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.loa-player-stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; line-height: 1; }
.loa-player-stars .loa-star-empty { color: #2a4a7a; }
.loa-player-desc {
    color: #8ab4d8;
    font-size: .8rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.loa-player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.loa-player-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    color: #cce4ff;
    border: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
    letter-spacing: .03em;
    text-decoration: none;
    cursor: pointer;
}
.loa-player-tag:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}
.loa-player-next {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.06);
}
.loa-player-next-art {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.loa-player-next-label {
    font-size: .7rem;
    color: #4d7ab5;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.loa-player-next-title {
    color: #cce4ff;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loa-player-next-artist {
    color: #7aadff;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loa-page-header h1 {
    margin: 0 0 6px;
    color: #333;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.loa-page-header p { margin: 0; color: #666; font-size: .95rem; }

/* Cards */
.artist-card {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .15s;
    overflow: hidden;
}
.artist-card:hover {
    box-shadow: 0 4px 18px rgba(0, 123, 255, .18);
    transform: translateY(-2px);
}

.artist-card-header {
    background: linear-gradient(135deg, #0069d9, #007bff);
    color: #fff;
    padding: 11px 14px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.artist-card-header a {
    color: #fff;
    text-decoration: none;
    word-break: break-word;
    flex: 1;
}
.artist-card-header a:hover { text-decoration: underline; }

.artist-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .8rem;
    color: #f5c842;
    white-space: nowrap;
    flex-shrink: 0;
}
.artist-card-rating .artist-card-star-empty { color: rgba(255,255,255,.3); }
.artist-card-rating small { color: rgba(255,255,255,.65); font-size: .72rem; }

.artist-card-body {
    padding: 11px 14px;
    flex: 1;
    font-size: .875rem;
    color: #555;
    line-height: 1.55;
}
.artist-card-body p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Track list */
details.artist-tracklist { border-top: 1px solid #e9ecef; }

details.artist-tracklist summary {
    padding: 9px 14px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    color: #007bff;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f8f9fa;
    transition: background .15s;
}
details.artist-tracklist summary:hover { background: #e9f2ff; }
details.artist-tracklist summary::-webkit-details-marker { display: none; }
details.artist-tracklist summary::before {
    content: "\25B6";
    font-size: .65rem;
    transition: transform .2s;
    flex-shrink: 0;
}
details[open].artist-tracklist summary::before { transform: rotate(90deg); }

details.artist-tracklist ul {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    min-width: min(260px, 100%);
}

.track-columns {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 0;
    padding: 6px 14px 12px;
}

details.artist-tracklist li {
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid #f3f3f3;
    font-size: .82rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
details.artist-tracklist li:last-child { border-bottom: none; }

.track-thumb {
    width: 56px;
    height: 56px;
    min-width: 40px;
    min-height: 40px;
    max-width: 72px;
    max-height: 72px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    align-self: flex-start;
    background: #e9ecef;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
@media (max-width: 400px) {
    .track-thumb { display: none; }
}
.track-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(0,123,255,.35);
}

.track-meta { flex: 1; min-width: 0; }
.track-meta a { color: #333; text-decoration: none; display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta a:hover { color: #007bff; }

.track-stars { font-size: .8rem; line-height: 1; white-space: nowrap; color: #f5a623; letter-spacing: 1px; }
.track-stars .star-empty { color: #ccc; }

.track-tracker-type {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    background: #f0f4f8;
    color: #546e7a;
    border: 1px solid #cfd8dc;
    white-space: nowrap;
    letter-spacing: .04em;
    margin-top: 3px;
    text-transform: uppercase;
}

.track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}
.track-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 20px;
    background: #e7f0ff;
    color: #0056b3;
    border: 1px solid #b8d0f8;
    white-space: nowrap;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
}
.track-tag:hover {
    background: #cfe0ff;
    color: #003d80;
}

/* Search bar */
.loa-search-wrap {
    margin-bottom: 24px;
}

/* Artist external links */
.artist-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid #e9ecef;
}
.artist-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s, transform .12s;
    line-height: 1.4;
}
.artist-link:hover { opacity: .8; transform: translateY(-1px); text-decoration: none; }
.artist-link-demozoo  { background: #edf5ff; color: #0056b3; border-color: #b8d0f8; }
.artist-link-wikipedia{ background: #f5f5f5; color: #333;    border-color: #ccc; }
.artist-link-csdb     { background: #fff3cd; color: #856404; border-color: #ffc107; }
.artist-link-modarchive { background: #f0fff4; color: #155724; border-color: #c3e6cb; }
.artist-link-bandcamp { background: #e8f9e8; color: #1da0c3; border-color: #9ecfdd; }
.artist-link-soundcloud { background: #fff0e6; color: #d14800; border-color: #ffb38a; }
.artist-link-youtube  { background: #fff0f0; color: #c00;    border-color: #f5c6c6; }
.artist-link-pouet    { background: #f5eeff; color: #6f42c1; border-color: #d1b8f8; }
.artist-link-other    { background: #f8f9fa; color: #495057; border-color: #ced4da; }

/* ── Track Detail Modal (loa) ───────────────────────────────── */
#track-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(10, 20, 40, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#track-modal-backdrop.open { display: flex; }

#track-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0,0,0,.45);
    max-width: 540px;
    width: 100%;
    overflow: hidden;
    animation: tdm-in .18s ease;
}
@keyframes tdm-in {
    from { opacity: 0; transform: scale(.93); }
    to   { opacity: 1; transform: scale(1); }
}

.tdm-header {
    position: relative;
    background: linear-gradient(135deg, #0056b3, #007bff);
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
}
.tdm-art {
    width: 130px;
    min-height: 130px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.tdm-title-block {
    padding: 16px 44px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.tdm-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
    margin: 0;
}
.tdm-artist {
    color: #cce4ff;
    font-size: .9rem;
    margin: 0;
}
.tdm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,.18);
    border: none;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.tdm-close:hover { background: rgba(255,255,255,.35); }

.tdm-body {
    padding: 18px 20px;
}
.tdm-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .88rem;
    color: #444;
    align-items: flex-start;
}
.tdm-row:last-child { margin-bottom: 0; }
.tdm-label {
    font-weight: 700;
    color: #555;
    min-width: 90px;
    flex-shrink: 0;
}
.tdm-stars { color: #f5a623; letter-spacing: 1px; }
.tdm-stars .tdm-star-empty { color: #ccc; }
.tdm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.tdm-footer {
    border-top: 1px solid #e9ecef;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.tdm-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #28a745;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.tdm-request-btn:hover { background: #1e7e34; }
.tdm-request-btn:disabled {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
}
.tdm-request-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 2px;
    width: 100%;
}
.tdm-request-form.open { display: flex; }
.tdm-request-name {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 7px 11px;
    font-size: .88rem;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}
.tdm-request-name:focus { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0,123,255,.15); }
.tdm-request-submit {
    background: #28a745;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    align-self: flex-start;
}
.tdm-request-submit:hover { background: #1e7e34; }
.tdm-request-feedback {
    font-size: .83rem;
    padding: 6px 10px;
    border-radius: 5px;
    display: none;
}
.tdm-request-feedback.ok  { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.tdm-request-feedback.err { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.tdm-open-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s;
}
.tdm-open-btn:hover { background: #0056b3; color: #fff; text-decoration: none; }
.loa-search-form {
    display: flex;
    gap: 0;
    max-width: 560px;
    box-shadow: 0 3px 14px rgba(0,123,255,.18);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.loa-search-input {
    flex: 1;
    border: 2px solid #007bff;
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 11px 38px 11px 16px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: #222;
}
.loa-search-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,123,255,.22);
}
.loa-search-input::placeholder { color: #aaa; }
.loa-search-clear-btn {
    position: absolute;
    right: 112px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
    z-index: 1;
}
.loa-search-clear-btn:hover { color: #333; background: #f0f0f0; }
.loa-search-clear-btn.visible { display: flex; }
.loa-search-btn {
    border: 2px solid #007bff;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #007bff;
    color: #fff;
    padding: 11px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}
.loa-search-btn:hover { background: #0056b3; border-color: #0056b3; }
.loa-search-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: .85rem;
    color: #666;
}
.loa-search-clear a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}
.loa-search-clear a:hover { text-decoration: underline; }

/* Pagination */
.loa-pagination { margin: 22px 0; }
.loa-pagination .page-count-info {
    font-size: .85rem;
    color: #666;
    margin-bottom: 8px;
}

.loa-all-artists-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    color: #007bff;
    border: 1px solid #b8d0f8;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 18px;
    transition: background .15s, color .15s;
}
.loa-all-artists-btn:hover {
    background: #e7f0ff;
    color: #0056b3;
    text-decoration: none;
}

/* ── Page-load Spinner Overlay (loa) ─────────────────────────── */
#loa-spinner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 40, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 28px;
}
#loa-spinner-overlay.active { display: flex; }

.loa-spinner-ring {
    position: relative;
    width: 110px;
    height: 110px;
}
.loa-spinner-ring svg {
    width: 110px;
    height: 110px;
    animation: loa-spin 1.1s linear infinite;
    transform-origin: center;
}
@keyframes loa-spin { to { transform: rotate(360deg); } }

.loa-spinner-ring .loa-arc {
    fill: none;
    stroke: #007bff;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 210 80;
    animation: loa-arc-pulse 1.1s ease-in-out infinite;
}
@keyframes loa-arc-pulse {
    0%   { stroke-dasharray: 60 230;  stroke: #007bff; }
    45%  { stroke-dasharray: 220 70;  stroke: #66b2ff; }
    100% { stroke-dasharray: 60 230;  stroke: #007bff; }
}

.loa-spinner-ring .loa-dot {
    fill: #007bff;
    animation: loa-dot-pulse 1.1s ease-in-out infinite;
}
@keyframes loa-dot-pulse {
    0%, 100% { opacity: .6; r: 6; }
    50%       { opacity: 1;  r: 8; }
}

.loa-spinner-label {
    color: #e0ecff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: loa-label-fade 1.1s ease-in-out infinite;
}
@keyframes loa-label-fade {
    0%, 100% { opacity: .65; }
    50%       { opacity: 1; }
}

.loa-spinner-sub {
    color: #7aadff;
    font-size: .78rem;
    letter-spacing: .06em;
    margin-top: -18px;
    animation: loa-label-fade 1.1s ease-in-out infinite;
    animation-delay: .3s;
}

/* ── Episode list (iadata) ───────────────────────────────────── */
.ep-list-wrap {
	max-width: 900px;
	margin: 30px auto;
	padding: 0 16px 40px;
}
.ep-list-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
	padding: 18px 22px;
	background: linear-gradient(135deg, #0d2a50 0%, #1a4a8a 60%, #2a6abf 100%);
	border-radius: 12px;
	border-left: 5px solid #5aaaf8;
	letter-spacing: .01em;
	text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.ep-list-subtitle {
	color: #2a4a7f;
	font-size: .88rem;
	font-weight: 600;
	margin: 0 0 18px;
	padding: 8px 14px;
	background: #eaf2ff;
	border-left: 4px solid #3a7bd5;
	border-radius: 0 7px 7px 0;
}
.ep-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ep-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s, border-color .15s, transform .12s;
}
.ep-item:hover {
	box-shadow: 0 4px 18px rgba(0,80,200,.10);
	border-color: #3a7bd5;
	transform: translateY(-1px);
	text-decoration: none;
	color: inherit;
}
.ep-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 7px;
	background: #e9eef5;
}
.ep-thumb-placeholder {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 7px;
	background: #dce6f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: #8aaac8;
}
.ep-body {
	flex: 1;
	min-width: 0;
}
.ep-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
	flex-wrap: wrap;
}
.ep-num {
	font-size: .7rem;
	font-weight: 700;
	color: #fff;
	background: #3a7bd5;
	border-radius: 20px;
	padding: 1px 8px;
	white-space: nowrap;
}
.ep-date {
	font-size: .72rem;
	color: #8899aa;
	white-space: nowrap;
}
.ep-name {
	font-size: .95rem;
	font-weight: 700;
	color: #1a3a5c;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ep-desc {
	font-size: .78rem;
	color: #556;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-pagination,
.nv-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 16px 0;
	flex-wrap: wrap;
}
.ep-page-btn,
.nv-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #d0dce8;
	background: #fff;
	color: #1a3a5c;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .12s, border-color .12s;
}
.ep-page-btn:hover,
.nv-page-btn:hover {
	background: #eaf0fb;
	border-color: #3a7bd5;
	color: #1a3a5c;
	text-decoration: none;
}
.ep-page-btn.active,
.nv-page-btn.active {
	background: #3a7bd5;
	border-color: #3a7bd5;
	color: #fff;
	pointer-events: none;
}
.ep-page-btn.disabled,
.nv-page-btn.disabled {
	opacity: .4;
	pointer-events: none;
}
.ep-empty {
	text-align: center;
	padding: 40px 20px;
	color: #8899aa;
	font-size: 1rem;
}
.ep-podcast-box {
	display: flex; gap: 18px; align-items: flex-start;
	background: #eaf2ff;
	border: 1px solid #c0d6f0;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 0 22px;
}
.ep-podcast-box-img {
	width: 90px; height: 90px; border-radius: 9px;
	object-fit: cover; flex-shrink: 0;
	background: #d0e4f8;
}
.ep-podcast-box-body { flex: 1; min-width: 0; }
.ep-podcast-box-header {
	display: flex; align-items: center; gap: 8px;
	font-size: .8rem; font-weight: 700; color: #1a4a8a;
	margin-bottom: 8px;
}
.ep-podcast-box-text {
	font-size: .8rem; color: #2a3a5a; line-height: 1.55;
}
@media (max-width: 520px) {
	.ep-podcast-box { flex-direction: column; gap: 12px; }
	.ep-podcast-box-img { width: 72px; height: 72px; }
}
/* ----- Best-of notice ----- */
.ep-best-notice {
	font-size: .82rem; padding: 7px 14px; margin-bottom: 14px;
	border-left: 3px solid #3a7bd5; background: #f0f5ff;
	border-radius: 0 6px 6px 0; color: #1a3a5c; line-height: 1.4;
}
/* ----- Search ----- */
.ep-search-form {
	display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.ep-search-input {
	flex: 1; min-width: 180px;
	padding: 9px 14px; font-size: .9rem;
	border: 1px solid #d0dce8; border-radius: 8px;
	outline: none; transition: border-color .15s;
	color: #1a3a5c; background: #fff;
}
.ep-search-input:focus { border-color: #3a7bd5; box-shadow: 0 0 0 3px rgba(58,123,213,.15); }
.ep-search-btn {
	padding: 9px 18px; font-size: .88rem; font-weight: 700;
	border: none; border-radius: 8px;
	background: #3a7bd5; color: #fff; cursor: pointer;
	transition: background .12s;
}
.ep-search-btn:hover { background: #2a5fa5; }
.ep-search-clear {
	padding: 9px 14px; font-size: .88rem; font-weight: 600;
	border: 1px solid #d0dce8; border-radius: 8px;
	background: #fff; color: #667; cursor: pointer;
	transition: background .12s;
	text-decoration: none; display: inline-flex; align-items: center;
}
.ep-search-clear:hover { background: #f0f4fa; color: #1a3a5c; text-decoration: none; }
.ep-search-hint { font-size: .8rem; color: #3a7bd5; margin-bottom: 14px; }
.ep-suggested-tags {
	display: flex; flex-wrap: wrap; gap: 6px;
	align-items: center;
	margin: -10px 0 18px;
	font-size: .78rem; color: #7a90aa;
}
.ep-suggested-tags span {
	white-space: nowrap;
	background: #eaf2ff;
	border: 1px solid #c0d6f0;
	border-radius: 6px;
	padding: 2px 8px;
	color: #1a3a5c;
	font-weight: 600;
}
.ep-suggested-tag {
	display: inline-block; font-size: .72rem; font-weight: 700;
	padding: 3px 9px; border-radius: 20px;
	background: #dbeeff; color: #1a4a8a;
	border: 1px solid #a0c8f0; white-space: nowrap;
	text-decoration: none; letter-spacing: .03em;
	transition: background .12s, color .12s;
}
.ep-suggested-tag:hover { background: #b8dcff; color: #0d3068; text-decoration: none; }
@media (max-width: 520px) {
	.ep-thumb, .ep-thumb-placeholder { width: 56px; height: 56px; }
	.ep-name { font-size: .87rem; }
	.ep-desc { font-size: .74rem; }
}

/* ----- Queue button on each card ----- */
.ep-row { display: flex; flex-direction: column; gap: 0; }
.ep-row-main { display: flex; align-items: stretch; }
.ep-row-main .ep-item { flex: 1; min-width: 0; border-radius: 10px 0 0 0; }
.ep-row-main .ep-item:only-child { border-radius: 10px 10px 0 0; }
.ep-row-tags {
	padding: 5px 14px 7px;
	background: #f5f8ff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 10px 10px;
	display: flex; flex-wrap: wrap; gap: 4px;
	margin-right: 52px;
}
.ep-tag {
	display: inline-block; font-size: .65rem; font-weight: 700;
	padding: 2px 7px; border-radius: 20px;
	background: #dbeeff; color: #1a4a8a;
	border: 1px solid #a0c8f0; white-space: nowrap;
	text-decoration: none; letter-spacing: .03em;
	transition: background .12s, color .12s;
}
.ep-tag:hover { background: #b8dcff; color: #0d3068; text-decoration: none; }
.ep-queue-btn {
	flex-shrink: 0;
	width: 52px;
	border: 1px solid #e2e8f0;
	border-left: none;
	background: #f5f8ff;
	color: #3a7bd5;
	font-size: 1.15rem;
	cursor: pointer;
	border-radius: 0 10px 10px 0;
	transition: background .12s, color .12s;
	display: flex; align-items: center; justify-content: center;
}
.ep-queue-btn:hover { background: #dceeff; color: #1a3a5c; }
.ep-queue-btn.queued { background: #3a7bd5; color: #fff; border-color: #3a7bd5; }

/* ----- Bottom player (iadata) ----- */
body.has-player { padding-bottom: 88px; }
#ep-player {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
	box-shadow: 0 -4px 32px rgba(0,0,0,.25);
}
#ep-pl-queue-panel {
	background: #0a1628;
	border-top: 1px solid #1e3a5f;
	max-height: 260px; overflow-y: auto;
}
#ep-pl-queue-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 16px;
	color: #7ab4e8; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	border-bottom: 1px solid #1e3a5f;
	position: sticky; top: 0; background: #0a1628; z-index: 1;
}
#ep-pl-queue-clear {
	background: none; border: 1px solid #2a4a6a; color: #7ab4e8;
	border-radius: 5px; padding: 2px 10px; font-size: .72rem; cursor: pointer;
}
#ep-pl-queue-clear:hover { background: #1e3a5f; }
#ep-pl-queue-list { list-style: none; margin: 0; padding: 4px 0; }
.ep-pl-qi {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 16px; cursor: pointer; transition: background .1s;
}
.ep-pl-qi:hover { background: rgba(255,255,255,.05); }
.ep-pl-qi.active { background: rgba(58,123,213,.2); border-left: 3px solid #3a7bd5; }
.ep-pl-qi-img { width: 38px; height: 38px; object-fit: cover; border-radius: 5px; flex-shrink: 0; background: #1e3a5f; }
.ep-pl-qi-info { flex: 1; min-width: 0; }
.ep-pl-qi-title { font-size: .8rem; color: #cce4ff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-pl-qi-meta  { font-size: .7rem; color: #6a8aaa; }
.ep-pl-qi-rm {
	background: none; border: none; color: #6a8aaa; font-size: .85rem; cursor: pointer;
	padding: 3px 7px; border-radius: 4px; flex-shrink: 0;
}
.ep-pl-qi-rm:hover { color: #ff7070; background: rgba(255,60,60,.1); }

/* Player bar (iadata) */
#ep-pl-bar {
	background: linear-gradient(135deg, #0a1628 0%, #112240 100%);
	border-top: 1px solid #1e3a5f;
	display: flex; align-items: center; gap: 12px;
	padding: 8px 16px; min-height: 72px;
}
#ep-pl-cover { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #1e3a5f; }
#ep-pl-info  { min-width: 0; flex: 0 0 190px; }
#ep-pl-title   { font-size: .85rem; font-weight: 700; color: #cce4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ep-pl-meta    { font-size: .7rem; color: #6a8aaa; margin-top: 2px; }
#ep-pl-chapter { font-size: .65rem; color: #7ab4e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
#ep-pl-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ep-pl-btn {
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #cce4ff;
	border-radius: 7px; padding: 6px 10px; font-size: .76rem; font-weight: 700;
	cursor: pointer; transition: background .12s; white-space: nowrap;
}
.ep-pl-btn:hover { background: rgba(255,255,255,.2); }
.ep-pl-btn-play {
	width: 42px; height: 42px; border-radius: 50%;
	background: #3a7bd5; border: none; color: #fff; font-size: 1rem;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background .12s, transform .1s; flex-shrink: 0;
}
.ep-pl-btn-play:hover { background: #2a5fa5; transform: scale(1.06); }
#ep-pl-prog-wrap { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ep-pl-time { font-family: monospace; font-size: .72rem; color: #6a8aaa; white-space: nowrap; min-width: 32px; }
.ep-pl-time:last-child { text-align: right; }
#ep-pl-seek {
	flex: 1; -webkit-appearance: none; appearance: none;
	height: 4px; border-radius: 3px; background: rgba(255,255,255,.18); outline: none; cursor: pointer;
}
#ep-pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #3a7bd5; cursor: pointer; }
#ep-pl-seek::-moz-range-thumb     { width: 13px; height: 13px; border: none; border-radius: 50%; background: #3a7bd5; cursor: pointer; }
#ep-pl-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#ep-pl-vol {
	width: 72px; -webkit-appearance: none; appearance: none;
	height: 4px; border-radius: 3px; background: rgba(255,255,255,.18); outline: none; cursor: pointer;
}
#ep-pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #3a7bd5; cursor: pointer; }
#ep-pl-vol::-moz-range-thumb     { width: 12px; height: 12px; border: none; border-radius: 50%; background: #3a7bd5; cursor: pointer; }
@media (max-width: 700px) {
	#ep-pl-info { flex: 0 0 120px; }
	#ep-pl-vol, #ep-pl-meta { display: none; }
}
@media (max-width: 520px) {
	#ep-pl-bar { gap: 7px; padding: 6px 10px; min-height: 60px; }
	#ep-pl-cover { width: 40px; height: 40px; }
	#ep-pl-info { flex: 0 0 90px; }
	.ep-pl-btn { padding: 5px 7px; font-size: .7rem; }
	.ep-pl-btn-play { width: 36px; height: 36px; font-size: .88rem; }
}

/* ── Popover (music + playout) ───────────────────────────────── */
.popover {
    max-width: min(600px, 90vw);
    border: 1px solid #007bff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
/* Arrow hidden — popovers are centered, not anchored */
.popover .arrow {
    display: none !important;
}
.popover-header {
    background-color: #007bff;
    color: #fff;
    border-bottom: 1px solid #007bff;
    padding: 0.75rem;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
}
.popover-body {
    padding: 0.75rem;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 0;
    line-height: 1.5;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-color: #000 #fff;
    scrollbar-width: thin;
}
.popover-body::-webkit-scrollbar { width: 8px; }
.popover-body::-webkit-scrollbar-track { background: #fff; border-radius: 0 0 5px 0; }
.popover-body::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; border: 2px solid #fff; }
.popover-body img {
    display: block;
    border-radius: 4px;
}
.popover-body hr {
    border-color: #007bff;
    margin: 0.75rem 0;
}
/* Copy-to-clipboard footer */
.popover-copy-footer {
    padding: 0.4rem 0.75rem;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    text-align: right;
}
.popover-copy-btn {
    font-size: 11px;
    padding: 2px 10px;
    cursor: pointer;
}
/* Image popover */
.image-popover {
    width: fit-content;
    max-width: min(800px, 90vw);
}
.image-popover .popover-body {
    padding: 4px;
    max-height: none;
    overflow: hidden;
}
.image-popover .popover-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
/* Backdrop behind centered popovers */
#popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1059;
    cursor: pointer;
}

/* ── Playout — Station Clock ─────────────────────────────────── */
.station-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 8px;
}
.clock-container {
    position: relative;
    width: 120px;
    height: 120px;
    border: 4px solid #007bff;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2), inset 0 2px 8px rgba(255,255,255,0.8);
}
.clock-face { position: absolute; width: 100%; height: 100%; border-radius: 50%; }
.clock-numbers { position: absolute; width: 100%; height: 100%; font-size: 11px; font-weight: bold; color: #007bff; }
.clock-number { position: absolute; transform-origin: 50% 50%; text-align: center; width: 20px; height: 20px; line-height: 20px; }
.hour-hand   { position: absolute; top: 30%; left: 50%; width: 3px; height: 20%; background: #007bff; border-radius: 2px; transform-origin: 50% 100%; z-index: 3; }
.minute-hand { position: absolute; top: 20%; left: 50%; width: 2px; height: 30%; background: #28a745; border-radius: 2px; transform-origin: 50% 100%; z-index: 2; }
.second-hand { position: absolute; top: 15%; left: 50%; width: 1px; height: 35%; background: #dc3545; border-radius: 1px; transform-origin: 50% 100%; z-index: 4; }
.clock-center {
    position: absolute; top: 50%; left: 50%; width: 8px; height: 8px;
    background: #007bff; border-radius: 50%; transform: translate(-50%,-50%);
    z-index: 5; box-shadow: 0 0 4px rgba(0,123,255,0.5);
}
.clock-label { font-size: 14px; font-weight: 600; color: #007bff; text-align: center; }
.time-display {
    font-size: 18px; font-weight: 500; color: #495057; text-align: center;
    font-family: 'Courier New', monospace;
    background: #f8f9fa; padding: 8px 16px; border-radius: 6px;
    border: 1px solid #dee2e6; margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ── Playout — Clock/Live row layout ────────────────────────── */
.clock-live-row {
    display: flex; align-items: stretch; gap: 20px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.clock-panel { flex: 0 0 auto; min-width: 180px; }
.live-panel  { flex: 1 1 420px; min-width: 280px; }
.clock-panel .station-clock { margin-bottom: 0; }
.search-section .form-group { margin-bottom: 0 !important; }
.live-panel .live-track-row { margin-bottom: 0; }

/* ── Playout — Live track cards ──────────────────────────────── */
.live-track-row  { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.live-track-card {
    flex: 1 1 360px; min-width: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff; border-radius: 12px; padding: 16px;
    box-shadow: 0 4px 15px rgba(0,123,255,0.12);
}
.live-track-title  { margin: 0 0 10px; color: #007bff; font-size: 17px; font-weight: 700; }
.live-track-main   { display: flex; gap: 12px; align-items: center; }
.live-track-art    { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid #ced4da; background: #fff; }
.live-track-artist { color: #495057; font-size: 13px; }
.live-track-song   { color: #212529; font-size: 15px; font-weight: 600; margin-top: 2px; }
.track-popover-trigger { color: #007bff; cursor: pointer; text-decoration: underline; }
.track-popover-trigger:hover,
.track-popover-trigger:focus { color: #0056b3; text-decoration: none; }
.live-track-time  { color: #6c757d; font-size: 12px; margin-top: 2px; }
.live-track-list  { margin: 0; padding-left: 18px; }
.live-track-item  { margin-bottom: 8px; color: #343a40; }
.live-track-empty { color: #6c757d; font-style: italic; }
.live-track-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid #d7e3f1; }
.live-track-meta-row { font-size: 12px; color: #495057; margin-bottom: 4px; line-height: 1.35; }
.live-track-stars { color: #fd7e14; letter-spacing: 0.5px; }

@media (max-width: 768px) {
    .clock-live-row { flex-direction: column; }
    .clock-panel, .live-panel { min-width: 100%; }
}

/* ── Playout — Search section ────────────────────────────────── */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff; border-radius: 12px; padding: 20px;
    margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,123,255,0.15);
    position: relative; overflow: hidden;
}
.search-section::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #007bff, #6f42c1, #007bff);
    border-radius: 12px; z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}
@keyframes borderGlow { 0% { opacity: .6; } 100% { opacity: 1; } }
.search-section .form-group label {
    color: #007bff; font-weight: 600; font-size: 16px; margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
.search-section .form-control {
    border: 2px solid #007bff; border-radius: 8px; padding: 12px 16px; font-size: 15px;
    transition: all .2s ease; box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}
.search-section .form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25), 0 4px 12px rgba(0,123,255,.2);
}

/* ── Playout — Reload notice ─────────────────────────────────── */
.reload-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107; border-radius: 10px; padding: 15px 20px;
    margin: 20px 0; text-align: center;
    box-shadow: 0 3px 10px rgba(255,193,7,0.2);
    position: relative; overflow: hidden;
}
.reload-notice::before {
    content: ''; position: absolute; top: -2px; left: -100%; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }
.reload-notice-text   { color: #856404; font-weight: 600; font-size: 15px; margin: 0; text-shadow: 0 1px 2px rgba(255,255,255,0.8); }
.reload-notice-icon   { color: #ffc107; margin-right: 8px; font-size: 16px; }
.reload-notice-link   { color: #856404; font-weight: 700; text-decoration: underline; cursor: pointer; }
.reload-notice-link:hover,
.reload-notice-link:focus { color: #6f5200; text-decoration: none; }

/* ── Music page — Responsive web player ─────────────────────── */
@media (max-width: 768px) {
    #bottom-audio-player {
        padding: 8px !important;
    }
    #bottom-audio-player > div {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .player-image-section {
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
        order: -1 !important;
    }
    .player-row {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: space-between;
    }
    .player-info {
        flex: 1;
        min-width: 0;
    }
    .player-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .volume-controls {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    #player-title {
        font-size: 14px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #player-date {
        font-size: 11px !important;
        white-space: nowrap;
    }
    .player-buttons {
        display: flex;
        gap: 5px;
    }
    .player-buttons button {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 8px !important;
    }
    .staff-person-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .staff-image {
        margin-bottom: 10px !important;
    }
    .staff-content {
        width: 100% !important;
        min-width: unset !important;
    }
}
@media (max-width: 992px) and (min-width: 769px) {
    .staff-person-card {
        flex-wrap: wrap !important;
    }
    .staff-content {
        min-width: 250px !important;
    }
}

/* ── Music page — Modal scrollbar ───────────────────────────── */
.modal-content::-webkit-scrollbar {
    width: 12px;
}
.modal-content::-webkit-scrollbar-track {
    background: white;
    border-radius: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 6px;
    border: 2px solid white;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* ── News profile (profiles/news) ───────────────────────────── */
.nv-page { padding: 70px 0 60px; }

.nv-hero {
	background: linear-gradient(135deg, #0a1428 0%, #0d2050 60%, #0a1428 100%);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 32px rgba(0,0,0,.35);
	margin-bottom: 32px;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
}
.nv-hero-art {
	width: 220px;
	min-width: 220px;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}
@media (max-width: 575px) {
	.nv-hero-art { width: 100%; min-width: unset; max-height: 200px; }
}
.nv-hero-body {
	flex: 1;
	padding: 26px 28px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 0;
}
.nv-hero-label {
	color: #4d7ab5;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0;
}
.nv-hero-title {
	color: #fff;
	font-size: 1.7rem;
	font-weight: 800;
	margin: 0;
	line-height: 1.25;
	word-break: break-word;
}
.nv-hero-date {
	color: #7aadff;
	font-size: .88rem;
	margin: 0;
}
.nv-card {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}
.nv-card-header {
	background: linear-gradient(135deg, #0069d9, #007bff);
	color: #fff;
	padding: 11px 18px;
	font-weight: 700;
	font-size: .95rem;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	line-height: 1.3;
}
.nv-card-body { padding: 22px 24px; }
.nv-body {
	font-size: .97rem;
	color: #333;
	line-height: 1.75;
	margin: 0;
}
.nv-body p { margin: 0 0 1em; }
.nv-body p:last-child { margin-bottom: 0; }
.nv-body a { color: #0069d9; }
.nv-body a:hover { text-decoration: underline; }
.nv-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border-radius: 8px;
	border: 1px solid #d0dce8;
	background: #fff;
	color: #1a3a5c;
	font-size: .88rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .12s, border-color .12s;
}
.nv-back-btn:hover {
	background: #eaf0fb;
	border-color: #3a7bd5;
	color: #1a3a5c;
	text-decoration: none;
}
.nv-not-found {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}
.nv-not-found h2 { font-size: 1.3rem; color: #333; margin-bottom: 8px; }
.nv-list-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
	padding: 16px 22px;
	background: linear-gradient(135deg, #0d2a50 0%, #1a4a8a 60%, #2a6abf 100%);
	border-radius: 12px;
	border-left: 5px solid #5aaaf8;
	text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.nv-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nv-list-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s, border-color .15s, transform .12s;
}
.nv-list-item:hover {
	box-shadow: 0 4px 18px rgba(0,80,200,.10);
	border-color: #3a7bd5;
	transform: translateY(-1px);
	text-decoration: none;
	color: inherit;
}
.nv-list-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 7px;
	background: #dce6f0;
}
.nv-list-thumb-placeholder {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 7px;
	background: #dce6f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	color: #8aaac8;
}
.nv-list-body { flex: 1; min-width: 0; }
.nv-list-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
	flex-wrap: wrap;
}
.nv-list-date {
	font-size: .72rem;
	color: #8899aa;
	white-space: nowrap;
}
.nv-list-name {
	font-size: .95rem;
	font-weight: 700;
	color: #1a3a5c;
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.nv-list-snippet {
	font-size: .78rem;
	color: #556;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
