:root {
    --primary-color: #e53e3e; /* Red */
    --secondary-color: #c53030; /* Darker Red */
    --accent-color: #ff3b3b; /* Neon Red */
    --bg-color: #f1f5f9; /* Soft light gray */
    --card-bg: #ffffff; /* White cards */
    --text-main: #0f172a; /* Slate dark text */
    --text-muted: #64748b; /* Slate gray muted text */
    --border-light: #e2e8f0; /* Soft borders */
    --header-bg: #0f0f12; /* Obsidian Black Header */
    --header-border: #1e1e24; /* Dark border */
    --header-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.player-active {
    padding-bottom: 95px;
}

.rf-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.rf-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rf-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.rf-logo img {
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

.logo-icon {
    font-size: 2.2rem;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #ff4d4d, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rf-nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.rf-nav-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

.rf-nav-link:hover {
    color: #ff4d4d;
}

.equalizer-hover {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 8px;
    width: 16px;
    position: absolute;
    bottom: -4px;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.3s ease;
}

.eq-bar {
    width: 3px;
    background-color: #ff4d4d;
    border-radius: 1px;
}

.eq-bar-1 { height: 30%; }
.eq-bar-2 { height: 60%; }
.eq-bar-3 { height: 40%; }

.rf-nav-link:hover .equalizer-hover {
    opacity: 1;
    transform: scaleY(1);
}

.rf-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-networks-list {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    text-decoration: none;
    color: #cccccc;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-btn .icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: currentColor;
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.social-icon-btn.facebook:hover { color: #1877f2; border-color: #1877f2; }
.social-icon-btn.instagram:hover { color: #ff007f; border-color: #ff007f; }
.social-icon-btn.twitter:hover { color: #ffffff; border-color: #ffffff; }
.social-icon-btn.youtube:hover { color: #ff0000; border-color: #ff0000; }

.live-badge {
    background: rgba(229, 62, 62, 0.15);
    border: 1px solid rgba(229, 62, 62, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.burger-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.rf-mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid var(--border-light);
    z-index: 1100;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rf-mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.drawer-close-btn {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
}

.drawer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.drawer-nav a:hover {
    color: var(--primary-color);
}

.drawer-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: auto;
}

.drawer-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.drawer-socials {
    display: flex;
    gap: 15px;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.rf-main-content {
    margin-top: 90px;
    flex-grow: 1;
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 25px 50px;
    z-index: 2;
}

.frontpage-layout-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    width: 100%;
}

.frontpage-main-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.directory-filter-bar {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 14px 20px 14px 45px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.08);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.geo-filters-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.geo-filters-wrapper select {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.geo-filters-wrapper select:focus, .geo-filters-wrapper select:hover {
    background-color: #ffffff;
    border-color: var(--primary-color);
    outline: none;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100%;
}

.station-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.015);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.station-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.station-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 4px;
}

.station-meta-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.station-freq-badge {
    background: rgba(0, 82, 204, 0.05);
    color: var(--primary-color);
    border: 1px solid rgba(0, 82, 204, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.station-views-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.station-views-badge i {
    margin-right: 3px;
}

.station-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station-card-body h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-slogan {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-location-trail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-location-trail i {
    color: var(--primary-color);
    margin-right: 4px;
}

.station-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.rf-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.rf-btn-primary {
    background: var(--primary-color);
    color: white;
}

.rf-btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}

.rf-btn-primary.is-playing {
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.25);
    animation: play-pulse 2s infinite ease-in-out;
}

.rf-btn-primary.is-playing:hover {
    background: #e6004c;
}

.rf-btn-secondary {
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.rf-btn-secondary:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.rf-btn-icon-square {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.rf-btn-icon-square:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.rf-btn-icon-square.web-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.listen-btn {
    flex-grow: 1;
}

.frontpage-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-widget h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
    margin-bottom: 15px;
    font-weight: 700;
}

.sidebar-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.ranking-item-row:hover {
    background: #f8fafc;
    border-color: var(--border-light);
}

.ranking-idx {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.ranking-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 2px;
}

.ranking-meta-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    min-width: 0;
}

.ranking-meta-info strong {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta-info .rank-geo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ranking-meta-info .rank-geo img {
    width: 14px;
    height: 10px;
    object-fit: cover;
    border-radius: 1px;
}

.ranking-stat-listeners {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.ranking-item-row:hover .ranking-stat-listeners {
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-color);
}

.countries-stats-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 350px;
    overflow-y: auto;
}

.countries-stats-list::-webkit-scrollbar {
    width: 4px;
}

.countries-stats-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
}

.country-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.country-stat-item:hover {
    background: #f1f5f9;
}

.country-stat-item.active {
    background: rgba(0, 82, 204, 0.05);
    border-color: rgba(0, 82, 204, 0.2);
}

.stat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.08);
}

.stat-name {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.country-stat-item.active .stat-name {
    color: var(--primary-color);
    font-weight: 700;
}

.stat-count {
    background: #e2e8f0;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.country-stat-item.active .stat-count {
    background: rgba(0, 82, 204, 0.15);
    color: var(--primary-color);
}

.rf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.rf-page-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.rf-page-btn:hover:not(:disabled) {
    color: #ffffff;
    border-color: var(--primary-color);
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.25);
}

.rf-page-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
}

.rf-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.05);
}

.rf-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.grid-empty, .grid-error, .ranking-empty, .ranking-error, .stats-empty, .stats-error {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.rf-floating-player {
    position: fixed;
    bottom: -200px;
    left: 0;
    width: 100%;
    height: 95px;
    background: linear-gradient(90deg, #911b1b 0%, #b92525 50%, #911b1b 100%);
    border-top: 1px solid rgba(255,255,255,0.15);
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.rf-floating-player.active {
    bottom: 0;
}

.rf-floating-player.expanded {
    height: 480px;
}

.player-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    gap: 30px;
}

.playing-station-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 280px;
    max-width: 380px;
}

#player-station-logo {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.station-meta-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.al-aire-badge {
    background: #e53e3e;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    padding: 2px 8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pulse-dot-white {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    display: block;
    animation: pulse-white-dot 1.2s infinite;
}

@keyframes pulse-white-dot {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.station-meta-text-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.station-meta-text-group strong {
    color: white;
    font-size: 1.15rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-meta-text-group span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fondo difuminado de carátula */
.player-bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
    filter: blur(25px) brightness(0.45);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.rf-floating-player.is-playing .player-bg-blur {
    opacity: 0.85;
}

/* Visualizador Canvas del fondo */
.player-visualizer-canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    pointer-events: none !important;
    opacity: 0.18;
    display: block;
}

/* Efecto hover en carátula zoom-scale del demo */
.playing-station-info #player-station-logo {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s !important;
    transform-origin: bottom left !important;
    position: relative !important;
    z-index: 10 !important;
}

.playing-station-info:hover #player-station-logo {
    transform: scale(2.2) translateY(-12px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.6) !important;
    border-radius: 6px !important;
}

/* Controladores del centro (Play / Pause, Volumen, Notas) */
.player-center-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.player-control-main-play-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #b92525;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.player-control-main-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    background: #f8f9fa;
}

.player-control-icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s ease;
}

