* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
}

#uiBox {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 30px;
}

h1 {
    margin-bottom: 16px;
}

#hint {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

#inputBox {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    width: 100%;
    padding: 12px 22px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
}

#fileInput {
    display: none;
}

#dropZone {
    margin-top: 18px;
    border: 2px dashed #aaa;
    border-radius: 10px;
    padding: 18px;
    font-size: 14px;
    background: #fafafa;
    color: #555;
}

#playerWrap {
    display: none;
    width: 100%;
    height: 100%;
}

video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.hide-ui #uiBox {
    display: none;
}

.hide-ui #playerWrap {
    display: block;
    width: 100vw;
    height: 100vh;
}

#rotateBlock,
#errorBox {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    color: #fff;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}