/* File: assets/css/style.css */

/* ---------------- RESET / BASE ---------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rm-primary: #2e7d32;
    --rm-bg: #050505;
    --rm-card-bg: #111;
    --rm-border: #222;
    --rm-text: #f3f3f3;
    --rm-muted: #8a8a8a;
}

/* -------- FRONT BODY -------- */
body.rm-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--rm-bg);
    color: var(--rm-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 90px;
    /* space for footer player */
}

a {
    color: var(--rm-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header (for any non-Bulma front layouts) */
.rm-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--rm-border);
    backdrop-filter: blur(10px);
}

.rm-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--rm-primary);
    object-fit: cover;
}

.rm-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.rm-nav a {
    margin-left: 12px;
    font-size: 14px;
    color: var(--rm-muted);
}

.rm-nav a:hover {
    color: var(--rm-text);
}

/* Main wrapper used by PJAX */
#rm-main {
    padding: 1.25rem 1rem 2rem;
}

/* ---------------- HERO + SEARCH ---------------- */

/* Hero with RadioMouse mascot theme */
.rm-hero {
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top left, #1e1e1e, #050505);
    border-bottom: 1px solid #111;
}

.rm-hero-mouse .hero-body {
    padding-top: 2.2rem;
    padding-bottom: 2.6rem;
}

.rm-hero-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rm-mouse-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.18);
    border: 1px solid rgba(118, 255, 145, 0.25);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #e5ffe9;
}

.rm-mouse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rm-mascot-chip-img {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    object-fit: contain;
}

.rm-mouse-chip-sub {
    font-size: 0.8rem;
    color: var(--rm-muted);
}

/* Hero mascot card (right column) */
.rm-mascot-hero-card {
    background: radial-gradient(circle at top, #181818, #090909);
    border-radius: 18px;
    border: 1px solid #252525;
    padding: 12px 12px 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rm-mascot-hero-img-wrap {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rm-mascot-img-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rm-mascot-fallback {
    font-size: 2.2rem;
}

.rm-mascot-hero-text {
    flex: 1;
    min-width: 0;
}

.rm-mascot-badge {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b2ffb9;
    margin-bottom: 3px;
}

.rm-mascot-copy {
    font-size: 0.8rem;
    color: var(--rm-muted);
}

/* Search copy refinements */
.rm-search-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--rm-muted);
    margin-bottom: 0.35rem;
}

.rm-search-help {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #9e9e9e;
}

.rm-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.rm-hero-sub {
    font-size: 0.94rem;
    color: var(--rm-muted);
    max-width: 32rem;
}

.rm-section-tight {
    padding-top: 1.75rem;
    padding-bottom: 4.5rem;
}

.rm-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
}

/* Search + autosuggest */
.rm-search-wrap {
    position: relative;
    max-width: 360px;
    width: 100%;
    z-index: 60;
}

.rm-search-input {
    background: #ffffff;
    border-color: #d7e3f0;
    color: #233651;
}

.rm-search-input::placeholder {
    color: #7c8ea6;
}

/* autosuggest dropdown */
.rm-suggest-box {
    position: absolute;
    isolation: isolate;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid #d9e6f2;
    box-shadow: 0 22px 44px rgba(29, 58, 91, 0.16);
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 99999;
}

.rm-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #233651;
    border-bottom: 1px solid #edf3f9;
    transition: background .16s ease, color .16s ease;
}

.rm-suggest-item:last-child {
    border-bottom: 0;
}

.rm-suggest-item:hover {
    background: #eef6ff;
    color: #0f5f9f;
    text-decoration: none;
}

.rm-suggest-name {
    font-weight: 700;
    color: inherit;
}

.rm-suggest-meta {
    font-size: 0.82rem;
    color: #6f849d;
    white-space: nowrap;
    text-align: right;
}

/* ---------------- STATION CARDS ---------------- */

.rm-grid,
.rm-home-grid,
.rm-browse-grid,
.rm-fav-grid {
    margin-top: 0.5rem;
}

