/* ============================================
   Radio.co.ke - Custom Styles
   ============================================ */

/* ---------- CSS Variables / Theme ---------- */
:root,
[data-bs-theme="light"] {
    --radio-canvas: #f9f9f9;
    --radio-sidebar: #e5e7eb;
    --radio-text-color: #222222;
    --radio-text-primary: #171717;
    --radio-text-secondary: #4b5563;
    --radio-text-interactive: #2563eb;
    --radio-bg-primary: #001E4F;
    --radio-border: #d1d5db;
    --radio-gradient-from: #d6d6d6;
    --radio-gradient-via: #f4f4f4;
    --radio-gradient-to: #d6d6d6;
}

[data-bs-theme="dark"] {
    --radio-canvas: #171717;
    --radio-sidebar: #1f2937;
    --radio-text-color: #f1f1f1;
    --radio-text-primary: #f1f1f1;
    --radio-text-secondary: #9ca3af;
    --radio-text-interactive: #3b82f6;
    --radio-bg-primary: #001E4F;
    --radio-border: #6b7280;
    --radio-gradient-from: #18202c;
    --radio-gradient-via: #1f2937;
    --radio-gradient-to: #18202c;
}

/* ---------- Font Metric Fallback (reduces CLS from FOUT) ---------- */
@font-face {
    font-family: 'Montserrat-fallback';
    src: local('Arial');
    size-adjust: 113.2%;
    ascent-override: 85%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* ---------- Base ---------- */
body {
    font-family: "Montserrat", "Montserrat-fallback", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: var(--radio-canvas);
    color: var(--radio-text-primary);
    padding-top: 3rem; /* navbar offset */
    padding-bottom: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.fs-7{font-size: 14px;}
.fs-8{font-size: 12px;}
.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- SVG Icons ---------- */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

a {
    color: var(--radio-text-interactive);
    font-weight: 500;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Form inputs dark mode */
textarea,
input:not([type="range"]) {
    background-color: #f1f1f1;
}
[data-bs-theme="dark"] textarea,
[data-bs-theme="dark"] input:not([type="range"]) {
    background-color: #2a2e37;
}
.text-nav{
    color: var(--radio-text-color);
}
/* ---------- Navbar ---------- */
.radio-navbar {
    background-color: var(--radio-sidebar);
    z-index: 1030;
    height: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}
[data-bs-theme="dark"] .radio-navbar {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.15) !important;
}

.radio-brand-box {
    background-color: var(--radio-bg-primary);
    height: 3rem;
    text-decoration: none;
}
.radio-brand-box:hover {
    text-decoration: none;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 36rem;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.hero-section .hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #fff;
}
.hero-section .hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-section .hero-content p {
    font-size: 1.125rem;
    text-align: center;
    max-width: 48rem;
    margin-bottom: 2rem;
    color: #fff;
}

@media (min-width: 768px) {
    .hero-section .hero-content h1 {
        font-size: 3.75rem;
    }
    .hero-section .hero-content p {
        font-size: 1.25rem;
    }
}

/* Hero Search */
.hero-search {
    width: 100%;
    max-width: 42rem;
}
.hero-search .form-control {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}
.hero-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.hero-search .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.hero-search .btn-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
}

/* Search page banner */
.search-banner {
    background: linear-gradient(rgba(0, 30, 79, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/radio.webp') center/cover;
    padding-top: 4rem;
}

/* ---------- Station Item Card ---------- */
.station-item {
    position: relative;
    max-width: 10rem;
    margin: 1rem 0;
    background-color: var(--radio-sidebar);
    cursor: default;
}
.station-item .item-details {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    text-align: center;
    line-height: 1.1;
    height: 140px;
    width: 130px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
[data-bs-theme="dark"] .station-item .item-details {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}
.station-item .item-details img {
    width: 130px;
    height: 93px;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.station-item .item-details a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--radio-text-primary);
}
.station-item .item-details a:hover {
    text-decoration: none;
}
.station-item .item-name {
    font-weight: 500;
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
}
.station-item .item-location {
    font-weight: 400;
    font-size: 0.8rem;
    min-height: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--radio-text-secondary);
}
.station-item .item-play {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 0;
    height: 93px;
    width: 130px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.station-item .item-play .svg-icon {
    color: #b2b2b2;
    width: 80px;
    height: 80px;
    padding: 0.4rem;
}
.station-item .item-play .svg-icon:hover {
    color: #ffffff;
}
.station-item:hover .item-details {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}
.station-item:hover .item-play {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.station-item.is-playing .item-play {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Station Item 2 (smaller variant for sidebar) */
.station-item-sm .item-details {
    height: 105px;
    width: 100px;
}
.station-item-sm .item-details img {
    width: 100px;
    height: 70px;
}
.station-item-sm .item-play {
    height: 70px;
    width: 100px;
}
.station-item-sm .item-play .svg-icon {
    width: 60px;
    height: 60px;
    padding: 0.4rem;
}

@media (max-width: 768px) {
    .station-item .item-details .item-name {
        font-size: 16px;
    }
}

/* ---------- Station Detail Page ---------- */
.page-station #controls {
    position: relative;
    border-radius: 5px;
    background: linear-gradient(to right, var(--radio-gradient-from), var(--radio-gradient-via), var(--radio-gradient-to));
    z-index: 1;
    padding: 1rem 0;
}
.station-logo img {
    height: 140px;
    width: 196px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .station-logo img {
        height: auto;
        width: 110px;
    }
}
.station-title {
    font-weight: 600;
    line-height: normal;
    font-size: 1.75rem;
}
@media (max-width: 992px) {
    .station-title {
        font-size: 1.125rem;
    }
}
.frequency {
    font-size: 14px;
    font-weight: 500;
}

/* Play button */
.btn-play-station {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.btn-play-station .svg-icon {
    width: 60px;
    height: 60px;
}
@media (min-width: 768px) {
    .btn-play-station .svg-icon {
        width: 80px;
        height: 80px;
    }
}

/* ---------- Breadcrumb ---------- */
.radio-breadcrumb {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}
.radio-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: none;
}
.radio-breadcrumb .breadcrumb-item a {
    color: var(--radio-text-secondary);
}
.radio-breadcrumb .breadcrumb-item.active {
    color: var(--radio-text-secondary);
}

/* ---------- Playlist ---------- */
.playlist-container {
    max-height: 16rem;
    overflow-y: auto;
}
.playlist-item {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
}
.playlist-item:hover {
    background-color: var(--radio-sidebar);
}
.playlist-item .track-art {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
    background-color: var(--radio-sidebar);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 0.75rem;
    font-size: 24px;
}
.playlist-item .track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
.playlist-item .track-info {
    flex: 1;
    min-width: 0;
}
.playlist-item .track-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.playlist-item .track-artist {
    font-size: 0.875rem;
    color: var(--radio-text-secondary);
}
.playlist-item .track-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--radio-text-secondary);
}

/* ---------- Now Playing (Current Play) ---------- */
.current-play {
    display: flex;
    align-items: center;
    padding: 0.25rem;
}
.current-play .track-art {
    width: 64px;
    height: 64px;
    border-radius: 0.5rem;
    background-color: var(--radio-sidebar);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 0.75rem;
    font-size: 30px;
}
.current-play .track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}
.current-play .live-badge {
    font-size: 0.75rem;
    font-weight: 500;
}
.current-play .track-title {
    font-weight: 500;
    line-height: 1.2;
}
.current-play .track-artist {
    font-size: 0.875rem;
    color: var(--radio-text-secondary);
}

/* ---------- Bottom Player ---------- */
#player {
    position: fixed;
    z-index: 1050;
    bottom: 0;
    width: 100%;
    height: 6rem;
    display: none;
    align-items: center;
    background-color: var(--radio-sidebar);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
#player.active {
    display: flex;
}
#player a {
    text-decoration: none;
    color: var(--radio-text-primary);
}
#player .playing-logo {
    height: 3em;
}
#player .playing-logo img {
    margin: 0.25rem;
    height: 40px;
    width: 56px;
    object-fit: cover;
}
#player .playing-name {
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.25;
}
#player .playing-location {
    font-weight: 500;
    font-size: 0.7rem;
    line-height: 1.25;
    color: var(--radio-text-secondary);
}
#player .play-pause .svg-icon {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    background-color: transparent;
}
#player .play-pause {
    display: flex;
    align-items: center;
    height: 4rem;
}
#player .volume-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 4rem;
    gap: 0.25rem;
}
#player .volume-control .svg-icon {
    width: 50px;
    height: 30px;
    cursor: pointer;
    background-color: transparent;
}
#player .volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 120px;
    height: 4px;
    background: #5e6265;
    border-radius: 4px;
    outline: none;
    padding: 0 !important;
}
#player .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #fff;
    border: 2px solid #5e6265;
    border-radius: 50%;
    cursor: pointer;
}