.player-control-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.player-action-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.player-control-icon-btn.close-player-btn:hover {
    color: #ff3333;
    background: rgba(255, 51, 51, 0.15);
}

.rf-floating-player.expanded .player-bar-container {
    height: 100%;
    align-items: flex-start;
    padding-top: 30px;
    padding-bottom: 30px;
}

.rf-floating-player.expanded .luna-player-integration-wrapper {
    height: 340px;
}

.rf-floating-player.expanded .playing-station-info {
    margin-top: 60px;
}

.rf-floating-player.expanded .player-action-controls {
    margin-top: 60px;
}

.rf-info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 16, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 30px 15px;
    align-items: center;
    justify-content: center;
}

.rf-info-modal.active {
    display: flex;
}

.info-modal-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    animation: zoom-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.info-modal-close:hover {
    color: var(--accent-color);
}

.info-modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

#info-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 4px;
}

.info-title-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-title-area h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
    font-size: 1.5rem;
}

#info-frequency {
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-color);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
}

.info-details-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-detail-item strong {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-detail-item span {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.info-actions-row {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.info-actions-row button, .info-actions-row a {
    flex: 1;
}

.rf-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background-color: #ffffff;
    z-index: 2;
}

.rf-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.rf-hidden {
    display: none !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

@keyframes play-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.4); }
    50% { box-shadow: 0 0 12px 6px rgba(255, 0, 85, 0.2); }
}

