/* Implemented from the supplied ui_design_specification.md. */
.news-card-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    width: 260px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(204, 0, 0, 0.15);
    border-color: rgba(204, 0, 0, 0.3);
}

.ch-switch-btn {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.ch-switch-btn:hover {
    transform: translateY(-4px) !important;
    border-color: var(--brand-red, #D71920) !important;
    background: #FFF1F2 !important;
    box-shadow: 0 10px 24px rgba(215, 25, 32, 0.14) !important;
}

.news-card-img-box {
    overflow: hidden;
    border-radius: 8px;
}

.news-card-img-box img {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.newspaper-card-item:hover .news-card-img-box img,
.lead-story-card:hover .lead-story-img-box img {
    transform: scale(1.05);
}

.article-headline-main a:hover,
.news-card-title a:hover,
.newspaper-card-name:hover {
    color: var(--brand-red, #D71920) !important;
    transition: color 0.18s ease !important;
}

.breaking-bar__track:hover,
.ticker-inner:hover {
    animation-play-state: paused;
}

.news-card-btn .details-btn {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.news-card-btn .details-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.ch-switch-btn {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ch-switch-btn:hover {
    transform: translateY(-4px) !important;
    border-color: #D71920 !important;
    background: #FFF1F2 !important;
    box-shadow: 0 10px 24px rgba(215, 25, 32, 0.14) !important;
}

.ch-switch-btn.active {
    border-color: #D71920 !important;
    background: #FEF2F2 !important;
    box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.25) !important;
}

.category-filter-btn {
    border-radius: 20px;
    padding: 6px 18px;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.category-filter-btn.active {
    background: var(--brand-red, #D71920);
    color: #FFFFFF;
    border-color: var(--brand-red, #D71920);
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.25);
}

.mobile-center-play-pulse {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 26px;
    animation: playPulseAnim 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes playPulseAnim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.unmute-shield-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.unmute-shield-btn:hover {
    background: #DC2626;
    border-color: #DC2626;
    transform: scale(1.05);
}

.live-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    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 8px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.audio-equalizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.eq-bar {
    width: 3px;
    background: var(--brand-red, #D71920);
    border-radius: 3px;
    animation: eqJump 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.1s; }

@keyframes eqJump {
    0% { height: 4px; }
    100% { height: 20px; }
}

.live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(229, 29, 54, 0.92);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.live-badge__dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

:root {
    --brand-red: #D71920;             /* প্রাতিষ্ঠানিক প্রধান লাল */
    --brand-red-dark: #B91C1C;        /* গাঢ় লাল শ্যাডো */
    --brand-red-light: #FFF1F2;       /* কার্ড হোভার ও পিঙ্কিশ হাইলাইট */
    --brand-red-glow: rgba(215, 25, 32, 0.15); /* এলিভেশন গ্লো */

    --bg-white: #FFFFFF;              /* পিউর হোয়াইট কার্ড ব্যাকগ্রাউন্ড */
    --border-subtle: #E2E8F0;         /* মডার্ন স্লিম বর্ডার */
    --border-hover: #CBD5E1;          /* ইন্টারঅ্যাক্টিভ বর্ডার */
    --text-primary: #1E293B;          /* প্রধান হেডলাইন ডার্ক কালার */
    --text-muted: #64748B;            /* সাবটাইটেল ও বর্ণনা কালার */

    --font-bangla: 'Noto Serif Bengali', 'SolaimanLipi', serif;
    --font-ui: 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
}

/* Fluid layouts, accessible focus, and actual player activity. */
.newspaper-card-item.news-card-btn{width:100%;min-width:0;max-width:none;padding:20px}
.lead-story-card{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.lead-story-card:hover{transform:translateY(-5px);box-shadow:0 12px 25px rgba(204,0,0,.15);border-color:rgba(204,0,0,.3)}
.player-tools{display:flex;flex-wrap:wrap;gap:8px}.player-tools .btn-tool{flex:0 0 auto;min-height:36px}
.player-live-badge.live-badge{position:static}.ch-switch-btn{min-width:0}.ch-switch-btn:focus-visible,.category-filter-btn:focus-visible,.btn-tool:focus-visible,.details-btn:focus-visible{outline:3px solid #D71920;outline-offset:3px}
.auto-health{background:#fff;border:1px solid #E2E8F0;border-radius:16px;padding:20px;color:#1E293B}
.auto-health-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.auto-health h3{font-weight:800;font-size:17px}.auto-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.auto-health-job{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:12px;padding:12px;font-size:12px}.auto-health-job strong{display:block;margin-bottom:6px}.auto-health-error{color:#B91C1C}.auto-health-ok{color:#047857}
.auto-health button{background:#D71920;color:white;border-radius:8px;padding:9px 14px;cursor:pointer;font-weight:700}.auto-health button:disabled{opacity:.5;cursor:wait}
@media(max-width:640px){.auto-health-grid{grid-template-columns:1fr}.newspaper-card-item.news-card-btn{padding:16px}.ch-switch-btn:hover,.lead-story-card:hover{transform:none}.mobile-center-play-pulse{width:56px;height:56px}}
@media(prefers-reduced-motion:reduce){.live-dot-pulse,.live-badge__dot,.mobile-center-play-pulse,.eq-bar{animation:none!important}.news-card-btn,.ch-switch-btn,.lead-story-card,.news-card-img-box img{transition:none!important;transform:none!important}}

.font-bn{font-family:var(--font-ui)}.font-serif-bn{font-family:var(--font-bangla)}
.fs-drawer-item:hover{transform:translateX(-2px);background:rgba(215,25,32,.12)}