/* Radio Visualizer */
#radio-visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
}
#radio-visualizer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Player active -> add body padding */
body.player-active {
    padding-bottom: 6rem;
}

/* ---------- Star Rating ---------- */
.rating-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.stars {
    display: inline-flex;
    gap: 0.1rem;
}
.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.15rem;
    color: var(--radio-text-secondary);
    font-size: 1rem;
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
}
.star-btn:hover,
.star-btn.active {
    color: #f59e0b;
}
.star-btn:hover {
    transform: scale(1.15);
}
.rating-summary {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.avg-rating {
    font-weight: 600;
    color: #f59e0b;
}
.rating-count {
    font-size: 0.75rem;
}

/* ---------- Like Button ---------- */
.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--radio-text-secondary);
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4rem;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.btn-like:hover {
    color: #e0245e;
    background: rgba(224, 36, 94, 0.08);
}
.btn-like.liked {
    color: #e0245e;
}
.btn-like .like-count {
    font-size: 0.78rem;
}

/* ---------- Share Component ---------- */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--radio-sidebar);
    border: none;
    transition: background-color 0.2s;
    color: var(--radio-text-secondary);
}
.share-btn:hover {
    background-color: var(--radio-border);
}

/* ---------- Footer ---------- */
.radio-footer {
    margin-bottom: 0;
}
.radio-footer .footer-content {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    border-top: 1px solid #d1d5db; /* border-gray-300 */
    height: 10em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 1em;
}
[data-bs-theme="dark"] .radio-footer .footer-content {
    border-top-color: #6b7280; /* dark:border-gray-500 */
}
.radio-footer .footer-links a {
    font-size: 0.9rem;
    text-decoration: none;
    padding: 5px;
    color: var(--radio-text-secondary);
}
.radio-footer .footer-links a:hover {
    color: var(--radio-text-primary);
}
.radio-footer .footer-divider {
    color: var(--radio-border);
    user-select: none;
    padding: 5px 0;
}