@keyframes zoom-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
    .frontpage-layout-container {
        grid-template-columns: 1fr;
    }
    
    .frontpage-sidebar {
        order: 2;
    }
    
    .frontpage-main-grid {
        order: 1;
    }
    
    .stations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rf-header-container {
        padding: 12px 20px;
    }

    .rf-nav, .social-networks-list {
        display: none;
    }

    .burger-menu-btn {
        display: flex;
    }

    .geo-filters-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stations-grid {
        grid-template-columns: 1fr;
    }

    .rf-floating-player {
        height: 95px;
    }

    .rf-floating-player.expanded {
        height: 100vh;
        top: 0;
        bottom: 0;
    }

    .player-bar-container {
        height: 100%;
        width: 100%;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        gap: 20px;
    }

    .rf-floating-player.expanded .player-bar-container {
        padding-top: 60px;
    }

    .playing-station-info {
        min-width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    #player-station-logo {
        width: 64px;
        height: 64px;
    }

    .station-meta-details {
        align-items: center;
    }

    .luna-player-integration-wrapper {
        width: 100%;
        height: 75px;
        opacity: 1;
    }

    .rf-floating-player.expanded .luna-player-integration-wrapper {
        height: calc(100vh - 280px);
        margin-top: 10px;
    }

    .player-action-controls {
        width: 100%;
        justify-content: center;
        gap: 25px;
    }

    .rf-floating-player.expanded .player-action-controls {
        margin-top: 15px;
        position: absolute;
        top: 20px;
        right: 20px;
        width: auto;
    }

    .info-actions-row {
        flex-direction: column;
    }
}

/* --- Countries Slider Grid & Cards Redesign --- */
#front-country-filter {
  display: none !important;
}

.countries-filter-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.countries-grid-filter {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  max-width: 100%;
}

.countries-grid-filter::-webkit-scrollbar {
  height: 6px;
}

.countries-grid-filter::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 99px;
}

.country-grid-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  width: 105px;
  text-align: center;
}

.country-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.country-grid-item.active {
  background: var(--primary-color);
  color: #ffffff !important;
  border-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 82, 204, 0.25);
}

.country-grid-flag {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.country-grid-item:hover .country-grid-flag {
  transform: scale(1.08);
}

.country-grid-flag-placeholder {
  width: 44px;
  height: 30px;
  background: #f0f0f2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.country-grid-item.active .country-grid-flag-placeholder {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.country-grid-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.country-grid-item.active .country-grid-name {
  color: #ffffff;
}

/* Card flags and Visit buttons */
.station-card-flag {
  width: 24px !important;
  height: 16px !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
  display: inline-block !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

.station-meta-txt {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.rf-btn-secondary.visit-btn {
  background: rgba(0, 82, 204, 0.05) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(0, 82, 204, 0.1) !important;
  font-weight: 700 !important;
  transition: all 0.2s !important;
}

.rf-btn-secondary.visit-btn:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.2) !important;
  transform: translateY(-1px) !important;
}


/* --- Improved Stations Grid Cards Design --- */
.station-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  position: relative;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.station-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.station-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.station-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

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

/* Small circular icon buttons in header */
.rf-btn-icon {
  background: transparent;
  border: none;
  color: #7a7e85;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.rf-btn-icon:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.station-card-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-slogan {
  font-size: 0.82rem;
  color: #666666;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-location-trail {
  font-size: 0.76rem;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

/* Primary and Secondary button sizing */
.station-card-actions .listen-btn {
  flex: 1.3 !important;
}

.station-card-actions .visit-btn {
  flex: 0.9 !important;
  text-align: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .station-card-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .station-card-actions .listen-btn,
  .station-card-actions .visit-btn {
    width: 100% !important;
    flex: none !important;
  }
}


/* --- Station Profile Link Styling --- */
.station-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 8px !important;
  transition: all 0.2s ease !important;
  width: fit-content;
}

.station-profile-link:hover {
  color: #111111 !important;
  transform: translateX(4px) !important;
}

.station-profile-link i {
  font-size: 0.7rem !important;
}

.station-card-actions .listen-btn {
  width: 100% !important;
  flex: 1 !important;
}


/* --- Clean YouTube-style Country Pill Tags --- */
.countries-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
}

