/**
 * Basketball Tournament Manager - Frontend Styles
 *
 * @package BasketballTournamentManager
 * @since 1.0.0
 */

/* ==========================================================================
   Tournament Bracket
   ========================================================================== */

.btm-bracket {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.btm-bracket-header {
    margin-bottom: 30px;
    text-align: center;
}

.btm-bracket-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.btm-bracket-description {
    color: #666;
    font-size: 14px;
}

.btm-bracket-rounds {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.btm-bracket-round {
    flex: 0 0 auto;
    min-width: 280px;
}

.btm-round-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #2271b1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btm-round-matches {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.btm-match {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.btm-match:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.btm-match-completed {
    border-color: #4caf50;
}

.btm-match-in_progress {
    border-color: #ff9800;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 152, 0, 0); }
}

.btm-match-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.btm-match-date,
.btm-match-venue {
    margin-bottom: 4px;
}

.btm-match-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btm-match-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btm-match-team:hover {
    background: #e9ecef;
}

.btm-team-winner {
    background: #e8f5e9;
    font-weight: 600;
}

.btm-team-winner:hover {
    background: #d4edd6;
}

.btm-team-name {
    flex: 1;
    font-size: 14px;
    color: #1a1a1a;
}

.btm-team-score {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
    margin-left: 10px;
}

.btm-team-winner .btm-team-score {
    color: #2e7d32;
}

.btm-match-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btm-match-overtime {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: #ff9800;
    font-weight: 600;
}

/* ==========================================================================
   Standings Table
   ========================================================================== */

.btm-standings-wrapper {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.btm-standings-table {
    width: 100%;
    border-collapse: collapse;
}

.btm-standings-table thead {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
}

.btm-standings-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.btm-standings-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.btm-standings-table tbody tr:last-child td {
    border-bottom: none;
}

.btm-standings-table tbody tr:hover {
    background-color: #f8f9fa;
}

.btm-standing-row.btm-position-1 {
    background: #fff9e6;
}

.btm-standing-row.btm-position-2,
.btm-standing-row.btm-position-3 {
    background: #f5f5f5;
}

.btm-col-position {
    font-weight: 700;
    color: #2271b1;
    width: 50px;
}

.btm-col-team {
    font-weight: 600;
    min-width: 180px;
}

.btm-col-gp,
.btm-col-wins,
.btm-col-losses,
.btm-col-ties {
    text-align: center;
    width: 60px;
}

.btm-col-points {
    text-align: center;
    width: 70px;
    font-size: 16px;
}

.btm-col-pf,
.btm-col-pa,
.btm-col-diff {
    text-align: center;
    width: 70px;
}

.btm-col-diff.btm-positive {
    color: #2e7d32;
    font-weight: 600;
}

.btm-col-diff.btm-negative {
    color: #c62828;
    font-weight: 600;
}

.btm-col-streak {
    text-align: center;
    width: 80px;
}

.btm-streak {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.btm-streak-win {
    background: #e8f5e9;
    color: #2e7d32;
}

.btm-streak-loss {
    background: #ffebee;
    color: #c62828;
}

.btm-standings-legend {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.btm-legend-item {
    display: flex;
    gap: 5px;
}

.btm-legend-item strong {
    color: #1a1a1a;
}

/* ==========================================================================
   Match Schedule
   ========================================================================== */

.btm-schedule-list {
    margin: 20px 0;
}

.btm-schedule-date-group {
    margin-bottom: 30px;
}

.btm-schedule-date {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #2271b1;
    color: #1a1a1a;
}

.btm-schedule-match {
    display: flex;
    gap: 20px;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btm-schedule-match:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.btm-schedule-match.btm-match-status-completed {
    border-left: 4px solid #4caf50;
}

.btm-schedule-match.btm-match-status-in_progress {
    border-left: 4px solid #ff9800;
    background: #fff9e6;
}

.btm-match-time {
    flex: 0 0 80px;
    text-align: center;
}

.btm-match-time .btm-time {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
}

.btm-match-details {
    flex: 1;
}

.btm-match-teams-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 16px;
}

.btm-match-teams-inline .btm-team-home,
.btm-match-teams-inline .btm-team-away {
    font-weight: 600;
}

.btm-match-teams-inline .btm-winner {
    color: #2e7d32;
}

.btm-match-teams-inline .btm-vs {
    color: #999;
    font-weight: 400;
    font-size: 14px;
}

.btm-match-teams-inline .btm-score {
    font-weight: 700;
    color: #1a1a1a;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 4px;
}

.btm-match-teams-inline .btm-overtime {
    font-size: 12px;
    color: #ff9800;
}

.btm-match-venue {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.btm-match-venue .dashicons {
    font-size: 14px;
    vertical-align: middle;
}

.btm-match-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.btm-match-round {
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btm-status-live {
    display: inline-block;
    padding: 4px 8px;
    background: #ff9800;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btm-no-matches {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Player stats */
.btm-player-stats table {
    width: 100%;
    border-collapse: collapse;
}

.btm-player-stats th,
.btm-player-stats td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.btm-player-stats th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Team roster */
.btm-team-roster {
    margin: 20px 0;
}

.btm-player-card {
    display: inline-block;
    width: 200px;
    margin: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btm-player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.btm-player-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.btm-player-number {
    color: #666;
    font-size: 0.9em;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .btm-bracket-rounds {
        gap: 20px;
    }

    .btm-bracket-round {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    /* Bracket */
    .btm-bracket {
        padding: 15px;
    }

    .btm-bracket-title {
        font-size: 22px;
    }

    .btm-bracket-rounds {
        gap: 15px;
    }

    .btm-bracket-round {
        min-width: 220px;
    }

    .btm-round-title {
        font-size: 16px;
    }

    .btm-match {
        padding: 12px;
    }

    .btm-team-name {
        font-size: 13px;
    }

    .btm-team-score {
        font-size: 16px;
    }

    /* Standings */
    .btm-standings-table {
        font-size: 12px;
    }

    .btm-standings-table th,
    .btm-standings-table td {
        padding: 10px 8px;
    }

    .btm-col-team {
        min-width: 120px;
    }

    .btm-standings-legend {
        font-size: 10px;
        gap: 10px;
    }

    /* Schedule */
    .btm-schedule-match {
        flex-direction: column;
        gap: 12px;
    }

    .btm-match-time {
        flex: 1 1 auto;
        text-align: left;
    }

    .btm-match-teams-inline {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Player stats */
    .btm-player-stats table {
        font-size: 12px;
    }

    .btm-player-stats th,
    .btm-player-stats td {
        padding: 8px 6px;
    }

    /* Player cards */
    .btm-player-card {
        width: 150px;
    }
}

@media (max-width: 480px) {
    /* Bracket */
    .btm-bracket {
        padding: 10px;
    }

    .btm-bracket-title {
        font-size: 18px;
    }

    .btm-bracket-round {
        min-width: 200px;
    }

    .btm-round-matches {
        gap: 30px;
    }

    /* Standings - Hide less important columns on mobile */
    .btm-col-ties,
    .btm-col-pf,
    .btm-col-pa {
        display: none;
    }

    .btm-standings-table {
        font-size: 11px;
    }

    .btm-standings-table th,
    .btm-standings-table td {
        padding: 8px 4px;
    }

    /* Schedule */
    .btm-schedule-date {
        font-size: 16px;
    }

    .btm-match-teams-inline {
        font-size: 14px;
    }

    .btm-match-venue {
        font-size: 12px;
    }

    /* Player cards */
    .btm-player-card {
        width: 130px;
        padding: 10px;
    }

    .btm-player-photo {
        width: 80px;
        height: 80px;
    }
}

/* ==========================================================================
   Live Match Page
   ========================================================================== */

.btm-live-match-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Connection Error */
.btm-connection-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Hero Section */
.btm-live-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e3a5fcc 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.btm-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.btm-hero-team {
    text-align: center;
    min-width: 180px;
}

.btm-hero-team-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    overflow: hidden;
}

.btm-hero-team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btm-hero-team-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.btm-hero-team-name a {
    color: inherit;
    text-decoration: none;
}

.btm-hero-team-name a:hover {
    text-decoration: underline;
}

.btm-hero-center {
    text-align: center;
}

.btm-hero-scores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.btm-hero-score-home,
.btm-hero-score-away {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
}

.btm-hero-separator {
    font-size: 32px;
    opacity: 0.5;
}

.btm-live-indicator {
    display: inline-block;
    background: #dc3232;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.btm-live-pulse {
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 50, 50, 0.7); }
    50% { opacity: 0.9; box-shadow: 0 0 0 10px rgba(220, 50, 50, 0); }
}

.btm-hero-clock {
    font-size: 24px;
    font-weight: 600;
    font-family: monospace;
    margin-bottom: 12px;
}

.btm-hero-info {
    font-size: 14px;
    opacity: 0.85;
}

.btm-hero-venue,
.btm-hero-date {
    margin-bottom: 4px;
}

.btm-hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btm-hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btm-hero-actions a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btm-hero-actions .dashicons {
    font-size: 18px;
}

/* Tab Navigation */
.btm-live-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
    gap: 5px;
    flex-wrap: wrap;
}

.btm-live-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.btm-live-tab:hover {
    color: #1e3a5f;
    background: #f8f9fa;
}

.btm-live-tab.active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
    font-weight: 600;
}

/* Tab Content */
.btm-tab-panel {
    display: none;
}

.btm-tab-panel.active {
    display: block;
}

/* Statistics Tab */
.btm-stats-tab h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.btm-team-comparison {
    margin-bottom: 40px;
}

.btm-comparison-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.btm-comparison-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.btm-comparison-row:last-child {
    border-bottom: none;
}

.btm-comparison-row.btm-comparison-header {
    background: #f8f9fa;
    font-weight: 600;
}

.btm-stat-home,
.btm-stat-away {
    flex: 1;
    text-align: center;
}

.btm-stat-label {
    flex: 0 0 150px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.btm-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Player Stats Tables */
.btm-player-stats-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.btm-player-stats-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.btm-player-stats-team h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1e3a5f;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3a5f;
}

.btm-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}

.btm-stats-table thead {
    background: #f8f9fa;
}

.btm-stats-table th {
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
}

.btm-stats-table th:first-child {
    text-align: left;
    padding-left: 15px;
}

.btm-stats-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.btm-stats-table td:first-child {
    text-align: left;
    padding-left: 15px;
}

.btm-stats-table tbody tr:last-child td {
    border-bottom: none;
}

.btm-stats-table tbody tr:hover {
    background: #f8f9fa;
}

.btm-stats-table .btm-jersey {
    display: inline-block;
    background: #1e3a5f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
}

.btm-no-data {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Mutual Meetings Tab */
.btm-mutual-tab h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.btm-h2h-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.btm-h2h-team {
    text-align: center;
    min-width: 150px;
}

.btm-h2h-team-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.btm-h2h-wins {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    display: block;
}

.btm-h2h-vs {
    text-align: center;
}

.btm-h2h-total {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.btm-h2h-draws {
    display: block;
    font-size: 12px;
    color: #999;
}

.btm-h2h-matches h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #1a1a1a;
}

.btm-h2h-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btm-h2h-match {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px 20px;
}

.btm-h2h-date {
    flex: 0 0 100px;
    font-size: 13px;
    color: #666;
}

.btm-h2h-teams {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
}

.btm-h2h-home,
.btm-h2h-away {
    min-width: 120px;
}

.btm-h2h-home {
    text-align: right;
}

.btm-h2h-away {
    text-align: left;
}

.btm-h2h-teams .btm-winner {
    font-weight: 600;
    color: #2e7d32;
}

.btm-h2h-score {
    font-weight: 700;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 4px;
}

.btm-h2h-venue {
    flex: 0 0 150px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* Photos Tab */
.btm-photos-tab h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.btm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.btm-gallery-item {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btm-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play-by-Play Tab */
.btm-play-by-play-tab h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

.btm-events-feed {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.btm-event {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}

.btm-event:last-child {
    border-bottom: none;
}

.btm-event:hover {
    background: #f8f9fa;
}

.btm-event-home {
    border-left: 4px solid #1e3a5f;
}

.btm-event-away {
    border-left: 4px solid #dc3232;
}

.btm-event-time {
    flex: 0 0 60px;
    font-size: 14px;
    font-weight: 600;
    font-family: monospace;
    color: #666;
}

.btm-event-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btm-event-icon {
    flex: 0 0 30px;
    text-align: center;
}

.btm-icon-points {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.btm-event-home .btm-event-icon .dashicons,
.btm-event-home .btm-icon-points {
    color: #1e3a5f;
}

.btm-event-home .btm-icon-points {
    background: #1e3a5f;
    color: #fff;
}

.btm-event-away .btm-event-icon .dashicons {
    color: #dc3232;
}

.btm-event-away .btm-icon-points {
    background: #dc3232;
    color: #fff;
}

.btm-event-description {
    font-size: 14px;
    color: #1a1a1a;
}

.btm-event-score {
    flex: 0 0 70px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Event type specific styles */
.btm-event-game_start,
.btm-event-game_end {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.btm-event-timeout {
    background: #fff3e0;
}

.btm-event-foul {
    background: #fff8e1;
}

/* Live Match Responsive */
@media (max-width: 768px) {
    .btm-live-hero {
        padding: 25px 20px;
    }

    .btm-hero-content {
        gap: 20px;
    }

    .btm-hero-team {
        min-width: 100px;
    }

    .btm-hero-team-logo {
        width: 60px;
        height: 60px;
    }

    .btm-hero-team-name {
        font-size: 14px;
    }

    .btm-hero-scores {
        gap: 15px;
    }

    .btm-hero-score-home,
    .btm-hero-score-away {
        font-size: 40px;
    }

    .btm-hero-separator {
        font-size: 24px;
    }

    .btm-hero-clock {
        font-size: 20px;
    }

    .btm-live-tabs {
        gap: 0;
    }

    .btm-live-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .btm-player-stats-tables {
        grid-template-columns: 1fr;
    }

    .btm-h2h-summary {
        flex-direction: column;
        gap: 20px;
    }

    .btm-h2h-match {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btm-h2h-teams {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btm-h2h-home,
    .btm-h2h-away {
        min-width: auto;
        flex: 1;
    }

    .btm-h2h-venue {
        width: 100%;
        text-align: left;
    }

    .btm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .btm-event {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .btm-event-time {
        flex: 0 0 50px;
        font-size: 12px;
    }

    .btm-event-content {
        flex: 1 1 calc(100% - 130px);
    }

    .btm-event-score {
        flex: 0 0 60px;
    }

    .btm-stat-label {
        flex: 0 0 100px;
        font-size: 12px;
    }

    .btm-stat-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .btm-live-hero {
        padding: 20px 15px;
    }

    .btm-hero-score-home,
    .btm-hero-score-away {
        font-size: 32px;
    }

    .btm-live-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btm-gallery {
        grid-template-columns: 1fr;
    }

    .btm-stats-table {
        font-size: 11px;
    }

    .btm-stats-table th,
    .btm-stats-table td {
        padding: 8px 4px;
    }
}