.rm-card {
    position: relative;
    background: linear-gradient(135deg, #141414, #101010);
    border-radius: 16px;
    padding: 26px 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s;
    color: inherit;
}

.rm-card:hover {
    transform: translateY(-2px);
    border-color: rgba(118, 255, 145, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

/* anchor cards – we rely on JS/PJAX; keep SEO but no pointer flicker */
.rm-card[href] {
    cursor: default;
}

/* Home grid variant: vertical card with big thumb */
.rm-card-home {
    flex-direction: column;
    align-items: stretch;
}

/* Browse grid variant: compact vertical card */
.rm-card.rm-card-browse {
    flex-direction: column;
    /* vertical layout */
    align-items: stretch;
    padding: 0.55rem 0.6rem 0.6rem;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

/* Smaller thumb for browse cards */
.rm-card-browse .rm-card-thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
}

.rm-card-browse .rm-card-info {
    margin-top: 0.45rem;
}

.rm-card-browse .rm-card-title {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rm-card-browse .rm-card-meta-pill {
    margin-top: 0.30rem;
    gap: 4px;
}

.rm-card-browse .rm-pill.rm-pill-country {
    max-width: 65%;
}

.rm-card-browse .rm-play-btn {
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    font-size: 9px;
}

.rm-card-browse .rm-fav-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 24;
    font-size: 1rem;
}

/* Big thumbnail for home cards */
.rm-card-thumb {
    width: 100%;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #232323, #141414);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rm-card-thumb-big {
    height: 170px;
}

.rm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-thumb-placeholder {
    font-size: 1.6rem;
    color: var(--rm-muted);
}

/* Link wrapper */
.rm-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 1;
}

/* Info area */
.rm-card-info {
    flex: 1;
    min-width: 0;
    margin-top: 0.65rem;
}

.rm-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rm-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Pills row — wrap nicely, no cropping */
.rm-card-meta-pill {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Base pill style */
.rm-pill {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
}

/* Country pill: better contrast + ellipsis */
.rm-pill-country {
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
}

/* Bitrate pill: green accent */
.rm-pill-bitrate {
    background: rgba(46, 125, 50, 0.28);
    border: 1px solid rgba(129, 199, 132, 0.7);
    color: #d7ffd9;
}


.rm-pill-plays {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    background: rgba(30, 136, 229, 0.22);
    border: 1px solid rgba(144, 202, 249, 0.7);
    color: #e7f4ff;
}

.rm-pill-plays i {
    font-size: 0.72rem;
}

/* Special hero chips */
.rm-pill-hero {
    background: rgba(46, 125, 50, 0.25);
    border: 1px solid rgba(129, 199, 132, 0.7);
    color: #dcffde;
}

.rm-pill-hero-alt {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid rgba(144, 202, 249, 0.7);
    color: #e3f2fd;
}

/* small play button in cards */
.rm-play-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 24;
    border-radius: 999px;
    border: 0;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* small favorite button in cards */
.rm-fav-btn {
    border: 0;
    background: transparent;
    color: var(--rm-muted);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.rm-fav-btn.rm-fav-on,
.rm-fav-btn.is-fav {
    color: #ff4f7b;
}

.rm-fav-btn {
    position: relative;
    transition: color .18s ease, transform .18s ease, filter .18s ease;
}

.rm-fav-btn:hover {
    transform: scale(1.08);
}

.rm-fav-btn:active {
    transform: scale(0.92);
}

.rm-fav-btn.rm-fav-animate {
    animation: rmFavPop .55s cubic-bezier(.2,.9,.2,1);
    filter: drop-shadow(0 3px 10px rgba(255,79,123,.28));
}

.rm-fav-puff {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(.25);
    animation: rmFavPuff .7s ease-out forwards;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.98), var(--rm-puff, #ff4f7b) 58%, rgba(255,79,123,0) 72%);
}

@keyframes rmFavPop {
    0% { transform: scale(0.82); }
    35% { transform: scale(1.28); }
    62% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

@keyframes rmFavPuff {
    0% { opacity: .95; transform: translate3d(0, 0, 0) scale(.2); }
    28% { opacity: .95; }
    100% { opacity: 0; transform: translate3d(var(--tx, 0), var(--ty, 0), 0) scale(1.45); }
}

/* Page title */
.rm-page-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0.5rem 0 0.4rem;
}

.rm-muted {
    color: var(--rm-muted);
    font-size: 0.86rem;
}

/* ---------------- GLOBAL PLAYER + EQ ---------------- */

#rm-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border-top: 1px solid #222;
    z-index: 9999;
    font-size: 0.9rem;
}

#rm-player-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#rm-player-thumb img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

#rm-player-info {
    display: flex;
    flex-direction: column;
}

#rm-player-title a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

#rm-player-title a:hover {
    text-decoration: underline;
}

#rm-player-subtitle {
    font-size: 0.7rem;
    color: #aaa;
}

/* Rainbow EQ */
#rm-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 72px;
    height: 32px;
    margin-right: 10px;
}

.eq-bar {
    width: 6px;
    height: 5px;
    background: #0f0;
    transition: height 0.05s linear, background-color 0.1s linear;
}

/* Jumping mouse */
#rm-mouse {
    font-size: 1.3rem;
    margin-right: 10px;
    transition: transform 0.1s ease-out;
}

/* Player controls */
#rm-player-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

#rm-player-controls button {
    background: #222;
    border: 1px solid #333;
    padding: 4px 9px;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
}

#rm-player-volume {
    width: 80px;
    cursor: pointer;
}

/* ---------------- EQ SLIDERS (bass/mid/treble) ---------------- */
#rm-eq-sliders {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.rm-eq-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rm-eq-label {
    font-size: 0.65rem;
    color: var(--rm-muted);
    margin-bottom: 2px;
}

.rm-eq-slider {
    width: 70px;
}

/* Reset EQ button */
#rm-eq-reset {
    margin-left: 6px;
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* ---------------- STATION DETAIL HERO ---------------- */

