/* ============================================
   Homepage Banner Carousel
   ============================================ */

#homeBanner {
    margin: 0;
    border-radius: 0;
    max-height: 180px;
    overflow: visible;
    background: #1a1a2e;
    position: relative;
    z-index: 200;
    padding-bottom: 0;
}

.banner-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-img {
    width: 100%;
    height: 180px;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.banner-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    text-align: left;
    border-radius: 0;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-bottom: 2px;
}

.banner-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.banner-btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#homeBanner .carousel-indicators {
    margin-bottom: 6px;
}

#homeBanner .carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 3px;
}

#homeBanner .carousel-indicators button.active {
    background: #fff;
}

#homeBanner .carousel-control-prev,
#homeBanner .carousel-control-next {
    width: 40px;
    opacity: 0.4;
}

#homeBanner .carousel-control-prev:hover,
#homeBanner .carousel-control-next:hover {
    opacity: 0.8;
}

/* ============================================
   Announcement Bar
   ============================================ */

.announcement-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 44px;
}

.announcement-scroll-inner {
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.announcement-scroll-inner::-webkit-scrollbar {
    display: none;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.announcement-item:hover {
    opacity: 0.85;
}

.ann-pin-icon {
    font-size: 11px;
}

.ann-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ann-badge {
    font-size: 11px;
}

#announcementModal .modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #fff;
}

#announcementModal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 20px;
}

#announcementModal .modal-title {
    font-size: 16px;
    font-weight: 700;
}

#announcementModal .modal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
}

#announcementModal .modal-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 20px;
}

#announcementModal .btn-close {
    filter: invert(1);
    opacity: 0.5;
}

#announcementModal .btn-close:hover {
    opacity: 0.8;
}

.ann-badge.system { opacity: 0.9; }
.ann-badge.promotion { opacity: 0.9; }
.ann-badge.activity { opacity: 0.9; }
.ann-badge.maintenance { opacity: 0.9; }

/* ============================================
   Match List & Cards
   ============================================ */

