:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #101522;
    color: #f8fafc;
    font-family: var(--font-ui, 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', 'NanumSquareRound', sans-serif);
}

.student-video {
    width: min(100%, 760px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.student-video p {
    margin: 0 0 4px;
    color: #a5b4fc;
    font-weight: 800;
}

.student-video h1 {
    margin: 0 0 10px;
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    line-height: 1.25;
    word-break: keep-all;
}

.student-video video {
    display: block;
    width: auto;
    height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
    max-width: 100%;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    background: #000;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.student-video__fullscreen {
    min-height: 44px;
    margin-top: 10px;
    padding: 9px 18px;
    border: 1px solid #818cf8;
    border-radius: 10px;
    color: #fff;
    background: #3730a3;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.student-video__fullscreen:hover {
    background: #4338ca;
}

.student-video__fullscreen:focus-visible {
    outline: 3px solid #c7d2fe;
    outline-offset: 3px;
}

.student-video__fullscreen[hidden],
.student-video__status[hidden] {
    display: none;
}

.student-video__status {
    margin-top: 8px;
    color: #fcd34d;
}

.student-video video:fullscreen,
.student-video video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}
