/* Main Grid */
.lmm-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    font-family: 'Roboto', sans-serif;
    /* fallback */
}

/* Match Card */
.lmm-match-item {
    background: #0f1214;
    /* Extremely dark grey/black */
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.lmm-match-item:hover {
    transform: translateY(-2px);
    border-color: #444;
}

/* Hot Match */
.lmm-match-item.hot-match {
    border: 1px solid #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.1);
}

/* Header (League + Time) */
.lmm-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), transparent);
}

.lmm-league-name {
    font-size: 0.9em;
    color: #aaa;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmm-match-time {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
    white-space: nowrap;
}

.lmm-badge-live {
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    white-space: nowrap;
}

/* Content (Teams + VS) */
.lmm-match-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.lmm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 35%;
    text-align: center;
}

.lmm-team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lmm-team-name {
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
}

.lmm-match-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.lmm-vs {
    font-size: 1.5em;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}

.lmm-watch-btn {
    background: #27ae60;
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}

.lmm-watch-btn:hover {
    background: #2ecc71;
    color: #fff;
}

/* Footer (Streamers) */
.lmm-match-footer {
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #222;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.lmm-streamers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lmm-streamer-badge {
    font-size: 0.75em;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lmm-streamer-badge i {
    color: #e67e22;
    /* Orange icon */
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .lmm-match-grid {
        grid-template-columns: 1fr;
    }
}

.lmm-pagination {
    margin: 20px 0;
}

.lmm-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lmm-pagination .page-numbers a,
.lmm-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
}

.lmm-pagination .page-numbers .current {
    background: #e74c3c;
    border-color: #e74c3c;
}

.lmm-tabs {
    margin: 10px 0 20px 0;
}

.lmm-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 15px 0;
}

.lmm-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.lmm-tab-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

.lmm-tab-panel {
    display: none;
}

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

/* Single Match Page */
.lmm-single-match-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
}

.lmm-main-content {
    flex: 2;
    min-width: 0;
    /* Prevent flex blowout */
}

.lmm-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Single Header */
.lmm-single-header {
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
    margin-bottom: 20px;
}

.lmm-single-header h1 {
    font-size: 1.5em;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #fff;
    /* Assuming dark background from theme or global */
}

.lmm-single-meta {
    color: #aaa;
    font-size: 0.9em;
}

.lmm-single-time {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 10px;
}

/* Teams Block */
.lmm-single-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f1214;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #2a2a2a;
}

.lmm-team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
}

.lmm-team-block img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin: 10px 0;
}

.lmm-team-name-overlay {
    font-weight: bold;
    color: #fff;
}

.lmm-vs-block {
    font-size: 2em;
    font-weight: bold;
    color: #555;
    margin: 0 40px;
}

/* Video Player */
.lmm-video-player-wrapper {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    /* Aspect Ratio can be handled by videojs or manually */
}

#lmm-player-container {
    width: 100%;
}

/* Stream Switcher */
.lmm-stream-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.lmm-stream-btn {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lmm-stream-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
}

.lmm-stream-btn:hover,
.lmm-stream-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* Backup Links */
.lmm-backup-links {
    margin-top: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 4px;
    color: #ccc;
}

.lmm-backup-links h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #e74c3c;
}

.lmm-backup-content a {
    color: #3498db;
}

/* Responsive Single */
@media(max-width: 768px) {
    .lmm-single-match-container {
        flex-direction: column;
    }

    .lmm-sidebar {
        width: 100%;
    }

    .lmm-team-block img {
        height: 50px;
    }

    .lmm-vs-block {
        margin: 0 15px;
        font-size: 1.5em;
    }
}
