/* Result Presentation Styles */

/* Page Layout Sections */
.top-recording-section {
    background-color: #0c0d12; /* Deep slate studio black */
    color: #ffffff;
    margin-top: -50px; /* Sit seamlessly under the fixed navbar */
    padding-top: calc(50px + clamp(5px, 3vw, 30px)); /* Responsive offset under the navbar */
    padding-bottom: clamp(25px, 4vw, 40px);
}

.results-section {
    display: none; /* Hidden by default; made visible dynamically only when results start arriving */
    background-color: #ffffff; /* Clean white background for results */
    color: #111111;
    padding-top: clamp(22px, 3.5vw, 40px); /* Gradient height + extra breathing room */
    padding-bottom: clamp(22px, 3.5vw, 40px); /* Gradient height + extra breathing room */
    min-height: 100px;
    position: relative;
}

/* Soft gradient overlays for smooth transitions between dark and light sections */
.results-section::before,
.results-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(7px, 1.3vw, 17px);
    pointer-events: none;
    z-index: 1;
}

.results-section::before {
    top: 0;
    background: linear-gradient(to bottom, #0c0d12, transparent);
}

.results-section::after {
    bottom: 0;
    background: linear-gradient(to top, #0c0d12, transparent);
}

.bottom-info-section {
    background-color: #0c0d12; /* Match the top studio slate black */
    color: #ffffff;
    padding-top: 0px;
    padding-bottom: 30px;
}

/* Ensure server stats and audio device selectors are bright and highly legible on dark background */
.bottom-info-section #server-load p {
    color: #00ff66 !important; /* Premium neon green status indicator */
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.4);
}

.bottom-info-section #server-load th {
    color: #ffffff !important; /* Force override Bootstrap table defaults */
}

.bottom-info-section #server-load th:last-child {
    color: #00e5ff !important; /* High-tech neon cyan for stats and loading values */
}

/* Audio device selector labels — match toggle-label font & layout */
#audio-device-selectors label {
    display: block;
    color: #ffffff !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(10px, 1.2vw, 13px) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 1px !important;
    text-align: center !important;
}

#audio-device-selectors label strong {
    font-weight: 900 !important; /* Fully match the bold 900 Orbitron weight */
}

/* Neon-themed dropdown for audio device selectors */
.audio-device-selector,
#audio-device-selectors .form-select {
    background-color: rgba(8, 9, 15, 0.85) !important;
    color: #e0e3e7 !important;
    border: 2px solid rgba(0, 229, 255, 0.35) !important;
    border-radius: 8px !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.1), inset 0 0 8px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* Neon cyan dropdown arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300e5ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.6rem center !important;
    background-size: 14px 10px !important;
}

.audio-device-selector:focus,
#audio-device-selectors .form-select:focus {
    border-color: rgba(0, 229, 255, 0.6) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 0, 0, 0.4) !important;
    outline: none;
}

/* Style dropdown options dark with neon hover */
.audio-device-selector option,
#audio-device-selectors .form-select option {
    background-color: #0c0d12;
    color: #e0e3e7;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    padding: 10px 14px;
    line-height: 1.4;
}

.audio-device-selector option:hover,
.audio-device-selector option:focus,
#audio-device-selectors .form-select option:hover,
#audio-device-selectors .form-select option:focus {
    background-color: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
}

/* Top List Styles */
.toplist-name{
    /* min-width: 100%;  */
    width: 100%;
}

.video-title{
    margin: 20px auto 5px auto;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(10px, 3.5vw, 25px);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00e5ff;
    -webkit-text-stroke: 0.05em #000000;
    text-shadow: 0 0 0.1em #00e5ff, 0 0 0.2em #00e5ff;
    display: table;
    text-align: center;
    padding: 0.2em 0.6em;
    border-radius: 50vh;
    background-color: #000000;
    border: clamp(1px, 0.4vw, 3px) solid #007799;
}

.result-video {
    width: clamp(280px, 90vw, 760px);
    aspect-ratio: 16 / 9;
    border: none;
}

#voxceleb-intermediate-table{
    display: none;
    width: clamp(200px, 90vw, 600px);
    margin: 0 auto;
    border-collapse: collapse;
}

#voxceleb-intermediate-table tr{
    border: none;
} 

#voxceleb-intermediate-table td,
#voxceleb-intermediate-table th{
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00e5ff;
    text-shadow: 0 0 0.1em #00e5ff;
    padding: 3px 2px;
}

#voxceleb-intermediate-table td > span,
#voxceleb-intermediate-table th > span{
    display: inline-block;
    background-color: #000000;
    border-radius: 50vh;
    padding: 0.2em 0.6em;
    border: clamp(1px, 0.4vw, 3px) solid #007799;
}

.toplist-score{
    text-align: end;
}
