.custom-gradient-border {
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #ff0000, #990000, #000000) 1;
}

.hero-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.radio-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 60s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes logo-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
    }
}

.logo-glow {
    animation: logo-glow 3s ease-in-out infinite;
}

/* Facebook FM Vida Widget Styles */
.facebook-widget {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    border-left: 4px solid #ff0000;
    padding-left: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title .dot {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
}

.fb-container iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 6px;
}

/* FM Retro Widget Styles */
.fbcard {
    width: 100%;
    margin: 0 auto 18px;
    padding: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff1a1a 0%, #1a0000 45%, #000 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

.fbcard-head {
    padding: 10px 12px;
    color: #fff;
    font: 900 15px/1.1 system-ui, Roboto, Inter, Arial;
    text-transform: uppercase;
    letter-spacing: .3px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .25));
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: .55rem;
}

.fbcard-head .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff1a1a;
    box-shadow: 0 0 8px #ff1a1a;
}

.fbcard-body {
    background: #0d0d0d;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.fbcard-body iframe {
    border-radius: 0 0 16px 16px;
}

/* Base styles for externalized components */
.main-logo-img {
    width: 75%;
    max-height: 280px;
    display: block;
    margin: 30px auto;
    object-fit: contain;
}

.fb-iframe {
    border: none !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
}

/* Radio Grid & Cards CSS - REPAIRED */
.radio-section {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
}

.radio-card {
    background: #111;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    border: 1px solid #222;
    transition: .3s;
    width: 320px;
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, .4);
}

.radio-card img {
    width: 120px;
    margin-bottom: 15px;
}

.radio-card h3 {
    color: #fff;
    font-size: 22px;
    margin: 10px 0;
}

.radio-card p {
    color: #bbb;
    font-size: 14px;
}

.radio-btn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
}

.radio-btn:hover {
    background: #cc0000;
}

/* Sidebar Ad Carousel CSS */
.mu-ad-carousel {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 12px auto 16px;
    background: #111;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid #222;
    box-shadow: 0 0 10px #000;
}

.mu-ad-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
}

/* Slides */
.mu-ad-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .45s ease, transform .45s ease;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

.mu-ad-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.mu-ad-dots {
    z-index: 3;
    position: relative;
}

/* Prevent click issues */
.mu-slide-cta * {
    pointer-events: none;
}

/* Slide 1: Image Marco */
.mu-img-box {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #151515 0%, #0e0e0e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .35);
}

.mu-img-box::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff1a1a 0%, rgba(255, 26, 26, .5) 40%, rgba(255, 26, 26, 0) 100%);
    box-shadow: 0 0 10px rgba(255, 26, 26, .8);
}

.mu-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Slide 2: CTA */
.mu-slide-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mu-cta {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: radial-gradient(60% 60% at 50% 40%, rgba(255, 26, 26, .22), transparent 70%),
        linear-gradient(135deg, #1a1a1a 0%, #0e0e0e 100%);
    border: 1px solid #222;
    border-radius: 12px;
}

.mu-cta strong {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1px;
}

.mu-cta span {
    font-size: 16px;
    font-weight: 700;
    opacity: .95;
}

.mu-cta em {
    font-style: normal;
    font-size: 12px;
    color: #e5e5e5;
    opacity: .85;
}

.mu-cta u {
    text-underline-offset: 3px;
}

/* Slide 3: Brand Card */
.mu-slide-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mu-brand {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: radial-gradient(50% 50% at 50% 35%, rgba(255, 26, 26, .18), transparent 70%),
        linear-gradient(160deg, #171717 0%, #0d0d0d 100%);
    border: 1px solid #222;
    border-radius: 12px;
}

.mu-brand b {
    font-size: 28px;
    letter-spacing: 1px;
}

.mu-brand b span {
    color: #ff1a1a;
    text-shadow: 0 0 10px rgba(255, 26, 26, .55);
}

.mu-brand i {
    font-style: normal;
    opacity: .9;
}

.mu-brand em {
    font-style: normal;
    font-size: 12px;
    color: #e5e5e5;
    opacity: .8;
}

/* Carousel Dots */
.mu-ad-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}

.mu-ad-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #3a3a3a;
    cursor: pointer;
    opacity: .85;
}

.mu-ad-dots button[aria-selected="true"] {
    background: #ff1a1a;
    box-shadow: 0 0 6px #ff1a1a;
    opacity: 1;
}