.title {
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #181818;
    color: white;
}

.title {
    text-align: center;
    padding: 20px;
}

.videos {
    width: 100%;    
    margin: auto;
}

.player {
    position: relative;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

.player video {
    width: 100%;
    display: block;
    cursor: pointer;
}

.controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.progress {
    flex: 1;
    height: 5px;
    background: #555;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: red;
}

.time {
    font-size: 13px;
    width: 90px;
    text-align: center;
}

.volume {
    width: 80px;
}

..playlist {
    margin-top: 15px;
    border: 1px solid #333;
    border-radius: 6px;
    overflow-y: auto;
    max-height: 220px;
    background: #202020;
}

.item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: .2s;
}

.item:last-child {
    border-bottom: none;
}

.item:hover {
    background: #333;
}

.item.active {
    background: #c00;
    color: #fff;
    font-weight: bold;
}

.videos {
    width: 900px;
    margin: auto;
}

.player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.player video {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Hiển thị toàn bộ video */
    background: #000;
}

/* Danh sách video */
.playlist {
    max-height: 100%;      /* Chiều cao danh sách */
    overflow-y: auto;       /* Hiện thanh cuộn dọc */
    border: 1px solid #333;
    border-radius: 8px;
    background: #202020;
}

/* Thanh cuộn đẹp hơn (Chrome, Edge) */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #222;
}

.playlist::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.timeline{
    display:flex;
    align-items:center;
    gap:10px;

    padding:10px 20px;
    height:50px;

    background:#222;
}

.timeline span{
    width:55px;
    color:#fff;
    text-align:center;
    font-size:14px;
}

.progress{
    flex:1;
    cursor:pointer;
}

/* .main-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
} */