/* Estilos Específicos da Rádio PMF baseados no design */

.radio-header-block {
    background: radial-gradient(circle at 70% 40%, rgb(0 177 235 / 0.22), transparent 62%);
    background-color: #003063;
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 48, 99, 0.2);
}

.radio-header-block .radio-subtitle {
    color: #4dc3ff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.radio-header-block h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: bolder;
    margin: 0 0 1rem 0;
}

.radio-header-block p.desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Equalizador decorativo abaixo da descrição */

/* Equalizador decorativo abaixo da descrição */
.radio-wave-decoration {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 28px;
    margin-bottom: 2rem;
}

.radio-wave-decoration span {
    display: block;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, #4dc3ff 0%, #00a0e3 100%);
    transform-origin: bottom;
    animation: radio-wave-pulse 1.3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.radio-wave-decoration span:nth-child(1) {
    height: 30%;
    animation-delay: 0s;
}

.radio-wave-decoration span:nth-child(2) {
    height: 55%;
    animation-delay: 0.1s;
}

.radio-wave-decoration span:nth-child(3) {
    height: 78%;
    animation-delay: 0.2s;
}

.radio-wave-decoration span:nth-child(4) {
    height: 100%;
    animation-delay: 0.3s;
}

.radio-wave-decoration span:nth-child(5) {
    height: 78%;
    animation-delay: 0.4s;
}

.radio-wave-decoration span:nth-child(6) {
    height: 55%;
    animation-delay: 0.5s;
}

.radio-wave-decoration span:nth-child(7) {
    height: 30%;
    animation-delay: 0.6s;
}

@keyframes radio-wave-pulse {

    0%,
    100% {
        transform: scaleY(0.08);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.radio-player-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
}

.radio-player-container .player-info {
    margin-bottom: 1rem;
}

.radio-player-container .player-info .meta {
    color: #4dc3ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.radio-player-container .player-info h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.radio-player-container .player-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Caixa de aviso de demonstração */
.radio-demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.radio-demo-notice i {
    color: #4dc3ff;
    margin-top: 2px;
    flex-shrink: 0;
}

.radio-player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.radio-btn-play {
    background-color: white;
    color: #003063;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.radio-btn-play:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.radio-btn-outline {
    background-color: transparent;
    color: white !important;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-btn-outline:hover {
    color: #00B1EB !important;
    border-color: #00B1EB;
}

/* Listagem de Episódios */
.radio-section-title {
    color: #003063;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.radio-episode-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.radio-episode-play {
    background-color: #00a0e3;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 160, 227, 0.3);
}

.radio-episode-play:hover {
    transform: scale(1.1);
    background-color: #09b0f8;
}

.radio-episode-content {
    flex-grow: 1;
}

.radio-episode-meta {
    color: #00a0e3;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.radio-episode-title {
    color: #003063;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.radio-episode-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.radio-episode-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-episode-duration {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-episode-action {
    color: #00a0e3;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-episode-action:hover {
    color: #006b9e;
}

/* Filtros Sidebar */
.radio-sidebar-title {
    color: #003063;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.radio-filter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.radio-filter-list li {
    margin-bottom: 0.5rem;
}

.radio-filter-list a {
    color: #00a0e3;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.radio-filter-list a:hover,
.radio-filter-list a.active {
    background-color: #f0f9ff;
    color: #008cc9;
}

/* Categorias Pills */
.radio-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.radio-pill {
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #003063;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.radio-pill:hover,
.radio-pill.active {
    background-color: #003063;
    color: white;
    border-color: #003063;
}

.radio-voltar {
    color: #003063;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.radio-voltar:hover {
    color: #00a0e3;
}

/* ==========================================================================
   RADIO - METODO MOBILE
   ========================================================================== */

/* Estrutura do cabeçalho de filtros (Desktop padrão) */
.sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0 0.2rem;
}

/* Diminui a fonte do título "FILTROS" */
.sidebar-mobile-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00a0e3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Esconde o X por padrão no Desktop */
.sidebar-mobile-header .close-icon {
    display: none;
}

/* Posiciona e estiliza o link "Limpar" */
.sidebar-mobile-header .btn-limpar {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.sidebar-mobile-header .btn-limpar:hover {
    color: #00a0e3;
}

/* Botão para abrir o filtro no mobile */
.btn-abrir-filtros {
    display: none;
    background-color: #1354a8;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0, 48, 99, 0.3);
    align-items: center;
    gap: 0.5rem;
}

/* Fundo escuro */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 10000;
}

.sidebar-overlay.open {
    display: block;
}

/* Regras Mobile */
@media (max-width: 768px) {
    .page-content {
        padding: 5px 10px !important;
    }

    .btn-abrir-filtros {
        display: flex;
    }

    .radio-sidebar {
        position: fixed !important;
        top: 0;
        left: -100%;
        height: 100vh !important;
        width: 85% !important;
        max-width: 320px !important;
        background-color: #f8fafc !important;
        z-index: 10001 !important;
        overflow-y: auto !important;
        padding: 1.5rem !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .radio-sidebar.open {
        left: 0 !important;
    }

    /* Ajustes específicos do cabeçalho no Mobile */
    .sidebar-mobile-header {
        align-items: center;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Exibe o X apenas no mobile */
    .sidebar-mobile-header .close-icon {
        display: inline-block;
        cursor: pointer;
        color: #00a0e3;
        font-size: 1.3rem;
        line-height: 1;
    }

    .sidebar-mobile-header .btn-limpar {
        color: #00a0e3;
        font-weight: 600;
        font-size: 0.9rem;
        margin-top: 0;
    }

    .radio-sidebar .sf-card {
        border: none !important;
        border-radius: 0 !important;
        padding: 1rem 0 !important;
        margin-bottom: 0.5rem !important;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .radio-sidebar .sf-card:last-of-type {
        border-bottom: none !important;
        margin-top: auto !important;
    }
}