* {
    font-family: sky, sans-serif;
}

.match-detail-container {
    padding: 20px 0;
}

.back-button {
    text-align: left;
}

.btn-back {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-family: sky, sans-serif;
    font-weight: 600;
}

.match-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grass" patternUnits="userSpaceOnUse" width="100" height="100"><rect width="100" height="100" fill="%2334C759"/><rect width="50" height="100" fill="%2330B350"/></pattern></defs><rect width="1200" height="600" fill="url(%23grass)"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.match-date {
    font-size: 16px;
    opacity: 0.9;
    position: absolute;
    right: 0;
    top: 0;
}

.competition-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.competition-logo-container {
    position: absolute;
    right: 0;
    top: 0;
}

.competition-logo {
    width: 40px;
    height: 40px;
}

.match-info-bar {
    text-align: center;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.match-score-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.team-name {
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

.score-display {
    flex: 1;
    text-align: center;
}

.final-score {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-separator {
    margin: 0 15px;
    opacity: 0.7;
}

.match-time-display {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.live-minute {
    background: #10B981;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    display: inline-block;
}

.match-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.status-left {
    display: flex;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 16px;
    opacity: 0.8;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

.status-right {
    display: flex;
    align-items: center;
}

.competition-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

.competition-logo-small {
    width: 24px;
    height: 24px;
}

.competition-name {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

.match-info-strip {
    margin-bottom: 20px;
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.2);
    padding: 12px 16px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.info-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    font-size: 16px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-transform: uppercase;
}

.info-value {
    font-size: 13px;
    color: white;
    font-weight: 500;
}

.tabs-section {
    background: white;
    margin-top: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.tabs-header {
    background: linear-gradient(135deg, #007bff, #7C3AED);
    display: flex;
    padding: 0;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: white;
    border-bottom-color: white;
    background: rgba(255,255,255,0.1);
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.events-container {
    padding: 3px;
}

.events-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.events-list::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #42a5f5;
    border-radius: 1px;
}

.timeline-event {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.team-logo-event {
    position: absolute;
    left: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    padding: 2px;
}

.event-content {
    flex: 1;
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin-right: 80px;
    text-align: right;
}

.event-info {
    display: flex;
    
    gap: 3px;
}

.event-type {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.event-player {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.player-out {
    color: #dc3545;
    font-weight: 600;
}

.player-in {
    color: #28a745;
    font-weight: 600;
}

.event-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.event-minute {
    position: absolute;
    right: 24px;
    background: #42a5f5;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    z-index: 2;
}

.error {
    text-align: center;
    padding: 40px;
    color: #666;
}



/* No Content Messages */
.no-events {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
}



.no-events::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
    pointer-events: none;
}

.no-lineups {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
}



.no-lineups::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
    pointer-events: none;
}

/* Lineups Styles */
.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.team-lineup {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.lineup-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lineup-team-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.lineup-team-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.formation {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.players-list {
    padding: 20px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.player-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.player-number {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.player-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.player-position {
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.substitutes {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.substitutes h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.sub-player {
    opacity: 0.8;
}

.sub-player .player-photo {
    width: 35px;
    height: 35px;
}

.sub-player .player-number {
    width: 25px;
    height: 25px;
    font-size: 11px;
}

.subs-list .player-item {
    padding: 8px 0;
}

.coach-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 2px solid #007bff;
    margin-top: 15px;
}

.coach-item .player-name {
    margin-right: auto;
}

.coach-position {
    background: #007bff !important;
    color: white !important;
    font-weight: 700;
}

/* Missing Players Styles */
.missing-players {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.missing-players h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.missing-list {
    gap: 10px;
}

.missing-player {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    opacity: 0.8;
    margin: 5px 0px;
}

.missing-player .player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.missing-player .injury-reason,
.missing-player .expected-return {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

.missing-player .expected-return {
    color: #6b7280;
}

.missing-player .player-photo {
    filter: grayscale(50%);
}

/* Doubtful Players Styles */
.doubtful-players {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.doubtful-players h4 {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.doubtful-list {
    gap: 10px;
}

.doubtful-player {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px;
    opacity: 0.9;
    margin: 5px 0px;
}

.doubtful-player .player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.doubtful-player .injury-reason,
.doubtful-player .expected-return {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 500;
}

.doubtful-player .expected-return {
    color: #6b7280;
}

.doubtful-player .player-photo {
    filter: sepia(20%) saturate(80%);
}
.no-lineup-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
}



.no-lineup-team::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.02) 10px,
        rgba(0,0,0,0.02) 20px
    );
    pointer-events: none;
}
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .match-header {
        padding: 20px 15px;
    }
    
    .match-score-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .team-logo-large {
        width: 60px;
        height: 60px;
    }
    
    .score {
        font-size: 28px;
    }
    
    .time {
        font-size: 20px;
    }
    
    .match-info-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .detail-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .events-list {
        padding: 15px 2px;
    }
    
    .events-list::before {
        right: 25px;
    }
    
    .timeline-event {
        margin-bottom: 15px;
        padding-left: 40px;
    }
    
    .team-logo-event {
        width: 30px;
        height: 30px;
    }
    
    .event-content {
        padding: 10px 12px;
        margin-right: 60px;
    }
    
    .event-minute {
        right: 10px;
        padding: 4px 8px;
        font-size: 12px;
        min-width: 25px;
    }
    
    .event-player {
        font-size: 14px;
    }
    
    .event-type {
        font-size: 12px;
    }
    

    .final-score {
        font-size: 30px;
    }
    
    .lineups-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lineup-header {
        padding: 15px;
        gap: 10px;
    }
    
    .lineup-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .lineup-team-info h3 {
        font-size: 16px;
    }
    
    .players-list {
        padding: 15px;
    }
    
    .player-item {
        gap: 10px;
        padding: 10px 0;
    }
    
    .player-photo {
        width: 35px;
        height: 35px;
    }
    
    .no-lineup-team,
    .no-events,
    .no-lineups {
        padding: 30px 15px;
        min-height: 100px;
        font-size: 14px;
        margin: 15px;
    }
    

    
    .player-number {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }
    
    .player-name {
        font-size: 14px;
    }
    
    .player-position {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .missing-players,
    .doubtful-players {
        margin-top: 15px;
        padding-top: 10px;
    }
    
    .missing-players h4,
    .doubtful-players h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .missing-player,
    .doubtful-player {
        padding: 10px;
    }
    
    .missing-player .injury-reason,
    .missing-player .expected-return,
    .doubtful-player .injury-reason,
    .doubtful-player .expected-return {
        font-size: 11px;
    }
}