@charset "utf-8";
* {
    margin: 0;
    padding: 0;
}


.hidden {
    display: none;
}

#videoPlayer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#videoPlayer #player_blind {
    display: none;
    position: absolute;
    /* background: aliceblue; */
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
#videoPlayer.hide {
    display: none;
}
#videoPlayer > div {
    position: relative;
    flex: 1;
}

#playList {
    display: none;
    position: absolute !important;
    top: 0px;
    right: 0;
    bottom: 0;
    font-size: 12px;
    width: 30% !important;
    overflow-x: hidden;
    padding: 11px 0px;
    overflow-y: auto;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: -5px 0px 5px rgb(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

#videoPlayer:fullscreen #playList {
    font-size: 15px;
    width: 27% !important;
}
#playList .title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}
#playList .title img {
    width: 25px;
}
#playList .title p{
    color: #ffffff;
}

#videoPlayer #header {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    top: 10px;
    left: 0;
    right: 0;
    height: 30PX;
    z-index: 2;
    color: #ffffff;
    line-height: 40px;
    background-color: rgba(0, 0, 0, .2);
}
#videoPlayer button {
    background: transparent;
    border: none;
}
#videoPlayer #header #title {
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#videoPlayer #header #close {
    width: 55px;
    min-width: 16px;
    height: 41px;
}
#videoPlayer button img{
    width: 100%;
    height: 100%;
}
#videoPlayer #header #close img{
    width: 16px;
    height: 16px;
}
#videoPlayer #header #buttons {
    white-space: nowrap;
    margin: 15px 0 3px auto;
}
#videoPlayer #header #buttons button {
    width: 25px;
    height: 25px;
    min-width: 25px;
    margin-right: 25px;
}
#seekTime{
    position: absolute;
    font-size: 25px;
    color: #fff;
    font-weight: bold;
}

#controller #buttons_bottom {
    display: flex;
    margin: 5px 5px 0 0;
}
#controller #buttons_bottom button {
    width: 25px;
    height: 25px;
    margin: 0 0 5px 10px;
}
#videoPlayer #player {
    width: 100%;
    height: 100%;
}s
#videoPlayer button {
    border: 0;
    color: #ffffff;
    background: transparent;
    vertical-align: middle;
}
#videoPlayer button svg {
    width: 25px;
    height: 25px;
}

/* Main controller */

#videoPlayer #main_controller {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 1000;
}

#videoPlayer #main_controller button {
    margin: 0 30px;
    width: 35px;
}

#videoPlayer:fullscreen #main_controller button img {
    position: relative;
    top: 2px;
    width: 75px;
}

/* Bottom controller */
#videoPlayer #controller {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    padding: 0 10px;
    z-index: 2;
    line-height: 65px;
    background-color: rgba(0, 0, 0, .2);
}

#videoPlayer #controller #controller1 {
    display: flex;
    justify-content: flex-end;
    height: 30px;
}
#videoPlayer #controller #controller1 button img {
    width: 25px;
    height: 25px;
}
#videoPlayer #controller #controller2 {
    display: flex;
    align-items: center;
    height: 30px;
}
#videoPlayer #controller #controller1 #time {
    position: absolute;
    left: 10px;
    top: -10px;
    height: 20px;
    font-size: 14px;
    color: #ffffff;
}
#videoPlayer #controller #controller2 #seek {
    width: 100%;
}
#videoPlayer #controller #controller2 #speaker {
    margin-left: 20px;
    flex-basis: 20px;
}
#videoPlayer #controller #controller2 #speaker img {
    width: 20px;
}
#videoPlayer #controller #controller2 #volume {
    margin-left: 10px;
    flex-basis: 150px;
}
#peerStatus {
    position: fixed;
    top: 10px;
    right: 10px;
    color: #ffffff;
}
#peerStatus label {
    color: #ffffff;
}

/* Playlist */



#playList.show {
    display: block;
    width: auto;
}
#playList ul {
    list-style: none;
    cursor: pointer;
}
#playList ul li {
    padding: 7px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 40px;
    text-align: left;
    color: #fff;
}

#playList ul li.active {
    background-color: rgb(229 64 64 / 30%);
    background-image: url(//img.filesun.com/m/player/player_view1.png);
    background-repeat: no-repeat;
    background-size: 1.5em;
    background-position: 0.5em center; /* ← 왼쪽 여백 */
    padding-left: 2.5em;              /* 이미지 + 여백 */
}

/* range */
input[type=range].range {
    height: 24px;
    -webkit-appearance: none;
    margin: 10px auto;
    width: 95%;
    background: transparent;
}

input[type=range].range:focus {
    outline: none;
}

input[type=range].range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #ef3d30;
    border-radius: 11px;
    border: 0px solid #000000;
}

input[type=range].range::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 2px solid #ef3d30;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
}

input[type=range].range:focus::-webkit-slider-runnable-track {
    background: #ef3d30;
}

input[type=range].range::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #ef3d30;
    border-radius: 11px;
    border: 0px solid #000000;
}

input[type=range].range::-moz-range-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 2px solid #ef3d30;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
}

input[type=range].range::-ms-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range].range::-ms-fill-lower {
    background: #ef3d30;
    border: 0px solid #000000;
    border-radius: 22px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range].range::-ms-fill-upper {
    background: #ef3d30;
    border: 0px solid #000000;
    border-radius: 22px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range].range::-ms-thumb {
    margin-top: 1px;
    box-shadow: 0px 0px 0px #000000;
    border: 2px solid #ef3d30;
    height: 17px;
    width: 17px;
    border-radius: 17px;
    background: #ffffff;
    cursor: pointer;
}

input[type=range].range:focus::-ms-fill-lower {
    background: #ef3d30;
}

input[type=range].range:focus::-ms-fill-upper {
    background: #ef3d30;
}

#videoPlayer #seekTime {
    position: absolute;
    display: none;
}
#videoPlayer #playerRecommendList {
    display: none;
    position: absolute;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16%;
    width: 70%;
    pointer-events: none;
}

#videoPlayer #playerRecommendList  a{
    pointer-events: auto;
    text-decoration: none;
}
#videoPlayer #playerRecommendList  a  img {
    width: 100%;
    height: 100%;
}
#videoPlayer #playerRecommendList  a {
    width: 100%;
    aspect-ratio: 7 / 4;
    background-size: 100% auto;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 20px;
    display: block;
    border: 1px solid #fff;
    border-radius: 20px;
}

#videoPlayer #playerRecommendList  a .content-title {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: break-word;
    top: 5px;
    padding: 0px 9px 0px 5px;
    left: 7px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 6px rgba(0, 0, 0, .6);
}
#videoPlayer #playerRecommendList  a .seek-time {
    position: absolute;
    bottom: 5px;
    right: 7px;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 6px rgba(0, 0, 0, .6);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3px 4px;
}