/* Action Sport Ticker - Bottom Bar */

#ast-ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex !important;
    align-items: center;
    height: 42px;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 14px;
    direction: rtl;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
    overflow: hidden;
}

#ast-ticker-label {
    flex-shrink: 0;
    padding: 0 14px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border-left: 2px solid rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}

#ast-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

#ast-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    gap: 0;
    /* لا نستخدم CSS animation هنا - يتحكم JS في الحركة */
}

.ast-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    cursor: default;
    transition: opacity 0.2s;
}

.ast-ticker-item:hover {
    opacity: 0.85;
}

.ast-ticker-item a {
    color: inherit !important;
    text-decoration: none !important;
}

.ast-ticker-item a:hover {
    text-decoration: underline !important;
}

.ast-ticker-separator {
    display: inline-block;
    padding: 0 5px;
    opacity: 0.5;
    font-size: 16px;
}

.ast-cat-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    white-space: nowrap;
}

.ast-cat-breaking  { background: rgba(255,255,255,0.3); }
.ast-cat-results   { background: rgba(39,174,96,0.5); }
.ast-cat-fixtures  { background: rgba(41,128,185,0.5); }
.ast-cat-transfers { background: rgba(142,68,173,0.5); }
.ast-cat-coaches   { background: rgba(230,126,34,0.5); }

#ast-ticker-controls {
    flex-shrink: 0;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.15);
    border-right: 2px solid rgba(255,255,255,0.3);
    gap: 6px;
}

#ast-ticker-pause {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: inherit;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s;
}

#ast-ticker-pause:hover {
    background: rgba(255,255,255,0.2);
}

/* Push page content up so ticker doesn't overlap footer */
body.ast-ticker-active {
    padding-bottom: 42px !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    #ast-ticker-bar {
        height: 38px;
        font-size: 13px;
    }
    #ast-ticker-label {
        font-size: 11px;
        padding: 0 10px;
    }
    body.ast-ticker-active {
        padding-bottom: 38px !important;
    }
}
