@charset "UTF-8";

html,
body {
    margin: 0;
    padding: 0;
    background-color: black;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
}

.player-area {
    position: relative;
    flex: 1;
    background-color: black;
    overflow: hidden;
}

iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    border: none;
}

.flipped {
    transform: translate(-50%, -50%) scaleX(-1);
}

.controls {
    background-color: #111;
    padding: 10px;
    text-align: center;
    z-index: 10;
}

.controls input[type="text"] {
    width: 60%;
    max-width: 500px;
    padding: 6px;
}

input[type="range"] {
    width: 300px;
}

button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* 練習モード */
.practice-mode .controls {
    display: none;
}

.practice-mode .player-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

.overlay-catcher {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* 上半分をブロック */
    z-index: 9999;
    background-color: transparent;
}

.practice-mode .overlay-catcher {
    display: block;
}

.overlay-catcher.hidden {
    display: none;
}
