/* Bits Rugby Frontend Styles (Web & Desktop) */
.bits-rugby-container {
    max-width: 100%;
    margin: 1.5rem 0;
    font-family: inherit;
    box-sizing: border-box;
}

.bits-table-header {
    margin-bottom: 0.75rem;
}

.bits-table-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.bits-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.bits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.bits-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.bits-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    white-space: nowrap;
}

.bits-table tr:hover td {
    background: #f8fafc;
}

.bits-row-top td {
    background: #fffbeb;
}

.bits-club-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bits-crest-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.bits-crest-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bits-form-pills {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.bits-form-pill {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    border-radius: 3px;
    color: #fff;
}

.bits-form-w { background: #16a34a; }
.bits-form-d { background: #d97706; }
.bits-form-l { background: #dc2626; }

/* Matches Grid */
.bits-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.bits-match-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.bits-match-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.bits-match-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.bits-match-team {
    flex: 1;
    font-size: 0.9rem;
}

.bits-match-team.away {
    text-align: right;
}

.bits-match-score {
    font-weight: 800;
    font-family: monospace;
    font-size: 1.1rem;
    background: #f1f5f9;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    color: #0f172a;
}

.bits-match-card-footer {
    font-size: 0.75rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.5rem;
}

.bits-stream-link {
    color: #dc2626;
    font-weight: bold;
    text-decoration: none;
}

/* Full Hub Tabs */
.bits-rugby-hub-wrap {
    margin: 1.5rem 0;
}

.bits-hub-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

.bits-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.bits-tab-btn:hover {
    color: #0f172a;
}

.bits-tab-btn.active {
    color: #d97706;
    border-bottom-color: #d97706;
}

/* =========================================================
   [bits_presentation] Card Styling
   ========================================================= */
.bits-presentation-card {
    background: linear-gradient(135deg, #0b0f19 0%, #172033 100%);
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 1.25rem;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    margin: 1.5rem 0;
}

.bits-pres-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bits-pres-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.bits-pres-meta {
    color: #94a3b8;
    font-size: 0.8rem;
}

.bits-pres-stream-pill {
    background: #ef4444;
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bits-pres-stream-pill:hover {
    opacity: 0.9;
}

.bits-pres-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

.bits-pres-team {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.bits-pres-crest {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bits-pres-crest-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bits-pres-team-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.bits-pres-team-rank {
    font-size: 0.75rem;
    color: #94a3b8;
}

.bits-pres-center {
    text-align: center;
    min-width: 140px;
}

.bits-pres-score, .bits-pres-vs {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: monospace;
    color: #fbbf24;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.bits-pres-status {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.bits-pres-venue {
    font-size: 0.75rem;
    color: #64748b;
}

.bits-pres-spotlights {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.bits-pres-spotlight-box {
    flex: 1;
    min-width: 200px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
}

.bits-pres-spot-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.bits-pres-spot-stats {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

.bits-pres-dim {
    color: #64748b;
    font-style: italic;
}