.match-list { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 100px; }
.page-content .match-card, .page-wrapper .match-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1); animation: fadeInUp 0.4s ease both; cursor: pointer; margin: 0 0 0 0 !important; }
.match-card:active { transform: scale(0.98); }
.match-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; }
.league-info { display: flex; align-items: center; gap: 6px; }
.league-logo { width: 18px; height: 18px; object-fit: contain; }
.league-name { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.popular-badge { font-size: 11px; }
.live-badge { background: rgba(230,57,70,0.15); color: var(--primary); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.blink-badge { animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.finished-badge { background: rgba(255,255,255,0.06); color: var(--text-muted); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.countdown-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.time-badge-normal { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.time-badge-warning { background: rgba(255,193,7,0.15); color: var(--accent-yellow); }
.time-badge-danger { background: rgba(230,57,70,0.15); color: var(--primary); }
.match-card-body { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 12px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.team-logo-wrap { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 8px; }
.team-logo { width: 32px; height: 32px; object-fit: contain; }
.team-name { font-size: 12px; font-weight: 600; color: var(--text-primary); text-align: center; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; }
.score { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 800; color: var(--text-primary); }
.score-none .home-score, .score-none .away-score { color: var(--text-muted); }
.score-sep { color: var(--text-muted); }
.match-time { font-size: 10px; color: var(--text-muted); }
.match-card-footer { padding: 6px 14px; border-top: 1px solid var(--border-color); }
.match-extra { font-size: 11px; color: var(--text-muted); }

/* Odds panel */
.match-card.expanded .match-card-body { border-bottom: 1px solid var(--border-color); padding-bottom: 14px; }
.match-odds-panel { padding: 12px 14px 14px; }
.odds-tabs { display: flex; gap: 4px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px; }
.odds-tab { padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.06); color: var(--text-muted); border: none; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.odds-tab.active { background: var(--primary); color: white; }
.odds-tab:active { opacity: 0.8; }
.odds-grid { display: none; }
.odds-grid.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.odds-btn { background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.odds-btn:active { transform: scale(0.95); }
.odds-btn.selected { background: rgba(230,57,70,0.15); border-color: var(--primary); }
.odds-label { font-size: 10px; color: var(--text-muted); text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.odds-btn.selected .odds-value { color: var(--primary); }

/* ============================================
   Fixed Header Bars
   ============================================ */

/* Filter bar */
.filter-bar { display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.filter-chip { padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.filter-chip:active { opacity: 0.8; }
.live-dot { display: inline-block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin-right: 4px; animation: blink 1.5s infinite; }
.filter-sep { color: var(--text-muted); font-size: 11px; padding: 0 2px; display: flex; align-items: center; }

/* League scroll */
.league-scroll-bar { background: var(--bg-card); padding: 0 16px 8px; border-bottom: 1px solid var(--border-color); }
.league-scroll-inner { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.league-chip { display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.league-chip.active { background: rgba(230,57,70,0.15); border-color: var(--primary); color: var(--primary); }
.chip-league-logo { width: 14px; height: 14px; object-fit: contain; }

/* Bet mode bar */
.bet-mode-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.bet-mode-toggle { display: flex; gap: 6px; width: 100%; }
.mode-btn { flex: 1; padding: 7px 14px; border-radius: 10px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s; }
.mode-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.mode-btn:active { opacity: 0.8; }
.parlay-count-btn { display: flex; align-items: center; gap: 5px; padding: 7px 12px; background: rgba(230,57,70,0.15); border: 1px solid var(--primary); border-radius: 10px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.parlay-badge { background: var(--primary); color: white; font-size: 10px; padding: 1px 6px; border-radius: 8px; }

/* Pending slip hint */
.slip-hint-bar { display: flex; align-items: center; gap: 6px; padding: 7px 16px; background: rgba(255,193,7,0.1); border-bottom: 1px solid rgba(255,193,7,0.3); font-size: 11px; color: var(--accent-yellow); }
.slip-hint-bar.hidden { display: none; }

/* ============================================
   Bet Slip & Floating Button
   ============================================ */

.betslip-bar { position: fixed; bottom: 70px; left: 0; right: 0; background: var(--primary); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; z-index: 999; }
.betslip-bar .slip-info { color: white; font-size: 13px; font-weight: 600; }
.betslip-bar .slip-btn { background: white; color: var(--primary); border: none; border-radius: 10px; padding: 8px 20px; font-size: 13px; font-weight: 700; cursor: pointer; }
.betslip-bar.hidden { display: none; }

#slipToast { position: fixed; bottom: 140px; left: 50%; transform: translateX(-50%); background: rgba(22,33,62,0.95); border: 1px solid var(--accent-green); border-radius: 12px; padding: 10px 18px; font-size: 13px; color: var(--accent-green); z-index: 9999; display: none; align-items: center; gap: 8px; }

.float-bet-btn { position: fixed; bottom: 140px; right: 16px; width: 52px; height: 52px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; z-index: 950; text-decoration: none; box-shadow: 0 6px 20px rgba(230,57,70,0.5); }
.float-bet-btn:active { transform: scale(0.9); }
.float-badge { position: absolute; top: -4px; right: -4px; background: white; color: var(--primary); font-size: 11px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ============================================
   Modals
   ============================================ */

#singleBetModal .modal-content { background: var(--bg-card) !important; border: 1px solid var(--border-color); border-radius: 16px; }
#singleBetModal .modal-header { border-bottom: 1px solid var(--border-color); padding: 16px; }
#singleBetModal .modal-title { color: var(--text-primary); font-size: 16px; font-weight: 700; }
#singleBetModal .modal-body { padding: 16px; }
#singleBetModal .btn-close { filter: invert(1); }
.modal-info-row { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.modal-info-row span:last-child { color: var(--text-primary); font-weight: 600; }
#modalOdds { color: var(--primary); font-weight: 700; }
#modalPotentialWin { color: var(--accent-green); font-weight: 700; }
.quick-amounts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.quick-amt-btn { flex: 1; min-width: 50px; padding: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.quick-amt-btn:active { background: rgba(255,255,255,0.12); }
.modal-confirm-btn { width: 100%; margin-top: 14px; background: var(--primary); color: white; border: none; border-radius: 12px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.modal-confirm-btn:active { opacity: 0.85; }

/* ============================================
   Loading & Misc
   ============================================ */

.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,26,46,0.8); z-index: 9998; display: flex; align-items: center; justify-content: center; }
.spinner-app { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay.hidden { display: none; }

.tab-badge { background: var(--primary); color: white; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 8px; margin-left: 4px; }

.load-more-wrap { text-align: center; padding: 16px; }
.btn-load-more { background: rgba(255,255,255,0.06); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-secondary); padding: 10px 24px; font-size: 13px; cursor: pointer; }
.btn-load-more:active { background: rgba(255,255,255,0.1); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-text { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--text-muted); }

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes goalFlash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 20px rgba(230,57,70,0.8); } }
.goal-flash { animation: goalFlash 0.6s ease; }