.countries-filter-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.countries-grid-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none; /* Hide scrollbar */
}

.countries-grid-filter::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.country-pill-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  user-select: none;
  line-height: 1.2;
}

.country-pill-tag:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px);
}

.country-pill-tag.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px rgba(255, 103, 103, 0.25) !important;
}

.country-pill-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.country-pill-tag i {
  font-size: 0.85rem;
}

/* Perfect Centered Arrow Buttons */
.slider-arrow {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #555555;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  z-index: 5;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.slider-arrow i {
  font-size: 0.8rem;
  line-height: 1;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* --- Registration Form ("Registra tu emisora") Styles --- */
.rf-register-wrapper {
  max-width: 900px;
  margin: 80px auto 60px auto;
  padding: 0 15px;
}

.rf-register-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.06);
}

.rf-register-header {
  text-align: center;
  margin-bottom: 35px;
}

.rf-register-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.rf-register-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.rf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rf-form-group.full-width {
  grid-column: 1 / -1;
}

.rf-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rf-form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rf-form-group label .required-star {
  color: var(--primary-color);
}

.rf-form-input, .rf-form-select, .rf-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.2s ease;
  font-family: inherit;
}

.rf-form-input:focus, .rf-form-select:focus, .rf-form-textarea:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.rf-add-loc-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease;
}

.rf-add-loc-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.rf-btn-submit {
  background: var(--primary-color);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3);
  width: 100%;
  margin-top: 15px;
}

.rf-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 82, 204, 0.4);
}

.rf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.rf-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.rf-modal-box {
  background: #ffffff;
  width: 90%;
  max-width: 440px;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: all 0.25s ease;
}

.rf-modal-backdrop.active .rf-modal-box {
  transform: translateY(0);
}

.rf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.rf-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.rf-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #94a3b8;
  cursor: pointer;
}

.rf-alert-box {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: none;
}

.rf-alert-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.rf-alert-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Visitar button design */
.rf-btn-outline.visit-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color) !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
  flex: 0.9 !important;
  text-align: center;
  justify-content: center;
}

.rf-btn-outline.visit-btn:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(255, 103, 103, 0.2) !important;
  transform: translateY(-2px) !important;
}

.listen-btn {
  flex: 1.3 !important;
}


/* --- Premium Spotify-Style Cards --- */
.station-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.station-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.station-artwork-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.station-logo {
  transition: transform 0.4s ease;
}

.station-card:hover .station-logo {
  transform: scale(1.06);
}

/* Flag & Freq overlay badges */
.station-flag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
  z-index: 2;
}

.station-freq-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25) !important;
  z-index: 2;
}

/* Floating header action buttons overlay */
.station-header-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 2;
}

.station-card:hover .station-header-actions {
  opacity: 1;
}

.station-header-actions .rf-btn-icon {
  background: rgba(10, 10, 10, 0.75) !important;
  color: #ffffff !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.station-header-actions .rf-btn-icon:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: scale(1.1);
}

.station-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.station-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.station-card-body h3 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.station-views-badge {
  font-size: 0.74rem !important;
  color: #888888 !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.station-slogan {
  font-size: 0.8rem !important;
  color: #666666 !important;
  margin: 0 0 2px 0 !important;
}

.station-location-trail {
  font-size: 0.72rem !important;
  color: #999999 !important;
}

/* Base side-by-side action buttons */
.station-card-actions {
  display: flex !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: auto !important;
}

.station-card-actions .listen-btn {
  flex: 1.35 !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}

.station-card-actions .visit-btn {
  flex: 0.9 !important;
  padding: 8px 12px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}

@media (max-width: 1200px) {
  .stations-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .stations-grid {
    grid-template-columns: 1fr !important;
  }
}


/* --- Uniform Sizing and Card Layout Refinements --- */
.station-artwork-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important; /* Forces a perfect square */
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
  background: #f8fafc !important;
}

.station-artwork-wrapper .station-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 12px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: none !important;
}

