body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: white;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 900px;
    width: 100%;
}

.stream-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
}

.scoreboard {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto;
    border: 2px solid #444;
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.score {
    background: #ff4757;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 10px;
}

.vs {
    font-weight: bold;
    color: #aaa;
    margin: 0 15px;
}

.sponsor-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.sponsor-overlay img {
    max-width: 120px;
    opacity: 0.8;
}

.controls {
    margin-top: 20px;
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
}

.config-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    border: 1px solid #444;
    background: #3d3d3d;
    color: white;
    box-sizing: border-box;
}

.score-btns {
    display: flex;
    gap: 5px;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: bold;
    transition: 0.3s;
}

.score-btns button {
    background: #555;
    color: white;
    flex: 1;
}

.btn-update {
    background: #2ed573;
    color: white;
    width: 100%;
    margin-top: 15px;
    padding: 12px;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-cam {
    background: #1e90ff;
    color: white;
    flex: 1;
    padding: 15px;
}

.btn-live {
    background: #ff4757;
    color: white;
    flex: 2;
    padding: 15px;
    font-size: 1.1rem;
}

.hint {
    font-size: 0.8rem;
    color: #888;
}
