#join-panel {
    max-width: 480px;
    margin: 30px auto;
}

#join-panel h1 {
    font-size: 32px;
}

#join-button {
    width: 100%;
}

.connection-bar {
    padding: 14px;
    background: #FFF1E7;
    border: 1px solid #FED7AA;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 700;
}

#screen-container {
    background: #111111;
    color: white;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

#screen-placeholder {
    padding: 20px;
    text-align: center;
}

#screen-placeholder p {
    color: #CBD5E1;
}

#screen-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#screen-container:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.student-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.student-controls .btn {
    flex: 1;
}

@media(max-width:600px) {
    #join-panel h1 {
        font-size: 25px;
    }

    .student-controls {
        flex-direction: column;
    }
}


/* MCTI_FULLSCREEN_V2 */

body.mcti-screen-open {
    overflow: hidden;
}

#screen-container.mcti-expanded {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    z-index: 99999;
    background: #000;
}

#screen-container.mcti-expanded video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#mcti-exit-screen {
    display: none;
}

#screen-container.mcti-expanded #mcti-exit-screen {
    display: block;
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 100000;
    padding: 10px 15px;
    background: #F97316;
    color: #111111;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

#screen-container:fullscreen {
    aspect-ratio: auto;
    background: #000;
}



/* MCTI_STUDENT_MIC_V1 */

#student-mic-status {
    flex-basis: 100%;
    padding: 12px;
    font-size: 14px;
    background: #FFF7ED;
    border-radius: 8px;
}



/* MCTI_STUDENT_SCREEN_V2 */

#student-screen-share {
    background: #F97316;
    color: #111111;
    font-weight: 700;
    border-radius: 10px;
    min-height: 46px;
}

#student-screen-share:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#student-screen-stop {
    background: #B91C1C;
    color: #FFFFFF;
    border-radius: 10px;
    min-height: 46px;
}

#student-screen-status {
    color: #F97316;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px;
    width: 100%;
}

#student-screen-stop[hidden] {
    display: none !important;
}


/* MCTI_PREMIUM_STUDENT_V200 */

body.premium-student {
    background: #111111;
    color: #FFFFFF;
    min-height: 100vh;
}

.premium-student .header {
    background: #191919;
    border-bottom: 1px solid #333333;
    color: #FFFFFF;
}

.premium-student .brand {
    color: #F97316;
}

.premium-student main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 18px;
    box-sizing: border-box;
}

.premium-student .panel {
    background: #1C1C1C;
    color: #FFFFFF;
    border: 1px solid #333333;
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
}

.premium-student h1,
.premium-student h2 {
    color: #FFFFFF;
}

.premium-student p,
.premium-student label,
.premium-student small {
    color: #CCCCCC;
}

.premium-student input {
    background: #111111;
    color: #FFFFFF;
    border: 1px solid #444444;
    border-radius: 10px;
    min-height: 46px;
}

.premium-student #join-panel {
    max-width: 460px;
    margin: 40px auto;
}

.premium-student #screen-container {
    background: #080808;
    border: 1px solid #333333;
    border-radius: 12px;
    overflow: hidden;
}

.premium-student #screen-container video {
    width: 100%;
    object-fit: contain;
}

.premium-student .student-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #191919;
    padding: 14px;
    border-radius: 12px;
    margin-top: 16px;
}

.premium-student .btn {
    min-height: 46px;
    border-radius: 10px;
    padding: 12px 18px;
    margin: 0;
    font-weight: 600;
}

.premium-student .btn.dark {
    background: #303030;
    color: #FFFFFF;
}

.premium-student .btn.orange {
    background: #F97316;
    color: #111111;
}

.premium-student .btn.danger {
    background: #B91C1C;
    color: #FFFFFF;
}

.premium-student .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.premium-student #connection-status {
    color: #4ADE80;
    font-size: 13px;
}

.premium-student #student-mic-status,
.premium-student #student-screen-status {
    width: 100%;
    text-align: center;
    color: #F97316;
    font-size: 12px;
    padding: 4px;
}

.premium-student footer {
    background: #111111;
    color: #AAAAAA;
}

.premium-student [hidden] {
    display: none !important;
}

@media (max-width: 600px) {

    .premium-student main {
        padding: 10px;
    }

    .premium-student .panel {
        padding: 12px;
    }

    .premium-student .student-controls {
        gap: 8px;
        padding: 10px;
    }

    .premium-student .student-controls .btn {
        flex: 1 1 42%;
        font-size: 12px;
        padding: 10px;
    }
}