/* ---------- Contact Modal ---------- */
.contact-modal-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 100%;
    max-width: 28rem;
    z-index: 9999;
    display: none;
}
.contact-modal-container.show {
    display: block;
}

/* ---------- Search Modal ---------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}
.search-overlay.show {
    display: flex;
}
.search-modal-box {
    width: 100%;
    max-width: 42rem;
    margin: 0 1rem;
}

/* Article search suggestions dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bs-body-bg);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--radio-border);
    z-index: 50;
    max-height: 20rem;
    overflow-y: auto;
}
.sug-mark {
    background: transparent;
    color: var(--radio-primary, #2563eb);
    font-weight: 600;
    padding: 0;
}

/* Search results dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bs-body-bg);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--radio-border);
    z-index: 50;
    max-height: 24rem;
    overflow: hidden;
    display: none;
}
.search-results-dropdown.show {
    display: block;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s;
}
.search-result-item:hover {
    background-color: var(--radio-sidebar);
}
.search-result-item .result-logo {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    object-fit: cover;
    margin-right: 0.75rem;
    background: var(--radio-sidebar);
}
.search-result-item .result-title {
    font-weight: 500;
}
.search-result-item .result-meta {
    font-size: 0.875rem;
    color: var(--radio-text-secondary);
}

/* Suggestions */
.search-suggestion {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--radio-text-interactive);
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.search-suggestion:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

/* ---------- More Radio Button ---------- */
.btn-more-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background-color: #1e3a8a;
    border-radius: 0.5rem;
    border: none;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn-more-radio:hover {
    background-color: #172554;
    color: #fff;
    text-decoration: none;
}

/* ---------- Error Notification ---------- */
.error-notification {
    position: fixed;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 28rem;
    display: none;
}
.error-notification.show {
    display: flex;
}

/* ---------- Loading Spinner ---------- */
.radio-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid transparent;
    border-top-color: var(--radio-text-interactive);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Page specific ---------- */
.page-content {
    padding-bottom: 2rem;
}

/* Station grid */
.stations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
/* @media (min-width: 992px) {
    .stations-grid {
        padding: 2.5rem;
    }
} */

/* Loading ripple */
.loading-ripple {
    width: 50px;
    height: 50px;
}