.rm-station-hero {
    text-align: left;
    padding: 1.5rem 1.75rem;
    background: radial-gradient(circle at top left, #202020, #080808);
    border-radius: 18px;
    border: 1px solid #262626;
}

.rm-station-thumb {
    width: 220px;
    height: 220px;
    border-radius: 25px;
    overflow: hidden;
    margin: 0 auto 15px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rm-station-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-station-title {
    font-size: 1.9rem;
    margin: 0.5rem 0 0.8rem;
    font-weight: 650;
}

/* Big play / fav buttons – override small .rm-play-btn / .rm-fav-btn */
.rm-play-big.rm-play-btn {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 20px;
    font-weight: 700;
    background: #32cd32;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.rm-play-big.rm-play-btn:hover {
    background: #48e048;
}

.rm-fav-big.rm-fav-btn {
    position: static;
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 13px 24px;
    font-size: 20px;
    background: #ff3b7c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.rm-fav-big.rm-fav-btn.is-fav,
.rm-fav-big.rm-fav-btn:hover {
    background-color: #ff165f !important;
}

/* Station meta box */
.rm-station-meta-box {
    background: #0f0f0f;
    border-radius: 14px;
    border: 1px solid #242424;
    margin-top: 1.25rem;
}

/* ---------------- ADMIN SHELL ---------------- */

.rm-admin-body {
    background: #050505;
    color: #eee;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rm-admin-navbar {
    border-bottom: 1px solid #202020;
}

.rm-admin-shell {
    background: #101010;
    border-radius: 14px;
    border: 1px solid #272727;
    padding: 1.5rem 1.35rem;
}

.rm-admin-hello {
    font-size: 0.85rem;
    color: #ddd;
}

.rm-section-admin {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}

.rm-form .label {
    color: #ddd;
}

.rm-form .help,
.rm-form .help a {
    color: #aaa;
}

/* Broken rows highlight in maintenance */
.rm-row-broken {
    background: rgba(128, 0, 32, 0.25);
}

/* PJAX loading */
.rm-main-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ---------------- SITE FOOTER ---------------- */

.rm-site-footer,
body.rm-body footer {
    background: #050505;
    color: #a8a8a8;
    border-top: 1px solid #222;
    padding: 14px 16px;
    font-size: 0.85rem;
}

.rm-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-footer-mascot-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #101010;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #333;
}

.rm-mascot-footer {
    width: 92%;
    height: 92%;
    object-fit: contain;
}

.rm-mascot-footer-fallback {
    font-size: 1.2rem;
}

.rm-footer-brand-text {
    display: flex;
    flex-direction: column;
}

.rm-footer-title {
    font-weight: 600;
    color: #f0f0f0;
}

.rm-footer-subtitle {
    font-size: 0.72rem;
    color: #9a9a9a;
}

.rm-footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.rm-footer-links {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.rm-site-footer a,
body.rm-body footer a {
    color: #dddddd;
    text-decoration: none;
}

.rm-site-footer a:hover,
body.rm-body footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rm-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
    #rm-main {
        padding: 1rem 0.75rem 2.5rem;
    }

    #rm-player {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 8px 9px 10px;
        gap: 6px;
    }

    #rm-player-left {
        width: 100%;
    }

    #rm-eq {
        display: none;
    }

    #rm-mouse {
        display: none;
    }

    #rm-eq-sliders {
        display: none;
    }

    .rm-hero {
        flex-direction: column;
    }

    .rm-station-thumb {
        width: 180px;
        height: 180px;
    }

    /* Slight tweak for mobile so big thumbs don't feel cramped */
    .rm-card-thumb {
        height: 140px;
    }

    .rm-card-thumb-big {
        height: 150px;
    }
}

/* Remove underline from navbar links (hover + focus + active) */
.rm-navbar .navbar-item,
.rm-navbar .navbar-item:hover,
.rm-navbar .navbar-item:focus,
.rm-navbar .navbar-item:active {
    text-decoration: none !important;
    box-shadow: none !important;
}
/* PJAX neon progress bar */
#rm-pjax-progress {
    position: sticky;
    top: 72px;
    z-index: 45;
    height: 3px;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

#rm-pjax-progress.is-active {
    opacity: 1;
}

#rm-pjax-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, #00f0ff 0%, #3cff87 45%, #66f5ff 100%);
    box-shadow:
        0 0 8px rgba(0, 240, 255, 0.8),
        0 0 18px rgba(60, 255, 135, 0.55),
        0 0 26px rgba(102, 245, 255, 0.35);
    transition: width .18s ease, opacity .22s ease;
}

#rm-pjax-progress.is-complete #rm-pjax-progress-fill {
    opacity: .95;
}

@media (max-width: 900px) {
    #rm-pjax-progress {
        top: 64px;
    }
}



    100% {
        opacity: 0.1;
    }
}
/* REQUIRED for ellipsis to work inside flex */
#rm-player-left,
#rm-player-info,
#rm-player-title {
    min-width: 0 !important;
}

/* Title wrapper */
#rm-player-title {
    overflow: hidden;
    flex: 1 1 auto;
    max-width: 100%;
}

