/**
 * Modern Ghana Radio Style Public Stylesheet & Station Profiles
 * Complete editorial broadcast design matching radio.modernghana.com + modern profile card view
 *
 * @package Savika_News_Radio_Directory
 */

/* Main Directory Wrapper */
.mg-radio-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 10px 40px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #333333;
    box-sizing: border-box;
    background: #ffffff;
    line-height: 1.4;
}

.mg-radio-container *,
.mg-radio-container *::before,
.mg-radio-container *::after {
    box-sizing: border-box;
}

/* Master Directory Layout */
.mg-layout-row {
    width: 100%;
}

.content-middle.content-full-width {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    min-width: 0;
}

/* ========================================================= */
/* 1. LEFT SIDEBAR (.content-left)                           */
/* ========================================================= */
.content-left-wrapper {
    width: 210px;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .content-left-wrapper {
        width: 100%;
    }
}

.content-left {
    margin-bottom: 22px;
}

.content-left h3 {
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #b30000;
    text-transform: uppercase;
    border-bottom: 2px solid #b30000;
    letter-spacing: 0.5px;
}

.content-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-left ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-left ul li a {
    display: block;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.content-left ul li a:hover,
.content-left ul li a.is-playing,
.content-left ul li.selected a {
    background: #006400;
    color: #ffffff;
}

.content-left-cta {
    margin-bottom: 22px;
}

.mg-apply-sidebar-btn {
    display: block;
    text-align: center;
    background: #b30000;
    color: #ffffff !important;
    padding: 9px 12px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.15s;
}

.mg-apply-sidebar-btn:hover {
    background: #800000;
}

/* ========================================================= */
/* 2. CENTER CONSOLE (.content-middle)                       */
/* ========================================================= */
.content-middle {
    flex-grow: 1;
    min-width: 0;
}

/* Black Master Console */
.fm-master-console {
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
    padding: 12px 16px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Row 1: FM1 (Flag + Title + Stars) */
.fm1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.mg-flag-badge {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.fm-name h1 {
    color: #fcd206;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .fm-name h1 {
        font-size: 18px;
    }
}

.rates {
    text-align: right;
}

.rating-star-left {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 3px;
}

.rating-star-left li .mg-star {
    color: #fcd206;
    font-style: normal;
    font-size: 16px;
    display: inline-block;
}

/* Row 2: FM2 (.fm-info) */
.fm-info {
    background: #1c1c1c;
    border: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
    border-radius: 2px;
}

@media (max-width: 600px) {
    .fm-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.fm-info .location {
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-info .phone {
    color: #bbbbbb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-info .website {
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Row 3: FM2 (.fm-play-push) */
.fm-play-push {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

@media (max-width: 640px) {
    .fm-play-push {
        flex-direction: column;
        align-items: stretch;
    }
}

.fm-controls-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#mg-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mg-live-dot {
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    animation: mg-dot-pulse 1.3s infinite ease-in-out;
}

@keyframes mg-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.35); }
}

.mg-ctrl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #272727;
    border: 1px solid #444444;
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.15s;
}

.mg-ctrl-btn:hover {
    background: #3a3a3a;
    border-color: #666;
}

.mg-icon-symbol {
    font-size: 10px;
    color: #fcd206;
}

.fm-audio-side {
    flex-grow: 1;
}

.fm-audio-side audio {
    width: 100%;
    height: 34px;
    outline: none;
}

/* ========================================================= */
/* 3. SEARCH BAR (#searchbar)                                */
/* ========================================================= */
.search-rating {
    margin-bottom: 8px;
}

#searchbar {
    background-color: #333333;
    padding: 4px 6px;
    position: relative;
    border-radius: 3px;
}

#findradio {
    width: 100%;
    height: 34px;
    border: none !important;
    background: #f1f1f1 !important;
    padding: 0 36px 0 12px !important;
    font-size: 12px !important;
    color: #333333 !important;
    border-radius: 2px !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#findradio:focus {
    background: #ffffff !important;
}

.mg-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* ========================================================= */
/* 4. QUICK STATION PILLS (.fm-country & .fm-settings)       */
/* ========================================================= */
.fm-country,
.fm-settings {
    margin-bottom: 5px;
}