/* ---------- HTMX Loading Indicators ---------- */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Body content styles */
.station-body-content img {
    max-width: 100%;
    height: auto;
}
.station-body-content h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.station-body-content h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.station-body-content p {
    margin-bottom: 0.5rem;
}
.station-body-content ul,
.station-body-content ol {
    padding-inline-start: 2.5rem;
    margin-block: 0.5em;
}
.station-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="dark"] .station-body-content table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.station-body-content table thead {
    background: linear-gradient(135deg, var(--radio-bg-primary), rgba(30, 58, 138, 0.8));
    color: #f8fafc;
}
.station-body-content table thead th {
    padding: 1rem 1.25rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}
.station-body-content table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--radio-border);
}
.station-body-content table tbody tr:hover {
    background-color: var(--radio-sidebar);
}
.station-body-content table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}
.station-body-content table td:first-child {
    font-weight: 500;
}

/* Share dropdown */
.share-dropdown {
    min-width: 200px;
}
.share-dropdown .share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.15s;
    border: none;
    background: none;
    width: 100%;
    color: var(--radio-text-secondary);
    font-size: 0.875rem;
}
.share-dropdown .share-option:hover {
    background-color: var(--radio-sidebar);
}
.share-dropdown .share-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}

/* ═══ Content Pages (articles, about, authors) ═══════════════════════ */

/* Breadcrumb */
.breadcrumb-list { display: flex; list-style: none; padding: 0; margin: 0; }
.breadcrumb-list li::after { content: "/"; padding: 0 5px; }
.breadcrumb-list li:last-child::after { content: none; }
.breadcrumb-list li { display: flex; align-items: center; font-size: 0.875rem; }
.breadcrumb-list a { color: var(--radio-text-interactive); text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .bc-current { color: var(--radio-text-secondary); }

/* Page header bar (list pages) */
.page-header-bar { background-color: var(--radio-sidebar); border-bottom: 1px solid var(--radio-border); padding: 1.25rem 0; }
.page-header-container { max-width: 1220px; margin: 0 auto; padding: 0 2.5rem; }
.page-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.page-title-text { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--radio-text-primary); }
.page-count-text { font-size: 0.875rem; color: var(--radio-text-secondary); margin: 0.25rem 0 0; padding: 0; }

/* Search wrap (list page) */
.search-wrap { position: relative; min-width: 280px; flex: 1; max-width: 400px; }
.search-wrap input { padding-left: 2.25rem; padding-right: 2.25rem; }
.search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--radio-text-secondary); pointer-events: none; display: flex; align-items: center; }
.search-spinner-icon { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); }

/* Results container */
.results-container { max-width: 1220px; margin: 0 auto; padding: 1.5rem 2.5rem; }