/* Actual title text clamped */
#rm-player-station-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 600;
}

/* =========================================================
   JANGO-INSPIRED LIGHT THEME OVERRIDES
========================================================= */
:root {
    --rm-primary: #0f5f9f;
    --rm-primary-2: #2b82c8;
    --rm-bg: #dfe6f3;
    --rm-card-bg: #f8fbff;
    --rm-border: #c7d4e6;
    --rm-text: #233142;
    --rm-muted: #63748a;
    --rm-soft: #eef3fb;
}
html { background: var(--rm-bg); }
body.rm-body {
    background: var(--rm-bg);
    color: var(--rm-text);
    padding-bottom: 98px;
}
a { color: #1b568c; }
a:hover { color: #0c467b; }
.rm-main-section.section { background: transparent; padding-top: 1.4rem; }
.rm-header, .rm-navbar.navbar.is-dark, .rm-navbar {
    background: #0f5f9f !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 10px rgba(15,95,159,.14);
}
.rm-navbar .navbar-item, .rm-navbar .rm-title, .rm-navbar .navbar-burger, .rm-navbar .navbar-link { color: #fff !important; }
.rm-navbar .navbar-item:hover, .rm-navbar .navbar-item.is-active, .rm-navbar .navbar-link:hover {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}
.rm-navbar-brand { min-height: 72px; }
.rm-title { font-weight: 800 !important; letter-spacing: -.02em; }
@media (max-width: 1023px) { .rm-navbar .navbar-menu { background: #174f82 !important; } }
.rm-site-footer {
    background: #0f5f9f;
    color: rgba(255,255,255,.92);
    border-top: 0;
}
.rm-site-footer a, .rm-footer-subtitle, .rm-footer-right span { color: rgba(255,255,255,.9) !important; }
.rm-footer-inner { max-width: 1240px; margin: 0 auto; }
.rm-card, .box, .card {
    background: var(--rm-card-bg);
    border: 1px solid var(--rm-border);
    box-shadow: 0 8px 18px rgba(69,92,122,.08);
}
.rm-card:hover { box-shadow: 0 12px 22px rgba(69,92,122,.13); }
.rm-pill, .tag {
    background: #edf4fc !important;
    border: 1px solid #d4e0ef;
    color: #45617c !important;
}
.rm-play-btn {
    background: #0f5f9f !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(15,95,159,.24);
}
.rm-play-btn:hover { background: #0c538b !important; }
.rm-fav-btn { color: #5f6e80 !important; }
.rm-fav-btn:hover { color: #0f5f9f !important; }
.rm-fav-btn.rm-fav-on,
.rm-fav-btn.is-fav {
    color: #ff4f7b !important;
}
.rm-hero, .hero.rm-hero, .rm-station-hero, .rm-feature-hero {
    background: linear-gradient(180deg, #d6cfe3 0%, #cabed9 100%) !important;
    border: 1px solid #c8bfd8 !important;
    box-shadow: 0 10px 24px rgba(104,98,126,.12) !important;
}
.rm-hero .title, .rm-hero-title, .rm-station-title, .rm-page-title, .title, h1, h2, h3 { color: #24354a; }
.rm-hero-sub, .subtitle, .rm-muted, .has-text-grey, .rm-search-help { color: #5e7088 !important; }
.input, .textarea, .select select {
    background: #fff;
    border: 1px solid #c8d6e8;
    color: #223449;
    box-shadow: none;
}
.input:focus, .textarea:focus, .select select:focus {
    border-color: #2b82c8;
    box-shadow: 0 0 0 3px rgba(43,130,200,.14);
}
.button.is-primary, .button.rm-btn-primary {
    background: linear-gradient(180deg, #4da5e3 0%, #2b82c8 100%);
    border: 0;
    color: #fff;
}
.button.is-primary:hover { filter: brightness(.96); }
.rm-home-grid .column, .rm-browse-grid .column { display: flex; }
.rm-card-home, .rm-card-browse { width: 100%; }
.rm-card-thumb, .rm-card-thumb-big { background: #e8eef7 !important; }
.rm-thumb-placeholder {
    background: linear-gradient(180deg, #1c6eb1 0%, #4ba1dd 100%);
    color: #fff;
}
.rm-browse-az-link, .rm-pagination a, .rm-pagination span {
    background: #f8fbff; border-color: #c9d6e6; color: #45617c;
}
.rm-browse-az-link:hover, .rm-pagination a:hover { color: #0f5f9f; border-color: #2b82c8; }
.rm-browse-az-link.is-active, .rm-pagination .is-current {
    background: #0f5f9f; border-color: #0f5f9f; color: #fff;
}
#rm-player {
    background: rgba(255,255,255,.96) !important;
    border-top: 1px solid #cad7e8 !important;
    box-shadow: 0 -6px 20px rgba(85,103,128,.12);
    backdrop-filter: blur(8px);
}
#rm-player-title a, #rm-player-subtitle, #rm-player-left, #rm-player-controls button, #rm-player-station-link { color: #223449 !important; }
#rm-player-playpause {
    background: #0f5f9f !important;
    color: #fff !important;
    border-radius: 999px;
}
#rm-player-stop, #rm-eq-reset {
    background: #eef4fb !important;
    color: #24415b !important;
    border: 1px solid #d0ddeb !important;
}
#rm-player-volume, #rm-bass-gain, #rm-mid-gain, #rm-treble-gain { accent-color: #0f5f9f; }
#rm-eq .eq-bar { background: #ff2ba6 !important; }
#rm-mouse { display:none !important; }
.rm-section-tight { padding-top: 1.2rem; padding-bottom: 1.2rem; }
.rm-station-panel, .rm-station-meta-box, .rm-related-card, .rm-song-card, .rm-artist-card {
    background: #f8fbff !important;
    border: 1px solid #c7d4e6 !important;
    color: #223449 !important;
}


/* ===== March 2026 refinement: lighter footer + smaller premium cards ===== */
.rm-site-footer,
body.rm-body footer {
    background: transparent !important;
    color: #50637b !important;
    border-top: 1px solid #d7e1ef !important;
    box-shadow: none !important;
}

.rm-footer-inner {
    max-width: 1240px;
    padding: .15rem 0;
}

.rm-footer-mascot-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #eef4fb !important;
    border: 1px solid #d7e1ef !important;
}

.rm-footer-title {
    color: #20364d !important;
}

.rm-site-footer a,
.rm-footer-subtitle,
.rm-footer-right span {
    color: #61758d !important;
}

.rm-site-footer a:hover {
    color: #0f5f9f !important;
}

.rm-card,
.rm-card.rm-card-browse,
.rm-card.rm-card-home {
    border-radius: 16px !important;
    overflow: hidden;
}

.rm-card.rm-card-browse,
.rm-card.rm-card-home {
    padding: .7rem !important;
}

.rm-card-thumb,
.rm-card-thumb-big,
.rm-card-browse .rm-card-thumb,
.rm-card-home .rm-card-thumb.rm-card-thumb-big {
    height: 132px !important;
    aspect-ratio: 16 / 10;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f7faff 0%, #edf3fb 100%) !important;
    border: 1px solid #d7e1ef;
}

.rm-card-thumb img,
.rm-card-thumb-big img,
.rm-card-browse .rm-card-thumb img,
.rm-card-home .rm-card-thumb.rm-card-thumb-big img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
    padding: .45rem;
    background: transparent;
}

.rm-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    font-weight: 800;
}

.rm-card-title {
    font-size: .95rem;
    line-height: 1.25;
}

.rm-card-meta-pill {
    gap: 5px;
}

.rm-pill {
    font-size: .67rem;
    padding: 4px 8px;
}

.rm-play-btn {
    width: 28px !important;
    height: 28px !important;
    top: 10px !important;
    left: 10px !important;
    font-size: 11px !important;
}

/* Fix: .rm-card-link had z-index:1 which created a stacking context,
   causing the thumbnail to paint over the play button sibling.
   Removing the z-index restores correct paint order. */
.rm-card-home .rm-play-btn,
.rm-card-browse .rm-play-btn {
    z-index: 30 !important;
}

.rm-card-link {
    z-index: auto !important;
}

@media (min-width: 1024px) {
    .rm-home-grid > .column.is-one-fifth-desktop {
        display: flex;
    }
}

@media (max-width: 768px) {
    .rm-card-thumb,
    .rm-card-thumb-big,
    .rm-card-browse .rm-card-thumb,
    .rm-card-home .rm-card-thumb.rm-card-thumb-big {
        height: 96px !important;
    }
    .rm-card.rm-card-browse,
    .rm-card.rm-card-home {
        padding: .5rem !important;
        border-radius: 14px !important;
    }
    .rm-card-title {
        font-size: .8rem;
    }
    .rm-pill {
        font-size: .6rem;
        padding: 3px 6px;
    }
}


/* ---------------- FAVORITES PAGE ---------------- */
.rm-favorites-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.rm-favorites-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.rm-kicker-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 12px;
    background: linear-gradient(135deg, #23c55e, #109d4a);
    box-shadow: 0 0 0 6px rgba(35, 197, 94, .12);
}

.rm-favorites-title {
    margin: 0 0 .35rem 0 !important;
    color: #23354c;
    letter-spacing: -.02em;
}

.rm-favorites-subtitle {
    margin: 0;
    color: #66768e;
    font-size: 1rem;
}

.rm-favorites-grid {
    align-items: stretch;
}

.rm-favorites-grid > .column {
    display: flex;
}

.rm-card-favorites {
    width: 100%;
    min-height: 100%;
}

.rm-empty-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
    margin-top: 1rem;
    padding: 1.25rem 1.3rem;
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(141, 160, 187, .28);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(80, 104, 136, .08);
}

.rm-empty-title {
    color: #21344a;
    font-size: 1.1rem;
    font-weight: 800;
}

.rm-empty-copy {
    color: #6a7890;
}

.rm-empty-btn {
    border: 0;
    border-radius: 999px;
    background: #0f5f9f;
    color: #fff;
    padding-left: 1rem;
    padding-right: 1rem;
}

.rm-empty-btn:hover {
    color: #fff;
    background: #0c528a;
}

@media (max-width: 768px) {
    .rm-favorites-head {
        align-items: flex-start;
    }

    .rm-favorites-title {
        font-size: 1.65rem !important;
    }

    .rm-favorites-subtitle {
        font-size: .94rem;
    }
}


/* Favorites modal + toast */
.rm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
}

.rm-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 31, 50, .42);
    backdrop-filter: blur(6px);
}

.rm-modal-card {
    position: relative;
    width: min(420px, calc(100vw - 2rem));
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,253,.98));
    border: 1px solid rgba(143, 166, 194, .34);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(36, 63, 96, .22);
    padding: 1.5rem 1.4rem 1.25rem;
    text-align: center;
    transform: translateY(20px) scale(.96);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .24s ease;
}

.rm-modal.show .rm-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.rm-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe6ee, #fff2f5);
    color: #d61f5f;
    font-size: 1.6rem;
    box-shadow: inset 0 0 0 1px rgba(214, 31, 95, .1);
}

.rm-modal-card h3 {
    margin: 0 0 .45rem;
    color: #20354b;
    font-size: 1.28rem;
    font-weight: 800;
}

.rm-modal-card p {
    margin: 0 0 1.15rem;
    color: #66768e;
    line-height: 1.55;
}

.rm-modal-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
}

.rm-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: .82rem 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.rm-btn:hover {
    transform: translateY(-1px);
}

.rm-btn-light {
    background: #edf3fa;
    color: #28425d;
    box-shadow: inset 0 0 0 1px rgba(111, 135, 168, .18);
}

.rm-btn-danger {
    background: linear-gradient(135deg, #ef476f, #d61f5f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(214, 31, 95, .22);
}

.rm-toast {
    position: fixed;
    right: 18px;
    bottom: 106px;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.rm-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.rm-toast-inner {
    min-width: 320px;
    max-width: min(460px, calc(100vw - 30px));
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background: rgba(17, 36, 61, .96);
    color: #fff;
    border-radius: 18px;
    padding: .9rem 1rem;
    box-shadow: 0 20px 44px rgba(12, 26, 47, .34);
    border: 1px solid rgba(138, 170, 208, .18);
}

.rm-toast-copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.rm-toast-copy strong {
    font-size: .98rem;
}

.rm-toast-copy span {
    font-size: .86rem;
    color: rgba(255,255,255,.8);
}

.rm-toast-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.rm-toast-undo,
.rm-toast-close {
    appearance: none;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.rm-toast-undo {
    background: linear-gradient(135deg, #48b8ff, #0f5f9f);
    color: #fff;
    padding: .62rem .95rem;
}

.rm-toast-close {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .rm-modal-actions {
        flex-direction: column;
    }

    .rm-toast {
        left: 12px;
        right: 12px;
        bottom: 100px;
    }

    .rm-toast-inner {
        min-width: 0;
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .rm-toast-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


/* ---------------- ADMIN LIGHT REDESIGN OVERRIDES ---------------- */
body.rm-admin-body {
    background: linear-gradient(180deg, #eef5fc 0%, #e8f0f8 100%);
    color: #17324d;
}
body.rm-admin-body .title,
body.rm-admin-body .subtitle,
body.rm-admin-body .label,
body.rm-admin-body strong,
body.rm-admin-body .content,
body.rm-admin-body .table {
    color: #17324d;
}
body.rm-admin-body .box,
body.rm-admin-body .card,
body.rm-admin-body .message,
body.rm-admin-body .notification,
body.rm-admin-body .modal-card {
    border: 1px solid #d8e5f2;
    box-shadow: 0 14px 34px rgba(24, 56, 90, 0.08);
}
body.rm-admin-body .card,
body.rm-admin-body .message,
body.rm-admin-body .notification,
body.rm-admin-body .table-container,
body.rm-admin-body .rm-admin-panel,
body.rm-admin-body .rm-admin-kpi,
body.rm-admin-body .rm-admin-slab {
    border-radius: 20px;
}
body.rm-admin-body .input,
body.rm-admin-body .textarea,
body.rm-admin-body .select select,
body.rm-admin-body .file-cta {
    background: #fff;
    border-color: #cfdeec;
    color: #1d3650;
    box-shadow: none;
    border-radius: 14px;
}
body.rm-admin-body .input:focus,
body.rm-admin-body .textarea:focus,
body.rm-admin-body .select select:focus {
    border-color: #1f77c6;
    box-shadow: 0 0 0 0.18em rgba(31, 119, 198, 0.14);
}
body.rm-admin-body .help,
body.rm-admin-body .content p,
body.rm-admin-body .content li,
body.rm-admin-body .table td,
body.rm-admin-body .table th {
    color: #698098;
}
body.rm-admin-body .button {
    border-radius: 999px;
    font-weight: 700;
    padding-left: 1rem;
    padding-right: 1rem;
}
body.rm-admin-body .button.is-primary,
body.rm-admin-body .button.is-link {
    background: linear-gradient(180deg, #1f77c6, #0f62a9);
    color: #fff;
    border-color: transparent;
}
body.rm-admin-body .button.is-primary:hover,
body.rm-admin-body .button.is-link:hover {
    background: linear-gradient(180deg, #2682d5, #115b99);
}
body.rm-admin-body .button.is-light {
    background: #f6faff;
    border: 1px solid #d7e6f4;
    color: #24476b;
}
body.rm-admin-body .button.is-danger.is-light,
body.rm-admin-body .button.is-warning.is-light,
body.rm-admin-body .button.is-info.is-light,
body.rm-admin-body .button.is-success.is-light {
    background: #fff;
}
body.rm-admin-body .tag {
    border-radius: 999px;
    font-weight: 700;
}
body.rm-admin-body .table {
    background: transparent;
}
body.rm-admin-body .table thead th {
    color: #42627f;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-color: #d8e5f2;
}
body.rm-admin-body .table td {
    border-color: #e4edf6;
}
body.rm-admin-body .table.is-striped tbody tr:not(.is-selected):nth-child(even) {
    background: rgba(238, 245, 252, 0.9);
}
body.rm-admin-body .table.is-hoverable tbody tr:hover {
    background: #f3f8fe !important;
}
body.rm-admin-body .pagination-link,
body.rm-admin-body .pagination-next,
body.rm-admin-body .pagination-previous {
    border-radius: 999px;
    border-color: #d4e2f0;
    color: #24476b;
}
body.rm-admin-body .pagination-link.is-current {
    background: #0f62a9;
    border-color: #0f62a9;
}
body.rm-admin-body .navbar-divider {
    background: #e4edf6;
}
body.rm-admin-body .rm-admin-dashboard .rm-admin-hero-left p,
body.rm-admin-body .rm-admin-dashboard .rm-admin-chart-sub,
body.rm-admin-body .rm-admin-dashboard .rm-admin-card-sub,
body.rm-admin-body .rm-admin-dashboard .rm-recent-meta {
    color: #6d8097 !important;
}
body.rm-admin-body .rm-admin-dashboard .rm-admin-card,
body.rm-admin-body .rm-admin-dashboard .rm-admin-chart,
body.rm-admin-body .rm-admin-dashboard .rm-admin-list-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
    border: 1px solid #d8e5f2 !important;
    box-shadow: 0 16px 34px rgba(24, 56, 90, 0.08) !important;
}
body.rm-admin-body .rm-admin-dashboard .rm-admin-kpi {
    box-shadow: 0 18px 38px rgba(24, 56, 90, 0.16) !important;
}
body.rm-admin-body .message.is-success .message-body,
body.rm-admin-body .notification.is-success {
    background: #eefaf4;
    color: #22603d;
    border-color: #cfe9da;
}
body.rm-admin-body .message.is-danger .message-body,
body.rm-admin-body .notification.is-danger {
    background: #fff2f2;
    color: #9b2c2c;
    border-color: #f1cccc;
}
body.rm-admin-body .message.is-warning .message-body,
body.rm-admin-body .notification.is-warning {
    background: #fff8e8;
    color: #8a5a10;
    border-color: #f4dfaf;
}
body.rm-admin-body .tabs a {
    color: #56718d;
    font-weight: 700;
}
body.rm-admin-body .tabs li.is-active a {
    border-bottom-color: #0f62a9;
    color: #0f62a9;
}


.rm-mouse-choice-ribbon {
  position: absolute !important;
  top: 10px;
  left: 42px;
  z-index: 35 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 56px);
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff7d6, #ffe08a);
  color: #7a5200;
  border: 1px solid rgba(216, 168, 36, .38);
  box-shadow: 0 10px 20px rgba(122, 82, 0, .12);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}
.rm-mouse-choice-ribbon.is-compact {
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 9px;
  font-size: 10px;
}
.rm-mouse-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}
.rm-mouse-choice-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-card.rm-card-browse .rm-mouse-choice-ribbon {
  z-index: 35 !important;
  left: 34px;
  top: 6px;
  max-width: calc(100% - 44px);
  padding: 5px 8px;
  font-size: 10px;
}
.rm-related-card .rm-mouse-choice-ribbon,
.rm-hero-pick .rm-mouse-choice-ribbon {
  left: 8px;
  top: 8px;
}
@media (max-width: 768px) {
  .rm-mouse-choice-ribbon {
    font-size: 10px;
    padding: 5px 8px;
  }
}

/* Now Playing badge */
.rm-now-playing-target,
.rm-card,
.rm-hero-pick,
.rm-rail-card,
.rm-related-card,
.rm-profile-card,
.rm-station-cover-box {
  position: relative;
}

.rm-now-playing-ribbon {
  position: absolute;
  left: 10px;
  right: auto;
  top: auto;
  bottom: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #17b45f, #0f8d4a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 141, 74, .28);
  pointer-events: none;
}

.rm-now-playing-ribbon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dfffe8;
  box-shadow: 0 0 0 0 rgba(223,255,232,.75);
  animation: rmNowPlayingPulse 1.4s ease-out infinite;
}

.rm-now-playing-active {
  box-shadow: 0 0 0 2px rgba(23, 180, 95, .18), 0 18px 40px rgba(10, 92, 48, .12);
}

.rm-card .rm-now-playing-ribbon,
.rm-related-card .rm-now-playing-ribbon,
.rm-rail-card .rm-now-playing-ribbon,
.rm-profile-card .rm-now-playing-ribbon,
.rm-station-cover-box .rm-now-playing-ribbon {
  top: auto;
  bottom: 10px;
}

@keyframes rmNowPlayingPulse {
  0% { box-shadow: 0 0 0 0 rgba(223,255,232,.7); }
  70% { box-shadow: 0 0 0 10px rgba(223,255,232,0); }
  100% { box-shadow: 0 0 0 0 rgba(223,255,232,0); }
}


/* ---------------- DIRECTORY / TAXONOMY PREMIUM PAGES ---------------- */
.rm-directory-wrap {
    padding-top: 1.2rem;
    padding-bottom: 2.4rem;
}
.rm-directory-hero {
    position: relative;
    margin-bottom: 1rem;
    padding: 1.3rem 1.3rem 1.1rem;
    border: 1px solid #d9e3f1;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 58%, #e7f0fb 100%);
    box-shadow: 0 22px 48px rgba(20, 41, 74, 0.08);
    overflow: hidden;
}
.rm-directory-hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.16), rgba(37,99,235,0));
}
.rm-directory-hero::after {
    content: "";
    position: absolute;
    left: -30px;
    bottom: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.10), rgba(34,197,94,0));
}
.rm-directory-hero > * { position: relative; z-index: 1; }
.rm-directory-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .55rem;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    color: #315577;
}
.rm-directory-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a, #0f766e);
    box-shadow: 0 0 12px rgba(34,197,94,.55);
}
.rm-directory-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
    color: #16324f;
}
.rm-directory-desc {
    margin: .7rem 0 0;
    max-width: 760px;
    font-size: .97rem;
    line-height: 1.72;
    color: #57708a;
}
.rm-directory-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}
.rm-directory-stat {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .56rem .82rem;
    border-radius: 999px;
    border: 1px solid #d4dfef;
    background: rgba(255,255,255,.82);
    color: #315577;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(20,41,74,.05);
}
.rm-directory-stat strong { color: #16324f; }
.rm-directory-az {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.35rem 0 0.9rem;
}
.rm-directory-az-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.rm-featured-page .rm-alpha-chip {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #b9c9df;
    background: #ffffff;
    color: #39526d;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(20, 41, 74, 0.04);
    transition: .18s ease;
    min-width: 34px;
    text-align: center;
}
.rm-featured-page .rm-alpha-chip:hover {
    border-color: #7ea7de;
    background: #f2f7ff;
    color: #17324c;
    transform: translateY(-1px);
}
.rm-featured-page .rm-alpha-chip.is-active {
    background: linear-gradient(135deg, #1f6bb3, #2f89dd);
    border-color: #1f6bb3;
    color: #fff;
    box-shadow: 0 10px 22px rgba(31,107,179,.22);
}
.rm-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.rm-directory-search {
    width: 100%;
    max-width: 460px;
}
.rm-directory-search-row {
    display: flex;
}
.rm-directory-input {
    background: #fff;
    border: 1px solid #cddbee;
    color: #17324c;
    box-shadow: 0 10px 24px rgba(20,41,74,.05);
}
.rm-directory-input::placeholder { color: #7a8ea7; }
.rm-directory-input:focus {
    border-color: #4b89d6;
    box-shadow: 0 0 0 1px rgba(75,137,214,.22), 0 10px 24px rgba(20,41,74,.05);
}
.rm-directory-button {
    border: 1px solid #1f6bb3;
    background: linear-gradient(135deg, #1f6bb3, #2f89dd);
    color: #fff;
    font-weight: 700;
}
.rm-directory-button:hover { color: #fff; }
.rm-directory-count {
    font-size: 0.9rem;
    color: #5d738b;
    font-weight: 600;
}
.rm-country-flag,
.rm-country-flag-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #cfe0f3;
    background: linear-gradient(135deg, #f8fbff, #edf5ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.rm-country-flag-emoji {
    font-size: 1.55rem;
    line-height: 1;
}
@media (max-width: 768px) {
    .rm-directory-wrap { padding-top: 1rem; }
    .rm-directory-hero { padding: 1.05rem 1rem .95rem; border-radius: 20px; }
    .rm-directory-toolbar { align-items: stretch; }
    .rm-directory-search { max-width: none; }
}
.mouse-choice-link {
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

.mouse-choice-link:hover {
    color: #ff6a00;
    transform: translateY(-1px);
}
