body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    overflow: hidden;
}

#app-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#player-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
}

#match-sidebar {
    width: 320px;
    background-color: #1e1e1e;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

#sidebar-header {
    padding: 15px;
    background-color: #252525;
    font-weight: bold;
    border-bottom: 1px solid #333;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#match-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

#match-list::-webkit-scrollbar {
    width: 6px;
}

#match-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.match-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid transparent;
}

.match-card:hover {
    background-color: #333;
}

.match-card.active {
    border-color: #00ff00;
    background-color: #333;
}

.league-name {
    font-size: 10px;
    color: #888;
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
}

.teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
}

.team span {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.vs-badge {
    font-size: 10px;
    font-weight: bold;
    color: #555;
    margin: 0 5px;
}

#status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
    display: none;
    z-index: 50;
    pointer-events: none;
}

.empty-state {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

#loading-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
#loading-wrapper.hidden { opacity: 0; pointer-events: none; }
.loader {
    width: 40px; aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid #0000;
    border-right-color: #00ff00;
    position: relative;
    animation: l24 1s infinite linear;
}
.loader:before, .loader:after {
    content: ""; position: absolute; inset: -4px;
    border-radius: 50%;
    border: inherit;
    animation: inherit;
    animation-duration: 2s;
}
.loader:after { animation-duration: 4s; }
@keyframes l24 { 100% { transform: rotate(1turn) }}

@media (max-width: 850px) {
    #app-container { flex-direction: column; }
    #player-wrapper { height: 250px; flex: none; }
    #match-sidebar { width: 100%; flex: 1; border-left: none; border-top: 1px solid #333; }
    .team img { width: 30px; height: 30px; }
}

#invisible-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 999999;
    cursor: default;
    display: block;
}