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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #000;
    font-family: 'Roboto', Arial, sans-serif;
    color: #fff;
}



/* Ready overlay */
#readyOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s;
    padding: 20px;
}

.ready-content {
    text-align: center;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ready-title {
    font-size: 48px;
    font-weight: 500;
    color: #f5f5f7;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.ready-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #f5f5f7;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Hide ready overlay when streaming */
body.streaming #readyOverlay {
    opacity: 0;
    pointer-events: none;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Base video styles */
.remoteVideoBase {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000;
}

/* Android TV / Smart TV specific fixes */
.remoteVideoSmartTV {
    transform: none;
    background-color: transparent;
}

/* Portrait mode: object-fit contain works */
.remoteVideoPortrait {
    object-fit: contain !important;
}

/* Landscape mode: keep aspect ratio; never stretch decoded frames */
.remoteVideoLandscape {
    object-fit: contain !important;
}