/* Enlarge floating header actions buttons (Info & Web) */
.station-header-actions .rf-btn-icon {
  background: rgba(10, 10, 10, 0.85) !important;
  color: #ffffff !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.35) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  transition: all 0.2s ease !important;
}

.station-header-actions .rf-btn-icon:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: scale(1.12) !important;
}

/* Font size and layout alignments */
.station-card-body h3 {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  line-height: 1.3 !important;
}

.station-slogan {
  font-size: 0.82rem !important;
  color: #666666 !important;
  margin: 4px 0 8px 0 !important;
}

.station-location-trail {
  font-size: 0.74rem !important;
  color: #8c8c8c !important;
}

/* Perfect alignment and height for action buttons */
.station-card-actions .listen-btn,
.station-card-actions .visit-btn {
  height: 40px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
}


/* --- Stack Action Buttons to Prevent Sidebar Overlaps --- */
.station-card-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: auto !important;
}

.station-card-actions .listen-btn,
.station-card-actions .visit-btn {
  width: 100% !important;
  flex: none !important;
  height: 38px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
}


/* --- Final Grid Symmetrical Alignment Fixes --- */
.stations-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .stations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 768px) {
  .stations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}

.station-card {
  height: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.station-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 1 auto !important;
}

/* Ensure title truncates rather than expanding the card */
.station-card-body h3 {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  width: 0; /* Forces flexbox to respect max-width and truncate text */
  flex-grow: 1 !important;
}


/* --- High-Contrast Player Bar for White/Light Backgrounds --- */
#app-super .player-wrapper {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7) !important;
}

#app-super .stream-name, 
#app-super .station-name, 
#app-super .stream-description {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Central Play/Pause button with vibrant primary accent & crisp border */
#app-super .player-button-play {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

#app-super .player-button-play svg,
#app-super .player-button-play i {
  color: #ffffff !important;
  fill: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

#app-super .player-button-play:hover {
  background: #e62e2e !important;
  transform: scale(1.08) !important;
  box-shadow: 0 8px 25px rgba(255, 59, 48, 0.5) !important;
}

/* All utility control buttons in player (Volume, Like, Dislike, Share, Lyrics) */
#app-super .player-controller .player-button:not(.player-button-play),
#app-super .player-right .player-button {
  color: #ffffff !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.75)) !important;
  transition: transform 0.2s, color 0.2s !important;
}