.fm-country ul,
.fm-settings ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fm-country ul li,
.fm-settings ul li {
    margin: 0;
    padding: 0;
}

.fm-country ul li a,
.fm-settings ul li a {
    display: inline-block;
    padding: 3px 8px;
    background: #006400;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s;
    letter-spacing: 0.3px;
}

.fm-country ul li a:hover,
.fm-settings ul li a:hover,
.fm-country ul li a.selected,
.fm-settings ul li a.selected,
.fm-country ul li a.is-playing,
.fm-settings ul li a.is-playing {
    background: #990000;
    color: #ffffff;
}

/* ========================================================= */
/* 5. VIEW TOOLBAR (GRID vs TABLE & SCOPE FILTER)            */
/* ========================================================= */
.mg-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.mg-view-tabs {
    display: flex;
    gap: 6px;
}

.mg-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.mg-view-btn:hover {
    background: #f1f5f9;
}

.mg-view-btn.active {
    background: #006537;
    color: #ffffff;
    border-color: #006537;
}

.mg-scope-chips {
    display: flex;
    gap: 5px;
}

.mg-scope-chip {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.mg-scope-chip:hover {
    background: #e2e8f0;
}

.mg-scope-chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ========================================================= */
/* 6. MODERN STATION PROFILES GRID (MATCHING SCREENSHOTS)    */
/* ========================================================= */
.snrd-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.snrd-profile-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.snrd-profile-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.snrd-profile-card-item.selected,
.snrd-profile-card-item.is-playing {
    border: 2px solid #006537;
    box-shadow: 0 0 0 2px rgba(0, 101, 55, 0.2);
}

/* Top Cover */
.snrd-card-top-cover {
    height: 75px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #006537 100%);
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.snrd-card-status-pill {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

.snrd-mini-beacon {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.snrd-card-freq-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Circular Logo Avatar */
.snrd-card-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}

.snrd-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snrd-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snrd-card-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #006537;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Body Content */
.snrd-card-content {
    padding: 10px 14px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.snrd-card-title {
    margin: 4px 0 2px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.snrd-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s;
}

.snrd-card-title a:hover {
    color: #006537;
}

.snrd-card-location {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.snrd-card-tags {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.snrd-tag-genre {
    background: #f1f5f9;
    color: #334155;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.snrd-tag-scope {
    background: #e6f4ea;
    color: #137333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.snrd-card-excerpt {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    height: 32px;
    overflow: hidden;
    margin: 0 0 12px 0;
}

.snrd-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
}

.snrd-btn-listen {
    flex: 1;
    background: #006537;
    color: #ffffff;
    border: none;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.snrd-btn-listen:hover {
    background: #004d2a;
}

.snrd-btn-profile {
    flex: 1;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s;
    white-space: nowrap;
}

.snrd-btn-profile:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ========================================================= */
/* 7. CLASSIC DIRECTORY TABLE VIEW                           */
/* ========================================================= */
.radio-feature {
    margin-bottom: 18px;
}

.feature-grid-row {
    display: flex;
    gap: 14px;
}

@media (max-width: 640px) {
    .feature-grid-row {
        flex-direction: column;
    }
}

.inside-ghana,
.outside-ghana {
    flex: 1;
    min-width: 0;
}

.inside-ghana h3,
.outside-ghana h3 {
    font-size: 12px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 4px 0;
    padding-bottom: 3px;
    border-bottom: 2px solid #b30000;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mg-featured-scroll-list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 135px;
    overflow-y: scroll;
    border: 1px solid #cccccc;
    background: #ffffff;
}

.mg-featured-scroll-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eeeeee;
}

.mg-featured-scroll-list li.bg-dark-gray {
    background: #f5f5f5;
}

.mg-featured-scroll-list li a {
    display: block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.mg-featured-scroll-list li a:hover,
.mg-featured-scroll-list li a.is-playing,
.mg-featured-scroll-list li.selected a {
    background: #006400 !important;
    color: #ffffff !important;
}

.stations-tab {
    margin-bottom: 25px;
}

.panel.with-nav-tabs.panel-primary {
    border: 1px solid #cccccc;
    border-radius: 4px;
    background: #ffffff;
}

.panel-primary .panel-heading {
    background: #b30000;
    padding: 6px 8px 0;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.nav-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.nav-tabs li {
    margin: 0;
    padding: 0;
}

.nav-tabs li a.mg-tab-link {
    display: block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    transition: background 0.15s;
}

.nav-tabs li a.mg-tab-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-tabs li.active a.mg-tab-link,
.nav-tabs li a.mg-tab-link.active {
    background: #ffffff;
    color: #000000 !important;
}

.panel-body {
    padding: 10px;
    background: #ffffff;
}

.stations-scroll {
    max-height: 420px;
    overflow-y: auto;
    display: flex;
}

@media (max-width: 650px) {
    .stations-scroll {
        flex-direction: column;
    }
}

.mg-table-col {
    flex: 1;
    min-width: 0;
    border-right: 1px solid #eeeeee;
}

.mg-table-col:last-child {
    border-right: none;
}

.mg-stations-column-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mg-station-row {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f2f2f2;
}

.mg-station-row a {
    display: block;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s;
}

.mg-station-row a:hover {
    background: #f0f0f0;
}

.mg-station-row.selected,
.mg-station-row.selected a,
.mg-station-row.is-playing,
.mg-station-row.is-playing a {
    background: #006400 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.mg-empty-alert {
    padding: 24px;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #666666;
    font-size: 13px;
    border-radius: 4px;
    margin-top: 15px;
}

/* ========================================================= */
/* 8. SINGLE STATION PROFILE (MATCHING IMAGES 1 & 2)         */
/* ========================================================= */
.snrd-station-single-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px 10px 40px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #333333;
    line-height: 1.5;
}

.snrd-breadcrumbs-bar {
    font-size: 12px;
    margin-bottom: 15px;
    color: #666666;
}

.snrd-breadcrumbs-bar a {
    color: #b30000;
    text-decoration: none;
    font-weight: 600;
}

.snrd-bread-sep {
    margin: 0 6px;
    color: #999999;
}

.snrd-bread-current {
    color: #333333;
    font-weight: bold;
}

/* Master Station Profile Card (Image 1 & 2 Style) */
.snrd-pro-card-master {
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.snrd-pro-card-cover {
    height: 140px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #065f46 100%);
    position: relative;
    padding: 14px 18px;
    display: flex;
    justify-content: flex-end;
}

.snrd-cover-top-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.snrd-badge-live {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.snrd-badge-dial {
    background: rgba(252, 210, 6, 0.2);
    border: 1px solid rgba(252, 210, 6, 0.4);
    color: #fcd206;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
}

.snrd-pro-card-body {
    padding: 0 24px 24px;
}

.snrd-avatar-container {
    margin-top: -46px;
    margin-bottom: 12px;
}

.snrd-avatar-frame {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 4px solid #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snrd-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snrd-avatar-default {
    width: 100%;
    height: 100%;
    background: #006537;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snrd-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.snrd-station-name {
    color: #fcd206;
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .snrd-station-name {
        font-size: 20px;
    }
}

.snrd-subtitle-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 16px;
}

.snrd-sub-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.snrd-sub-sep {
    color: #475569;
}

.snrd-genre-tag {
    background: #1e293b;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 3 Metric Pill Stats Bar */
.snrd-metrics-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.snrd-metric-pill {
    flex: 1;
    min-width: 160px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-icon {
    font-size: 18px;
}

.metric-icon.star {
    color: #fcd206;
}

.metric-icon.scope,
.metric-icon.clock {
    color: #38bdf8;
    display: flex;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-info strong {
    font-size: 13px;
    color: #ffffff;
}

.metric-info span {
    font-size: 11px;
    color: #94a3b8;
}

/* Live Audio Player Deck */
.snrd-profile-audio-deck {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.deck-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.deck-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.snrd-beacon-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: mg-dot-pulse 1.3s infinite ease-in-out;
}

.deck-player-wrap audio {
    width: 100%;
    height: 38px;
    outline: none;
}

.deck-zeno-hint {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
}

.deck-zeno-hint a {
    color: #fcd206;
    text-decoration: none;
    font-weight: bold;
}

/* Action & Share Bar */
.snrd-action-share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.snrd-main-actions {
    display: flex;
    gap: 8px;
}

.snrd-btn-act {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.snrd-btn-act.website {
    background: #006537;
    color: #ffffff !important;
}

.snrd-btn-act.directory {
    background: #334155;
    color: #ffffff !important;
}

.snrd-share-pill-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.share-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: bold;
}

.share-btn {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000000; border: 1px solid #444; }

/* Lower Two Columns */
.snrd-two-col-layout {
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

@media (max-width: 860px) {
    .snrd-two-col-layout {
        flex-direction: column;
    }
}

.snrd-main-column {
    flex-grow: 1;
    min-width: 0;
}

.snrd-about-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

.snrd-section-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #b30000;
    padding-bottom: 6px;
}

.snrd-article-body {
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.snrd-side-column {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .snrd-side-column {
        width: 100%;
    }
}

.snrd-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
}

.snrd-sidebar-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 800;
    color: #b30000;
    text-transform: uppercase;
    border-bottom: 2px solid #b30000;
    padding-bottom: 4px;
}

.snrd-sidebar-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: inherit !important;
}

.snrd-sidebar-item:hover .snrd-sidebar-station-title {
    color: #006537;
}

.snrd-sidebar-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snrd-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snrd-mini-placeholder {
    font-size: 9px;
    font-weight: bold;
    color: #64748b;
}

.snrd-sidebar-meta {
    flex-grow: 1;
    min-width: 0;
}

.snrd-sidebar-station-title {
    margin: 0 0 2px 0;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snrd-sidebar-loc {
    font-size: 11px;
    color: #64748b;
}

.snrd-sidebar-cta {
    margin-top: 14px;
}

.snrd-btn-all-stations {
    display: block;
    text-align: center;
    background: #006537;
    color: #ffffff !important;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none !important;
}

/* ========================================================= */
/* 9. APPLICATION FORM STYLING                               */
/* ========================================================= */
.snrd-portal-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px 15px 40px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.snrd-form-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #b30000;
    padding-bottom: 12px;
}

.snrd-form-title {
    font-size: 24px;
    font-weight: 900;
    color: #111111;
    margin: 0 0 6px 0;
    text-transform: uppercase;
}

.snrd-form-desc {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.snrd-notice {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.snrd-notice-success {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #1b5e20;
}

.snrd-notice-error {
    background: #ffebee;
    border: 1px solid #e57373;
    color: #b71c1c;
}

.snrd-pro-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 4px;
}

.snrd-input-group {
    margin-bottom: 18px;
}

.snrd-input-row {
    display: flex;
    gap: 15px;
}

@media (max-width: 600px) {
    .snrd-input-row {
        flex-direction: column;
        gap: 0;
    }
}

.snrd-input-group.col {
    flex: 1;
}

.snrd-input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.snrd-req {
    color: #b30000;
}

.snrd-form-input,
.snrd-form-select,
.snrd-form-textarea {
    width: 100% !important;
    padding: 9px 12px !important;
    border: 1px solid #cccccc !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    color: #333333 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.snrd-form-input:focus,
.snrd-form-select:focus,
.snrd-form-textarea:focus {
    border-color: #b30000 !important;
    outline: none !important;
}

.snrd-btn-submit {
    background: #b30000;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.15s;
}

.snrd-btn-submit:hover {
    background: #800000;
}

.snrd-btn-solid {
    display: inline-block;
    background: #006400;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none !important;
    text-transform: uppercase;
}

/* ========================================================= */
/* 9B. BOTTOM SHOWCASE: FEATURED & TOP STATIONS              */
/* ========================================================= */
.mg-bottom-featured-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.mg-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 860px) {
    .mg-bottom-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.mg-bottom-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
}

.mg-bottom-card-title {
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #b30000;
    text-transform: uppercase;
    border-bottom: 2px solid #b30000;
    letter-spacing: 0.5px;
}

.mg-bottom-station-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mg-bottom-station-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf2f7;
}

.mg-bottom-station-list li:last-child {
    border-bottom: none;
}

.mg-bottom-station-list li a {
    display: block;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.mg-bottom-station-list li a:hover,
.mg-bottom-station-list li a.is-playing {
    background: #006400;
    color: #ffffff;
    border-radius: 3px;
    padding-left: 8px;
}

.mg-bottom-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff5f5;
    border-color: #fed7d7;
}

.mg-bottom-cta-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* ========================================================= */
/* 10. ADVANCED MOBILE, TABLET & ORIENTATION OPTIMIZATIONS   */
/* ========================================================= */

/* Prevent horizontal viewport overflow on all devices */
.mg-radio-container,
.snrd-station-single-wrap,
.snrd-portal-wrap {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Tablet & Landscape Phones (max-width: 860px) */
@media (max-width: 860px) {
    .mg-radio-container {
        padding: 8px 8px 30px;
    }
    .content-left-wrapper {
        width: 100%;
        order: 2; /* Place sidebar below center console so player is first on mobile */
        margin-top: 15px;
    }
    .content-middle {
        order: 1; /* Player and directory come first */
    }
    .snrd-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

/* Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
    .mg-radio-container {
        padding: 6px 6px 25px;
    }

    /* Master Player Console on Mobile */
    .fm-master-console {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    .fm1 {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .fm-name {
        width: 100%;
        gap: 8px;
    }
    .fm-name h1 {
        font-size: 16px;
        line-height: 1.25;
        word-break: break-word;
    }
    .rates {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    .rating-star-left li .mg-star {
        font-size: 14px;
    }

    /* FM2 Info Bar */
    .fm-info {
        padding: 8px 10px;
        font-size: 11px;
    }
    .fm-info .location,
    .fm-info .phone,
    .fm-info .website {
        font-size: 11px;
    }

    /* Playback Controls */
    .fm-play-push {
        gap: 10px;
    }
    .fm-controls-side {
        width: 100%;
        justify-content: space-between;
    }
    .mg-ctrl-btn {
        padding: 7px 14px;
        font-size: 11px;
        border-radius: 4px;
    }
    .fm-audio-side audio {
        height: 38px;
    }

    /* Search Bar */
    #searchbar {
        padding: 4px 6px;
    }
    #findradio {
        height: 38px !important;
        font-size: 13px !important;
    }

    /* View Toolbar */
    .mg-view-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px;
    }
    .mg-view-tabs {
        width: 100%;
    }
    .mg-view-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }
    .mg-scope-chips {
        width: 100%;
        justify-content: space-between;
    }
    .mg-scope-chip {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        font-size: 10px;
    }
}

/* Compact 2-Column Grid on Portrait Phones (max-width: 480px) */
@media (max-width: 480px) {
    .snrd-profiles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .snrd-profile-card-item {
        border-radius: 10px;
    }
    .snrd-card-top-cover {
        height: 52px;
        padding: 5px 6px;
    }
    .snrd-card-status-pill {
        font-size: 8px;
        padding: 2px 5px;
        gap: 3px;
    }
    .snrd-mini-beacon {
        width: 5px;
        height: 5px;
    }
    .snrd-card-freq-pill {
        font-size: 8px;
        padding: 2px 5px;
    }
    .snrd-card-avatar-wrap {
        margin-top: -24px;
    }
    .snrd-card-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }
    .snrd-card-content {
        padding: 6px 6px 10px;
    }
    .snrd-card-title {
        font-size: 11px;
        min-height: 28px;
        margin: 2px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .snrd-card-location {
        font-size: 9px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .snrd-card-tags {
        display: none; /* Keep cards compact and sleek on mobile */
    }
    .snrd-card-excerpt {
        display: none; /* Hide excerpt on mobile for clean music card aesthetic */
    }
    .snrd-card-actions {
        flex-direction: column;
        gap: 4px;
    }
    .snrd-btn-listen {
        padding: 6px 6px;
        font-size: 10px;
        border-radius: 4px;
    }
    .snrd-btn-profile {
        padding: 5px 6px;
        font-size: 10px;
        border-radius: 4px;
    }

    /* Table View on Mobile */
    .stations-scroll {
        max-height: 340px;
    }
    .mg-station-row a {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Orientation Handling: Landscape Phones (max-height: 500px and orientation: landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .fm-master-console {
        padding: 8px 12px;
    }
    .fm1 {
        margin-bottom: 6px;
    }
    .fm-info {
        margin-bottom: 6px;
        padding: 4px 8px;
    }
    .snrd-profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 10px !important;
    }
    .snrd-card-top-cover {
        height: 50px;
    }
    .snrd-card-avatar {
        width: 46px;
        height: 46px;
    }
    .snrd-card-avatar-wrap {
        margin-top: -23px;
    }
    .snrd-card-title {
        font-size: 11px;
    }
}
