/**
 * Flamenet Radio — Stylesheet
 * Flamenet 2001 portal aesthetic.
 *
 * Link colours are pinned with :link/:visited throughout. The theme's bare
 * `a:visited` rule is specificity (0,1,1) and would otherwise outrank a plain
 * single-class rule, repainting light-on-dark controls muted purple.
 */

.fnrd-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #000;
}

/* Flash messages */
.fnrd-msg-ok  { padding: 6px 10px; margin-bottom: 10px; background: #EEFFEE; border: 1px solid #006600; color: #006600; }
.fnrd-msg-err { padding: 6px 10px; margin-bottom: 10px; background: #FFEEEE; border: 1px solid #CC0000; color: #CC0000; }

/* ============================================================
   INLINE PLAYER BAR
   Sticks to the top of the listing so it stays reachable while
   scrolling several hundred stations.
   ============================================================ */
.fnrd-player {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #596EBB 0%, #1835A0 50%, #13297D 100%);
    border: 1px solid #002266;
    padding: 5px 8px;
    margin-bottom: 8px;
    color: #FFFFFF;
    flex-wrap: wrap;
}

.fnrd-player[hidden] { display: none; }

.fnrd-player-onair {
    font-size: 15px;
    line-height: 1;
    color: #FFCC00;
    flex: 0 0 auto;
}

.fnrd-player-onair.fnrd-playing { animation: fnrd-pulse 1.4s ease-in-out infinite; }
.fnrd-player-onair.fnrd-error   { color: #FF9C9C; }
.fnrd-player-onair.fnrd-loading { color: #FFE9A0; }

@keyframes fnrd-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    .fnrd-player-onair.fnrd-playing { animation: none; }
}

.fnrd-player-meta {
    flex: 1 1 160px;
    min-width: 0;
    line-height: 1.2;
}

.fnrd-player-name {
    display: block;
    font-weight: bold;
    font-size: 12px;
    color: #FFFFFF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fnrd-player-genre {
    display: block;
    font-size: 10px;
    color: #C9D4F2;
}

.fnrd-player-audio {
    flex: 2 1 260px;
    min-width: 180px;
    height: 32px;
}

.fnrd-player-stop {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #D83D3D 0%, #CC0000 50%, #A30000 100%);
    border: 1px solid #990000;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 10px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.fnrd-player-stop:hover { background: #990000; color: #FFCC00; }

/* Row currently on air */
.fnrd-row-playing td { background: #FFF7DC !important; }
.fnrd-row-playing .fnrd-name { color: #CC6600; }

/* Search */
.fnrd-search {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.fnrd-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #7F9DB9;
    padding: 3px 6px;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
}

.fnrd-btn {
    background: linear-gradient(180deg, #596EBB 0%, #1835A0 50%, #13297D 100%);
    color: #FFFFFF;
    border: 1px solid #002266;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.fnrd-btn:hover { background: linear-gradient(180deg, #CC0000 0%, #8B0000 100%); color: #FFCC00; }

/* Genre chips */
.fnrd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.fnrd-chip,
.fnrd-chip:link,
.fnrd-chip:visited {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border: 1px solid #7F9DB9;
    background: #EEF2FF;
    color: #003399;
    text-decoration: none;
    border-radius: 2px;
}

.fnrd-chip:hover,
.fnrd-chip:focus,
.fnrd-chip:visited:hover { background: #FFF7DC; border-color: #CC6600; color: #CC6600; }

.fnrd-chip-on,
.fnrd-chip-on:link,
.fnrd-chip-on:visited {
    background: #003399;
    color: #FFFFFF;
    border-color: #003399;
}

.fnrd-chip-on:hover,
.fnrd-chip-on:focus,
.fnrd-chip-on:visited:hover { background: #003399; color: #FFFFFF; }

.fnrd-chip-n { font-weight: normal; opacity: 0.75; }

/* Result count strip */
.fnrd-count {
    background: #EEF2FF;
    border: 1px solid #7F9DB9;
    padding: 3px 6px;
    color: #003399;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 8px;
}

/* Station table */
.fnrd-table {
    width: 100%;
    border: 1px solid #7F9DB9;
    border-collapse: collapse;
    background: #FFFFFF;
    margin-bottom: 10px;
}

.fnrd-table th {
    background: #EEF2FF;
    color: #003399;
    font-size: 10px;
    text-align: left;
    padding: 3px 6px;
    border-bottom: 1px solid #7F9DB9;
}

.fnrd-table td {
    padding: 3px 6px;
    border-bottom: 1px dotted #C8D4E8;
    vertical-align: middle;
}

.fnrd-row-even { background: #FFFFFF; }
.fnrd-row-odd  { background: #F7F9FE; }

.fnrd-col-play  { width: 26px; text-align: center; }
.fnrd-col-genre { width: 30%; color: #445577; font-size: 10px; }
.fnrd-col-plays { width: 60px; text-align: right; color: #445577; font-size: 10px; }
.fnrd-col-fav   { width: 26px; text-align: center; }

/* Play button */
.fnrd-play,
.fnrd-play:link,
.fnrd-play:visited {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #003399;
    color: #FFCC00;
    border: 1px solid #002266;
    text-decoration: none;
    font-size: 10px;
    border-radius: 2px;
}

.fnrd-play:hover,
.fnrd-play:focus,
.fnrd-play:visited:hover { background: #CC0000; color: #FFCC00; border-color: #880000; }

/* Plain-http stations still get a play button, but muted — the pop-up
   explains why they open as a direct link instead of playing inline. */
.fnrd-play-ext,
.fnrd-play-ext:link,
.fnrd-play-ext:visited { background: #7A869B; border-color: #5C6678; }

.fnrd-name { font-weight: bold; color: #000; }

.fnrd-badge-http {
    display: inline-block;
    margin-left: 5px;
    padding: 0 4px;
    background: #E3E7EF;
    border: 1px solid #B3BDD0;
    color: #5C6678;
    font-size: 9px;
    border-radius: 2px;
}

.fnrd-home,
.fnrd-home:link,
.fnrd-home:visited { margin-left: 6px; font-size: 9px; color: #0266A8; text-decoration: underline; }

.fnrd-home:hover, .fnrd-home:focus, .fnrd-home:visited:hover { color: #CC0000; }

/* Favourite star */
.fnrd-inline { display: inline; margin: 0; }

.fnrd-fav {
    background: none;
    border: 0;
    cursor: pointer;
    color: #94A2BC;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.fnrd-fav:hover { color: #CC6600; }
.fnrd-fav-on    { color: #E8A200; }

.fnrd-empty { font-style: italic; color: #666; padding: 8px 0; }
.fnrd-back  { margin-bottom: 8px; }

/* Most Tuned In */
.fnrd-top {
    border: 1px solid #7F9DB9;
    background: #FFFFFF;
    margin: 12px 0;
}

.fnrd-top-head {
    background: #003399;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 11px;
    padding: 3px 6px;
}

.fnrd-top-list {
    margin: 0;
    padding: 6px 6px 6px 26px;
}

.fnrd-top-list li { font-size: 11px; margin-bottom: 2px; }

.fnrd-top-n { color: #445577; font-size: 10px; margin-left: 6px; }

.fnrd-pagination { margin: 8px 0; font-size: 11px; }
.fnrd-page-cur   { font-weight: bold; margin: 0 3px; }
.fnrd-page-link  { margin: 0 3px; }

.fnrd-credit { margin-top: 10px; font-size: 10px; color: #666; }

/* ============================================================
   POP-UP PLAYER WINDOW
   Standalone document — the theme stylesheet is not loaded here.
   ============================================================ */
body.fnrd-popup {
    margin: 0;
    padding: 0;
    background: #004E82 linear-gradient(180deg, #0A5C92 0%, #004E82 60%, #00314F 100%);
    font-family: Tahoma, Geneva, Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #000;
}

.fnrd-pop-title {
    background: #003399;
    color: #FFCC00;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-bottom: 1px solid #00224E;
}

.fnrd-pop-body {
    margin: 8px;
    padding: 10px;
    background: #FFFFFF;
    border: 1px solid #7F9DB9;
}

.fnrd-pop-station {
    font-size: 14px;
    font-weight: bold;
    color: #003399;
    line-height: 1.2;
    margin-bottom: 2px;
    word-wrap: break-word;
}

.fnrd-pop-genre {
    font-size: 10px;
    color: #445577;
    font-style: italic;
    margin-bottom: 8px;
}

.fnrd-pop-audio { width: 100%; display: block; margin-bottom: 6px; }

.fnrd-pop-status {
    font-size: 10px;
    color: #445577;
    margin-bottom: 6px;
}

.fnrd-pop-status.fnrd-on  { color: #006600; font-weight: bold; }
.fnrd-pop-status.fnrd-err { color: #CC0000; font-weight: bold; }

.fnrd-pop-note { font-size: 10px; color: #555; margin: 0 0 6px 0; }

.fnrd-pop-link,
.fnrd-pop-link:link,
.fnrd-pop-link:visited {
    display: inline-block;
    background: #003399;
    color: #FFFFFF;
    padding: 3px 10px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #002266;
}

.fnrd-pop-link:hover, .fnrd-pop-link:focus { background: #CC0000; color: #FFCC00; }

.fnrd-pop-links {
    border-top: 1px dotted #7F9DB9;
    padding-top: 6px;
    font-size: 10px;
}

.fnrd-pop-links a,
.fnrd-pop-links a:link,
.fnrd-pop-links a:visited { color: #0266A8; text-decoration: underline; margin-right: 10px; }

.fnrd-pop-links a:hover, .fnrd-pop-links a:focus { color: #CC0000; }
