* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.player-wrapper {
    width: min(520px, 92vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    padding: 24px;
}

#hls-player {
    display: none;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #444;
    margin-bottom: 16px;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.offline {
    background: #ffebee;
    color: #c62828;
}

.status-badge.online {
    background: #e8f5e9;
    color: #2e7d32;
}

.controls-row {
    display: flex;
    margin-bottom: 16px;
}

.btn-control {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-control:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.25);
}

.btn-control:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

.volume-row label {
    color: #444;
    font-size: 14px;
    min-width: 52px;
}

.volume-row input {
    flex: 1;
    cursor: pointer;
}

.volume-value {
    width: 44px;
    text-align: right;
    font-size: 13px;
    color: #666;
}