:root {
    --fade-duration: 0.3s; /* フェードイン/アウトのデフォルト速度 */
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    margin: 0;
}

.video-container {
    position: relative;
    width: 640px;
    height: 360px;
    margin: 60px 10px;
}

video {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer; /* 動画クリック可能を示すため */
    border-radius: 5px;
}

.controls {
    position: absolute;
    color: #fff;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px;
    opacity: 0;
    transition: opacity var(--fade-duration); /* フェードイン/アウトの速度をCSS変数で管理 */
    z-index: 10;
    border-radius: 5px;
}

.controls.show {
    opacity: 1;
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.control-buttons-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.control-buttons-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
}

button, input[type="range"]{
    background: #555;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
}
select{
    background: #555;
    border: none;
    color: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
}
button:hover, input[type="range"]:hover, select:hover {
    background: #777;
}

#seekbar {
    margin-bottom: 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;
}

.hidden-cursor {
    cursor: none;
}

.time-display {
    white-space: nowrap;
    padding-left: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, .1);
    z-index: 100;
    display: flex;
    justify-content: space-between;
  }

#seekbar{
padding: 0;
}

#volume{
padding: 0;
}

iframe{
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    position: relative;
    width: 640px;
    height: 360px;
    margin: 60px 10px;
}

#detail{

    white-space:pre;
    margin-left: 10px;
}