/**
 * Live Match Plugin Styles
 */

/* Match List */
.live-match-list {
    width: 100%;
    margin: 20px 0;
}

.live-match-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.live-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Match Card */
.live-match-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    background-size: 100px 100px;
    background-position: 0 0, 100% 0;
    background-repeat: no-repeat;
}

.live-match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.live-match-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.live-match-card-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-match-competition {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-match-competition::before {
    content: '🏆';
    font-size: 14px;
}

.live-match-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-match-badge-live {
    background: #ff4444;
    color: #fff;
}

.live-match-badge-text {
    font-size: 11px;
}

.live-match-badge-bars {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.live-match-time-badge {
    padding: 6px 14px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
}

.live-match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
}

.live-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.live-match-team-home {
    align-items: center;
    text-align: center;
}

.live-match-team-away {
    align-items: center;
    text-align: center;
}

.live-match-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 4px;
}

.live-match-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.live-match-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 100px;
}

.live-match-minute {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.live-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.live-match-score-home,
.live-match-score-away {
    font-size: 24px;
    color: #fff;
    min-width: 28px;
    text-align: center;
}

.live-match-score-separator {
    font-size: 20px;
    color: #fff;
    opacity: 0.9;
}

.live-match-actions {
    margin-top: 16px;
}

.live-match-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.live-match-btn-live {
    background: #ff4444;
    color: #fff;
}

.live-match-btn-live:hover {
    background: #e63939;
    transform: scale(1.02);
}

.live-match-btn-detail {
    background: #4a90e2;
    color: #fff;
}

.live-match-btn-detail:hover {
    background: #357abd;
    transform: scale(1.02);
}

/* Load More */
.live-match-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.live-match-load-more-btn {
    padding: 12px 32px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.live-match-load-more-btn:hover {
    background: #357abd;
}

.live-match-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Single Match Page */
.live-match-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Player Section - Top */
.live-match-player-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.live-match-player {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 500px;
    background: #000;
    border-radius: 8px;
    display: block;
}

/* Controls Section - Below Player */
.live-match-controls-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.live-match-controls-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.live-match-source-buttons,
.live-match-format-buttons {
    flex: 1;
}

.live-match-control-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.live-match-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.live-match-source-btn,
.live-match-format-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 120px;
}

.live-match-source-btn:hover,
.live-match-format-btn:hover {
    border-color: #4a90e2;
    background: #f0f8ff;
    color: #4a90e2;
}

.live-match-source-btn.active,
.live-match-format-btn.active {
    border-color: #4a90e2;
    background: #4a90e2;
    color: #fff;
}

/* Match Info Section - Below Controls */
.live-match-info-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.live-match-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.live-match-competition {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-match-competition::before {
    content: '🏆';
    font-size: 14px;
}

.live-match-status-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Commentator Tag */
.live-match-commentator-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.live-match-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-match-badge-live {
    background: #ff4444;
    color: #fff;
}

.live-match-time {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.live-match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.live-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-align: center;
}

.live-match-team-home {
    align-items: center;
    text-align: center;
}

.live-match-team-away {
    align-items: center;
    text-align: center;
}

.live-match-team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 8px;
}

.live-match-team-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.live-match-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 120px;
}

.live-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.live-match-score-home,
.live-match-score-away {
    font-size: 28px;
    color: #fff;
    min-width: 32px;
    text-align: center;
}

.live-match-score-separator {
    font-size: 24px;
    color: #fff;
    opacity: 0.9;
}

.live-match-no-stream {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Other Live Matches Carousel */
.live-match-other-matches-section {
    margin-top: 40px;
    padding: 30px 0;
}

.live-match-other-matches-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
}

.live-match-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.live-match-carousel {
    overflow: hidden;
    position: relative;
}

.live-match-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 20px;
}

.live-match-carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
}

.live-match-carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.live-match-carousel-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
}

.live-match-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.live-match-carousel-competition {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-match-carousel-competition::before {
    content: '🏆';
    font-size: 12px;
}

.live-match-carousel-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.live-match-carousel-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-match-carousel-commentator-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
}

.live-match-carousel-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-match-carousel-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.live-match-carousel-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8f8f8;
    padding: 4px;
}

.live-match-carousel-team-name {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

.live-match-carousel-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin: 8px 0;
}

.live-match-carousel-score span:first-child,
.live-match-carousel-score span:last-child {
    min-width: 20px;
    text-align: center;
}

.live-match-carousel-prev,
.live-match-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.live-match-carousel-prev {
    left: -20px;
}

.live-match-carousel-next {
    right: -20px;
}