/* Page cards */
.page-card { display: flex; flex-direction: column; height: 100%; padding: 0.875rem; border-radius: 8px; text-decoration: none; border: 1px solid var(--radio-border); background-color: var(--radio-canvas); transition: all 0.2s; }
.page-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); text-decoration: none; }
.page-card-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; color: var(--radio-text-interactive); }
.page-card-desc { font-size: 0.8125rem; color: var(--radio-text-secondary); flex-grow: 1; margin: 0; padding: 0; line-height: 1.5; }
.page-card-footer { margin-top: 0.625rem; display: flex; align-items: center; gap: 0.5rem; }
.tag-featured { font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 9999px; background-color: var(--radio-bg-primary); color: #fff; font-weight: 600; }
.tag-date { margin-left: auto; font-size: 0.75rem; color: var(--radio-text-secondary); }
.empty-state { text-align: center; padding: 3rem 0; }

/* Pagination (content pages) */
.pagination-wrap { display: flex; justify-content: center; gap: 0.25rem; flex-wrap: wrap; }
.page-btn { padding: 0.375rem 0.75rem; border-radius: 9999px; border: 1px solid var(--radio-border); color: var(--radio-text-primary); text-decoration: none; font-size: 0.875rem; transition: background-color 0.15s; }
.page-btn:hover { background-color: var(--radio-sidebar); color: var(--radio-text-primary); text-decoration: none; }
.page-btn-arrow { padding: 0.375rem 0.625rem; }
.page-btn-active { padding: 0.375rem 0.75rem; border-radius: 9999px; background-color: var(--radio-bg-primary); color: #fff; font-size: 0.875rem; font-weight: 600; }

/* Content detail header */
.content-header { padding: 1rem 2.5rem 0.5rem; max-width: 1220px; margin: 0 auto; }
.content-title { font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.025em; color: var(--radio-text-primary); }
.content-dates { font-size: 0.875rem; color: var(--radio-text-secondary); }

/* Featured image */
.page-featured-image { width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 0.5rem; margin-bottom: 1.5rem; display: block; }

/* Byline */
.content-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--radio-border); }
.byline-card { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; padding: 0.35rem 0.55rem 0.35rem 0.35rem; border-radius: 0.6rem; transition: background 0.15s; }
.byline-card:hover { background: var(--radio-sidebar); color: inherit; text-decoration: none; }
.byline-photo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(37,99,235,0.15); display: flex; align-items: center; justify-content: center; border: 2px solid var(--radio-border); }
.byline-photo img { width: 100%; height: 100%; object-fit: cover; }
.byline-initials { font-size: 0.85rem; font-weight: 700; color: var(--radio-text-interactive); line-height: 1; }
.byline-info { display: flex; flex-direction: column; gap: 0.1rem; }
.byline-label { font-size: 0.72rem; font-weight: 500; color: var(--radio-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1; }
.byline-name { font-size: 0.9rem; font-weight: 600; color: var(--radio-text-primary); line-height: 1.2; }
.byline-divider { width: 1px; height: 36px; background: var(--radio-border); flex-shrink: 0; }

/* Two-column content layout */
.content-layout { display: flex; flex-direction: row; justify-content: space-between; gap: 2rem; max-width: 1220px; margin: 0 auto; padding: 1rem 2.5rem 2rem; }
.content-main { min-width: 0; flex: 1; align-self: start; }
.content-body { background-color: var(--radio-canvas); border-radius: 8px; }

/* Rich text content */
.page-body-content img { max-width: 100%; height: auto; }
.page-body-content h2 { font-weight: 700; font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.page-body-content h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.page-body-content p { margin-bottom: 0.75rem; line-height: 1.75; }
.page-body-content ul, .page-body-content ol { padding-inline-start: 2rem; margin-block: 0.5em; }
.page-body-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
[data-bs-theme="dark"] .page-body-content table { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.page-body-content table thead { background: linear-gradient(135deg, var(--radio-bg-primary), rgba(30,58,138,0.8)); color: #f8fafc; }
.page-body-content table thead th { padding: 1rem 1.25rem; font-weight: 600; text-align: left; font-size: 0.9rem; letter-spacing: 0.025em; text-transform: uppercase; }
.page-body-content table tbody tr { transition: background-color 0.2s; border-bottom: 1px solid var(--radio-border); }
.page-body-content table tbody tr:hover { background-color: var(--radio-sidebar); }
.page-body-content table tbody td { padding: 1rem 1.25rem; vertical-align: middle; }
.page-body-content table td:first-child { font-weight: 500; }
.page-body-content a.station-mention { font-weight: 500; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.page-body-content a.station-mention:hover { text-decoration-style: solid; }

/* Page intro */
.page-intro { font-size: 1.05rem; color: var(--radio-text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

/* Sidebar TOC (side menu) */
.content-aside { flex: none; width: 300px; }
.page-nav-container { position: sticky; top: 80px; }
.page-nav { margin-bottom: 3rem; }
.page-nav h4 { font-size: 16px; font-weight: 600; margin: 0 0 0.75rem; padding: 0; color: var(--radio-text-primary); }
ul.page-nav { list-style: none; padding-top: 0; padding-left: 0.5rem; border-left: 1.5px solid var(--radio-border); }
ul.page-nav li a { font-size: 0.9rem; line-height: 1.4; color: var(--radio-text-secondary); text-decoration: none; display: block; padding: 0.2rem 0 0.2rem 0.5rem; border-left: 2px solid transparent; margin-left: -0.6rem; transition: all 0.15s; }
ul.page-nav li a:hover, ul.page-nav li a.active { color: var(--radio-text-primary); border-left-color: var(--radio-text-interactive); }

/* Related content */
.related-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--radio-border); }
.related-title { font-size: 1.125rem; font-weight: 700; color: var(--radio-text-primary); margin-bottom: 1rem; }
.related-list { display: flex; flex-direction: column; }
.related-link { display: block; padding: 0.25rem 0 0.25rem 0.5rem; border-left: 2px solid transparent; font-size: 0.875rem; line-height: 1.4; color: var(--radio-text-secondary); text-decoration: none; transition: all 0.2s; }
.related-link:hover { border-left-color: var(--radio-text-interactive); color: var(--radio-text-primary); text-decoration: none; }

/* Disclaimer */
.disclaimer { padding-top: 0.75rem; color: var(--radio-text-primary); }
.disclaimer p { font-size: 0.875rem; padding-bottom: 0; }

/* Author pages */
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 1.5rem; border-radius: 8px; text-decoration: none; border: 1px solid var(--radio-border); background-color: var(--radio-canvas); transition: box-shadow 0.2s; height: 100%; color: var(--radio-text-primary); }
.author-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); text-decoration: none; color: var(--radio-text-primary); }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-initials { font-size: 1.4rem; font-weight: 700; color: var(--radio-text-interactive); }
.author-name { font-weight: 600; color: var(--radio-text-primary); margin: 0; }
.author-bio { font-size: 0.8125rem; color: var(--radio-text-secondary); line-height: 1.5; margin: 0.25rem 0 0; }
.author-count { font-size: 0.8125rem; color: var(--radio-text-secondary); margin: 0; }
.author-profile-card { border: 1px solid var(--radio-border); border-radius: 8px; padding: 1.5rem; background-color: var(--radio-canvas); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; position: sticky; top: 80px; }
.author-profile-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; }
.author-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-profile-initials { font-size: 2rem; font-weight: 700; color: var(--radio-text-interactive); }
.author-social-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--radio-text-secondary); font-size: 0.875rem; padding: 0.25rem 0.5rem; border-radius: 4px; transition: background 0.15s, color 0.15s; width: 100%; }
.author-social-link:hover { background: var(--radio-sidebar); color: var(--radio-text-primary); text-decoration: none; }
.author-stat { text-align: center; }
.author-stat-num { font-weight: 700; color: var(--radio-text-primary); }
.author-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--radio-text-secondary); }
.author-articles-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.author-article-card { display: block; border: 1px solid var(--radio-border); border-radius: 6px; padding: 0.75rem; background-color: var(--radio-canvas); text-decoration: none; transition: background 0.15s; }
.author-article-card:hover { background-color: var(--radio-sidebar); text-decoration: none; }
.author-article-title { font-weight: 600; font-size: 0.875rem; color: var(--radio-text-primary); margin: 0 0 0.25rem; line-height: 1.4; }
.author-article-desc { font-size: 0.78rem; color: var(--radio-text-secondary); line-height: 1.5; margin: 0 0 0.25rem; }
.author-article-date { font-size: 0.75rem; color: var(--radio-text-secondary); }

