body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.video-container {
    position: relative;
    width: 640px;
    height: 360px;
}

video {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer; /* 追加: 動画クリック可能を示すため */
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.controls.show {
    opacity: 1;
}

button, input[type="range"] {
    background: #555;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}

button:hover, input[type="range"]:hover {
    background: #777;
}

#seekbar {
    flex: 1;
    margin: 0 10px;
}

.video-container.fullscreen {
    width: 100% !important;
    height: 100% !important;
}

.video-container.fullscreen video {
    width: 100% !important;
    height: 100% !important;
}

.video-container.fullscreen .controls {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
}