.live-match-carousel-prev:hover,
.live-match-carousel-next:hover {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.live-match-carousel-prev:disabled,
.live-match-carousel-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .live-match-carousel-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .live-match-carousel-prev {
        left: -15px;
    }
    
    .live-match-carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .live-match-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .live-match-card {
        padding: 20px;
    }
    
    .live-match-teams-row {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    
    .live-match-team-home,
    .live-match-team-away {
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }
    
    .live-match-score-center {
        order: -1;
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .live-match-team-logo {
        width: 50px;
        height: 50px;
    }
    
    .live-match-team-name {
        font-size: 13px;
    }
    
  .live-match-score {
    padding: 3px 5px;
  }
    
    .live-match-score-home,
    .live-match-score-away {
        font-size: 20px;
    }
    
    .live-match-single-container {
        padding: 10px;
    }
    
    .live-match-player-section {
        padding: 15px;
    }
    
    .live-match-player {
        min-height: 250px;
    }
    
    .live-match-controls-section {
        padding: 15px;
    }
    
    .live-match-controls-row {
        flex-direction: row;
        gap: 20px;
    }
    
    .live-match-button-group {
        flex-direction: row;
    }
    
    .live-match-source-btn,
    .live-match-format-btn {
        width: 100%;
        min-width: auto;
    }
    
    .live-match-info-section {
        padding: 20px;
    }
    
    .live-match-info-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .live-match-teams-row {
        flex-direction: row;
    }
    
    .live-match-team-home,
    .live-match-team-away {
        align-items: center !important;
        text-align: center !important;
    }
    
    .live-match-score-center {
        order: 0;
        width: 33%;
    }
    
    .live-match-team-logo {
        width: 60px;
        height: 60px;
    }
    
    .live-match-other-matches-section {
        margin-top: 30px;
        padding: 20px 0;
    }
    
    .live-match-other-matches-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .live-match-carousel-item {
        flex: 0 0 100%;
    }
    
    .live-match-carousel-prev,
    .live-match-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .live-match-carousel-prev {
        left: -10px;
    }
    
    .live-match-carousel-next {
        right: -10px;
    }
    
    .live-match-carousel-card {
        padding: 16px;
    }
}

/* Match Schedule */
.live-match-schedule {
    width: 100%;
    margin: 20px 0;
}

.live-match-schedule-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.live-match-schedule-tab {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.live-match-schedule-tab:hover {
    border-color: #ffd700;
    background: #fffef0;
}

.live-match-schedule-tab.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #000;
}

.live-match-schedule-content {
    position: relative;
}

.live-match-schedule-date-panel {
    display: none;
}

.live-match-schedule-date-panel.active {
    display: block;
}

.live-match-schedule-item {
    position: relative;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.live-match-schedule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.live-match-schedule-item-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    background-size: 200px 200px;
    background-position: 0 0, 100% 0;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

.live-match-schedule-item-content {
    position: relative;
    padding: 20px;
    z-index: 1;
}

.live-match-schedule-competition {
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.live-match-schedule-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.live-match-schedule-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.live-match-schedule-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.live-match-schedule-team-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.live-match-schedule-vs {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
    padding: 0 12px;
}

.live-match-schedule-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.live-match-schedule-time {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.live-match-schedule-status {
    display: flex;
    align-items: center;
}

.live-match-schedule-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-match-schedule-status-live {
    background: #ff4444;
    color: #fff;
}

.live-match-schedule-status-upcoming {
    background: #f0f0f0;
    color: #333;
}

.live-match-schedule-item-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    text-decoration: none;
}

.live-match-schedule-matches-list {
    margin-bottom: 0;
}

.live-match-schedule-hidden-matches {
    display: none;
}

.live-match-schedule-load-more-wrapper {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
}

.live-match-schedule-load-more-btn {
    padding: 12px 32px;
    background: #fff;
    border: 2px solid #ffd700;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.live-match-schedule-load-more-btn:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Responsive Schedule */
@media (max-width: 768px) {
    .live-match-schedule-tabs {
        gap: 8px;
    }
    
    .live-match-schedule-tab {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .live-match-schedule-item-content {
        padding: 16px;
    }
    
    .live-match-schedule-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .live-match-schedule-team-name {
        font-size: 12px;
    }
    
    .live-match-schedule-vs {
        font-size: 20px;
        padding: 0 8px;
    }
    
    .live-match-schedule-competition {
        font-size: 11px;
        margin-bottom: 12px;
    }
    
    .live-match-schedule-time {
        font-size: 12px;
    }
    
    .live-match-schedule-status-badge {
        padding: 5px 12px;
        font-size: 10px;
    }
}