/* ---------- Submit Station Page ---------- */
.submit-hero {
    background: linear-gradient(135deg, #001E4F 0%, #003580 60%, #0050b3 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.submit-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}
.submit-hero-sub {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
}

/* Form card */
.submit-form-card {
    background-color: #f3f4f6;
    border: 1px solid var(--radio-border);
    border-radius: .75rem;
    padding: 2rem;
}
[data-bs-theme="dark"] .submit-form-card {
    background-color: #1f2937;
}

/* White inputs inside the form card */
.submit-form-card input:not([type="range"]):not([type="file"]),
.submit-form-card select.form-select,
.submit-form-card textarea {
    background-color: #ffffff;
}
[data-bs-theme="dark"] .submit-form-card input:not([type="range"]):not([type="file"]),
[data-bs-theme="dark"] .submit-form-card select.form-select,
[data-bs-theme="dark"] .submit-form-card textarea {
    background-color: #2a2e37;
}
.submit-form-card .input-group-text {
    background-color: #f3f4f6;
}
[data-bs-theme="dark"] .submit-form-card .input-group-text {
    background-color: #374151;
}

/* Section dividers */
.submit-section {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--radio-border);
}
.submit-section-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.submit-section-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--radio-bg-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.submit-section-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--radio-text-primary);
    letter-spacing: .01em;
}

