
.video-container {
    width: 100%;
    /* max-width: 800px; */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video {
    width: 100%;
    max-height:400px;
    display: block;
    background-color: #000;
}

.controls-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .controls-container {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background-color: var(--progress-color);
    border-radius: 3px;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--progress-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-controls,
.right-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.control-btn:hover {
    color: var(--hover-color);
    transform: scale(1.1);
}

.volume-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-right: 5px;
    border-radius: 10px;
}

.volume-container:hover{
    background-color: #fff;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #000;
    border-radius: 2px;
    outline: none;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.volume-container:hover .volume-slider {
    opacity: 1;
    width: 100px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
}

.time {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.fullscreen-btn {
    margin-left: 10px;
}

.settings-menu {
    position: absolute;
    bottom: 60px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.settings-btn.active+.settings-menu {
    opacity: 1;
    visibility: visible;
}

.settings-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 12px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
}

.settings-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .volume-slider {
        display: none;
    }

    .time {
        font-size: 12px;
    }

    .control-btn {
        font-size: 16px;
    }
}

/* ADDITIONAL */
.video-thumbnail-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  display: block;
  border-radius: 4px;
  cursor: pointer;
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-radius: 4px;
}

.play-button-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-width: 12px 0 12px 20px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

.video-player {
  margin-top: 10px;
}