.marquee-container {
    background: linear-gradient(135deg, #e91e63 0%, #f50057 100%);
    height: 40px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    position: relative;
}

@media (min-width: 992px) {
    .marquee-container.desktop-marquee {
        background: linear-gradient(135deg, #FF1493 0%, #FF69B4 100%);
        box-shadow: 0 2px 8px rgba(255, 20, 147, 0.3);
    }
}

.marquee-container.desktop-marquee,
.marquee-container.mobile-marquee {
    display: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.marquee-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-primary, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInOut 4s ease-in-out infinite;
    width: 95%;
    text-align: center;
    padding: 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(10px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@media (min-width: 992px) {
    .marquee-container.desktop-marquee {
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .marquee-container.mobile-marquee {
        display: none;
    }
    
    .marquee-text {
        font-size: 15px;
    }
}

@media (max-width: 991.98px) {
    .marquee-container.desktop-marquee {
        display: none;
    }
    
    .marquee-container.mobile-marquee {
        display: block;
        height: 36px;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
    }
    
    .marquee-text {
        font-size: 13px;
        max-width: 90%;
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .marquee-container {
        height: 38px;
    }
    
    .marquee-text {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .marquee-container.mobile-marquee {
        height: 34px;
    }
    
    .marquee-text {
        font-size: 11px;
        max-width: 85%;
        padding: 0 8px;
    }
}

@supports (-webkit-touch-callout: none) {
    .marquee-text {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

@media (prefers-contrast: high) {
    .marquee-container {
        background: linear-gradient(135deg, #c2185b 0%, #d81b60 100%);
        border-bottom: 2px solid #ffffff;
    }
    
    .marquee-text {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-text {
        animation: none;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.marquee-container:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

@media (prefers-color-scheme: dark) {
    .marquee-container {
        box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
    }
}