/* Logo upload */
.submit-logo-upload {
    position: relative;
    border: 2px dashed var(--radio-border);
    border-radius: .5rem;
    cursor: pointer;
    transition: border-color .2s;
    overflow: hidden;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-logo-upload:hover {
    border-color: #2563eb;
}
.submit-logo-upload.is-invalid {
    border-color: #dc3545;
}
.submit-logo-placeholder {
    text-align: center;
    padding: 1.5rem;
    pointer-events: none;
}
.submit-logo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.submit-logo-preview {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
    padding: .5rem;
    border-radius: .5rem;
}

/* Sidebar */
.submit-sidebar {
    position: sticky;
    top: 4.5rem;
    background-color: var(--radio-sidebar);
    border: 1px solid var(--radio-border);
    border-radius: .75rem;
    padding: 1.5rem;
}
.submit-info-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem;
    background-color: var(--radio-canvas);
    border: 1px solid var(--radio-border);
    border-radius: .5rem;
}
.submit-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}
.submit-info-text {
    font-size: .82rem;
    color: var(--radio-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Old classes kept for any stale references */
.submit-panel {
    background-color: var(--radio-sidebar);
    border: 1px solid var(--radio-border);
    border-radius: 0.5rem;
}
.submit-icon-circle {
    background-color: var(--radio-canvas);
    border: 1px solid var(--radio-border);
    color: var(--radio-text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Selects + file inputs — dark mode */
[data-bs-theme="dark"] select.form-select,
[data-bs-theme="dark"] input[type="file"].form-control {
    background-color: #2a2e37;
    border-color: var(--radio-border);
    color: var(--radio-text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .content-header { padding: 1rem 1rem 0.5rem; }
    .content-layout { padding: 1rem 1rem 2rem; flex-direction: column; }
    .content-aside { display: none !important; }
    .page-header-container { padding: 0 1rem; }
    .results-container { padding: 1.5rem 1rem; }
}
@media (max-width: 640px) {
    .page-header-inner { flex-direction: column; align-items: flex-start; }
    .search-wrap { min-width: 100%; max-width: 100%; }
}

/* ---------- Sidebar Browse Cards (station detail) ---------- */
.sidebar-browse-card {
    border-radius: 12px;
    border: 1px solid var(--radio-border);
    background-color: var(--radio-canvas);
    overflow: hidden;
    position: relative;
}
.sidebar-browse-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.sidebar-browse-card--genre::before {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
}
.sidebar-browse-card--language::before {
    background: linear-gradient(90deg, #0891b2, #0e7490);
}
.sidebar-browse-card__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem 0.6rem;
}
.sidebar-browse-card__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-browse-card--genre .sidebar-browse-card__icon {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}
.sidebar-browse-card--language .sidebar-browse-card__icon {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}
.sidebar-browse-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--radio-text-primary);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
}
.sidebar-browse-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1rem 0.75rem;
}
.browse-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    border: 1px solid transparent;
    line-height: 1.3;
}
.browse-pill--genre {
    background-color: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.15);
}
.browse-pill--genre:hover {
    background-color: rgba(124, 58, 237, 0.18);
    color: #5b21b6;
    text-decoration: none;
}
[data-bs-theme="dark"] .browse-pill--genre {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.2);
}
[data-bs-theme="dark"] .browse-pill--genre:hover {
    background-color: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}
