* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0d0d0d;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

.badge {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge.offline {
    background: #ff3333;
    color: #fff;
}

.badge.live {
    background: #00ff7f;
    color: #000;
}

main {
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#player-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

#overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #888;
    font-size: 1.2rem;
}

#overlay.hidden {
    display: none;
}

#controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}

#controls input[type="text"] {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 140px;
}

#controls button {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

#controls button:hover {
    background: #2563eb;
}

#controls input[type="range"] {
    width: 120px;
}