#app-super .player-controller .player-button:not(.player-button-play):hover,
#app-super .player-right .player-button:hover {
  color: var(--primary-color) !important;
  transform: scale(1.15) !important;
}
/* Single Radio Page CSS */
.rf-single-hero { position: relative; background-color: #111827; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 100px 20px 60px 20px; }
.rf-single-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(17, 24, 39, 0.85); backdrop-filter: blur(25px); z-index: 1; }
.rf-single-header-nav { position: absolute; top: 20px; left: 20px; z-index: 10; }
.rf-single-header-nav a { color: #fff; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 20px; backdrop-filter: blur(5px); transition: background 0.3s ease; }
.rf-single-header-nav a:hover { background: rgba(255,255,255,0.2); }
.rf-single-content-wrapper { position: relative; z-index: 5; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 40px; }
.rf-single-bottom-wrapper { background: #f9fafb; padding: 60px 0; }
.rf-single-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.rf-single-layout { display: flex; gap: 60px; align-items: center; }
.rf-single-logo-container { flex-shrink: 0; width: 320px; height: 320px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.rf-single-logo-container img { width: 100%; height: 100%; object-fit: cover; }
.rf-single-info { flex-grow: 1; padding-bottom: 20px; }
.rf-single-title { font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800; color: #ffffff; margin: 0 0 10px 0; text-shadow: 0 4px 20px rgba(0,0,0,0.5); line-height: 1.1; }
.rf-single-slogan { font-size: 1.2rem; color: #d1d5db; margin: 0 0 25px 0; font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.rf-single-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 35px; }
.rf-badge { background: rgba(255,255,255,0.1); color: #ffffff; padding: 10px 20px; border-radius: 30px; font-size: 0.95rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); }
.rf-badge-freq { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; border-color: rgba(99, 102, 241, 0.3); }
.rf-single-actions { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.rf-action-btn { padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s ease; cursor: pointer; border:none; }
.rf-action-btn:hover { transform: translateY(-2px); }
.rf-btn-play { background: #f59e0b; color: #fff; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.rf-btn-web { background: #f3f4f6; color: #374151; }

.rf-single-share-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.share-label { font-weight: 600; color: #d1d5db; font-size: 0.9rem; }
.rf-share-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s ease, filter 0.2s; }
.rf-share-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }
.rf-btn-whatsapp { background: #22c55e; color: #fff; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3); }
.rf-btn-facebook { background: #1877F2; color: #fff; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3); }
.rf-btn-twitter { background: #1DA1F2; color: #fff; box-shadow: 0 4px 10px rgba(29, 161, 242, 0.3); }

/* PWA Floating Button */
.rf-pwa-install-btn {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}
.rf-pwa-install-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.rf-pwa-install-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6);
}
.rf-pwa-install-btn i { font-size: 1.2rem; }
/* WhatsApp Preview Card */
.wa-preview-section { margin-top: 0; padding: 40px; background: rgba(255, 255, 255, 0.6); border-radius: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); }
.wa-preview-title { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 700; color: #111827; margin-bottom: 20px; }
.wa-preview-container { max-width: 450px; background: #111b21; padding: 15px; border-radius: 12px; }
.wa-preview-card { background: #004d40; border-radius: 8px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-decoration: none; display: block; }
.wa-preview-img-wrapper { position: relative; width: 100%; padding-top: 56.25%; background: #000; overflow: hidden; }
.wa-preview-img-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(10px); opacity: 0.5; }
.wa-preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.wa-preview-info { padding: 12px 15px; background: #013b31; color: #fff; }
.wa-preview-info-title { font-weight: 600; font-size: 16px; margin: 0 0 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-preview-info-desc { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0 0 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-preview-info-link { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; display: flex; align-items: center; gap: 4px; }
.wa-preview-actions { margin-top: 20px; display: flex; gap: 10px; }

/* Widget Generator */
.rf-widget-section { margin-top: 40px; padding: 40px; background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.rf-widget-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; }
.rf-widget-form { display: flex; flex-direction: column; gap: 20px; }
.rf-widget-form-group { display: flex; flex-direction: column; gap: 8px; }
.rf-widget-form-group label { font-weight: 600; color: #374151; font-size: 0.95rem; }
.rf-widget-form-group input[type="color"] { width: 100%; height: 45px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; padding: 2px; }
.rf-widget-form-group textarea { width: 100%; height: 120px; padding: 15px; border: 1px solid #d1d5db; border-radius: 8px; font-family: monospace; font-size: 0.9rem; resize: none; background: #f9fafb; color: #111827; }
.rf-widget-preview-box { background: #f3f4f6; padding: 20px; border-radius: 16px; display: flex; justify-content: center; align-items: center; border: 2px dashed #d1d5db; min-height: 400px; overflow: hidden; width: 100%; box-sizing: border-box; }

/* Share Modal */
.rf-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.rf-modal.active { display: flex; opacity: 1; }
.rf-modal-content { background: #fff; padding: 40px; border-radius: 24px; max-width: 500px; width: 90%; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.rf-modal.active .rf-modal-content { transform: scale(1); }
.rf-modal-close { position: absolute; top: 20px; right: 20px; background: #f3f4f6; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background 0.2s; }
.rf-modal-close:hover { background: #e5e7eb; color: #ef4444; }

@media (max-width: 768px) {
    .rf-widget-grid { grid-template-columns: 1fr; }
    .rf-widget-preview-box { padding: 10px; min-height: 300px; }
    .rf-modal-content { padding: 25px; }
}

@media (max-width: 768px) { .rf-single-layout { flex-direction: column; align-items: center; text-align: center; gap: 30px; } .rf-single-content-wrapper { padding: 0 20px; } .rf-single-logo-container { width: 250px; height: 250px; } .rf-single-badges { justify-content: center; } .rf-single-actions { justify-content: center; } .rf-single-share-actions { justify-content: center; } .rf-single-hero { min-height: 350px; margin-bottom: -50px; } .rf-single-title { font-size: 2.2rem; } }