.browse-pill--language {
    background-color: rgba(8, 145, 178, 0.1);
    color: #0e7490;
    border-color: rgba(8, 145, 178, 0.15);
}
.browse-pill--language:hover {
    background-color: rgba(8, 145, 178, 0.18);
    color: #155e75;
    text-decoration: none;
}
[data-bs-theme="dark"] .browse-pill--language {
    background-color: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
    border-color: rgba(34, 211, 238, 0.18);
}
[data-bs-theme="dark"] .browse-pill--language:hover {
    background-color: rgba(34, 211, 238, 0.2);
    color: #a5f3fc;
}
.browse-pill__count {
    opacity: 0.6;
    font-size: 0.72rem;
}
.sidebar-browse-card__footer {
    border-top: 1px solid var(--radio-border);
    padding: 0.5rem 1rem;
}
.sidebar-browse-card__footer a {
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.sidebar-browse-card--genre .sidebar-browse-card__footer a {
    color: #7c3aed;
}
.sidebar-browse-card--genre .sidebar-browse-card__footer a:hover {
    color: #5b21b6;
}
.sidebar-browse-card--language .sidebar-browse-card__footer a {
    color: #0891b2;
}
.sidebar-browse-card--language .sidebar-browse-card__footer a:hover {
    color: #0e7490;
}
[data-bs-theme="dark"] .sidebar-browse-card--genre .sidebar-browse-card__footer a { color: #a78bfa; }
[data-bs-theme="dark"] .sidebar-browse-card--genre .sidebar-browse-card__footer a:hover { color: #c4b5fd; }
[data-bs-theme="dark"] .sidebar-browse-card--language .sidebar-browse-card__footer a { color: #67e8f9; }
[data-bs-theme="dark"] .sidebar-browse-card--language .sidebar-browse-card__footer a:hover { color: #a5f3fc; }

/* ---------- Regions pages ---------- */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}
.region-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--radio-border);
    background-color: var(--radio-canvas);
    text-decoration: none;
    color: var(--radio-text-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}
.region-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--radio-bg-primary), #2563eb);
    opacity: 0;
    transition: opacity 0.18s ease;
}
.region-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: transparent;
    text-decoration: none;
    color: var(--radio-text-primary);
}
.region-card:hover::before { opacity: 1; }
.region-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--radio-bg-primary), #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.region-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.region-card-count {
    font-size: 0.78rem;
    color: var(--radio-text-secondary);
    font-weight: 500;
}
/* Region banner (detail page) */
.region-banner {
    background: linear-gradient(135deg, var(--radio-bg-primary) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.region-banner-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.region-banner-bc { font-size: 0.8125rem; opacity: 0.75; margin-bottom: 0.75rem; }
.region-banner-bc a { color: rgba(255,255,255,0.85); text-decoration: none; }
.region-banner-bc a:hover { color: #fff; text-decoration: underline; }
.region-banner-bc .sep { margin: 0 0.4rem; opacity: 0.5; }
.region-banner-title { font-size: 2rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.region-banner-sub { font-size: 0.95rem; opacity: 0.8; margin: 0; }
@media (max-width: 576px) {
    .regions-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.85rem; }
    .region-banner-title { font-size: 1.5rem; }
}

/* ---------- Genre pages ---------- */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}
.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--radio-border);
    background-color: var(--radio-canvas);
    text-decoration: none;
    color: var(--radio-text-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}
.genre-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--genre-accent, linear-gradient(90deg, #7c3aed, #2563eb));
    opacity: 0;
    transition: opacity 0.18s ease;
}
.genre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: transparent;
    text-decoration: none;
    color: var(--radio-text-primary);
}
.genre-card:hover::before { opacity: 1; }
.genre-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--genre-accent, linear-gradient(135deg, #7c3aed, #2563eb));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.genre-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.genre-card-count {
    font-size: 0.78rem;
    color: var(--radio-text-secondary);
    font-weight: 500;
}
/* Genre banner (detail page) */
.genre-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #2563eb 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.genre-banner-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.genre-banner-bc { font-size: 0.8125rem; opacity: 0.75; margin-bottom: 0.75rem; }
.genre-banner-bc a { color: rgba(255,255,255,0.85); text-decoration: none; }
.genre-banner-bc a:hover { color: #fff; text-decoration: underline; }
.genre-banner-bc .sep { margin: 0 0.4rem; opacity: 0.5; }
.genre-banner-title { font-size: 2rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.genre-banner-sub { font-size: 0.95rem; opacity: 0.8; margin: 0; }
@media (max-width: 576px) {
    .genres-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.85rem; }
    .genre-banner-title { font-size: 1.5rem; }
}

/* ---------- Language pages ---------- */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}
.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--radio-border);
    background-color: var(--radio-canvas);
    text-decoration: none;
    color: var(--radio-text-primary);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}
.language-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--lang-accent, linear-gradient(90deg, #0891b2, #0e7490));
    opacity: 0;
    transition: opacity 0.18s ease;
}
.language-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: transparent;
    text-decoration: none;
    color: var(--radio-text-primary);
}
.language-card:hover::before { opacity: 1; }
.language-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lang-accent, linear-gradient(135deg, #0891b2, #0e7490));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}
.language-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.language-card-count {
    font-size: 0.78rem;
    color: var(--radio-text-secondary);
    font-weight: 500;
}
/* Language banner (detail page) */
.language-banner {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0891b2 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.language-banner-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.language-banner-bc { font-size: 0.8125rem; opacity: 0.75; margin-bottom: 0.75rem; }
.language-banner-bc a { color: rgba(255,255,255,0.85); text-decoration: none; }
.language-banner-bc a:hover { color: #fff; text-decoration: underline; }
.language-banner-bc .sep { margin: 0 0.4rem; opacity: 0.5; }
.language-banner-title { font-size: 2rem; font-weight: 700; margin: 0 0 0.35rem; letter-spacing: -0.02em; }
.language-banner-sub { font-size: 0.95rem; opacity: 0.8; margin: 0; }
@media (max-width: 576px) {
    .languages-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.85rem; }
    .language-banner-title { font-size: 1.5rem; }
}
