/* ==========================================================================
   GLOBAL PLAYER (IFRAME & FLOATING BTN)
   ========================================================================== */
.player-fixed {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 768px;
    z-index: 100;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.player-fixed.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

.iframe-player-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.close-player-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    color: var(--text-primary);
    border-radius: var(--radius-full);
}

.close-player-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.floating-player-btn {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #121212; /* Ícone escuro para dar contraste premium no botão dourado */
    border: none;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 90;
    transition: transform 0.2s, background 0.2s;
}

.floating-player-btn:hover {
    transform: scale(1.1);
}

.pulse-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: var(--accent-live); /* Bolinha vermelha de gravando/live no cantinho do botão dourado */
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-live);
}

.pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-live);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ==========================================================================
   BOTTOM NAVIGATION
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 110;
    border-top: 1px solid var(--glass-border);
    border-bottom: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    width: 20%;
    height: 100%;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-item.active i {
    transform: translateY(-2px);
    font-weight: bold;
    /* Dependendo do icon set (phosphor: usar fill) */
}

/* Específico para Whatsapp */
.wpp-link {
    color: #22c55e;
    /* Verde WhatsApp */
}

/* ==========================================================================
   CARDS & FEED (Reutilizáveis)
   ========================================================================== */

/* Feed Grid (Horizontal para Home) */
.horizontal-feed {
    display: flex;
    overflow-x: auto;
    padding: 0 20px 20px;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-feed::-webkit-scrollbar {
    display: none;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 260px;
    scroll-snap-align: start;
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    box-shadow: var(--shadow-soft);
}

.card-city-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.card-city-badge i {
    font-size: 0.85rem;
    color: #fbbf24; /* amarelo — contraste suave no escuro */
}

.play-overlay-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.card-content {
    padding: 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Vertical Feed (Para Páginas Internas) */
.vertical-feed {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px;
    gap: 16px;
}

.vertical-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 110px;
    box-shadow: var(--shadow-soft);
}

.vertical-card .card-img-wrapper {
    width: 110px;
    height: 100%;
    flex-shrink: 0;
}

.vertical-card .card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vertical-card .card-title {
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.vertical-card .play-overlay-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
}

/* ==========================================================================
   INLINE NEWS AUDIO PLAYER
   ========================================================================== */
.news-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-main);
    border-top: 1px solid var(--glass-border);
    user-select: none;
}

.news-audio-player .play-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: transform 0.15s, background 0.2s;
}

.news-audio-player .play-btn:hover {
    transform: scale(1.08);
    background: var(--accent-secondary);
}

.news-audio-player .play-btn.playing {
    background: var(--accent-secondary);
}

.news-audio-player .player-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.news-audio-player .player-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.news-audio-player .player-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-audio-player .player-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-audio-player .player-progress {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    background: var(--glass-border);
    cursor: pointer;
    outline: none;
}

.news-audio-player .player-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.news-audio-player .player-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
}

.news-audio-player .speed-btn {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.news-audio-player .speed-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}