/* Modern Video Player Styles */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.c-video {
    width: 100%;
    position: relative;
    background-color: #000;
}

.video {
    width: 100%;
    display: block;
    border-radius: 12px;
    cursor: pointer;
    background-color: black;
    padding: 0;
}

/* Controls styling */
.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.c-video:hover .controls {
    opacity: 1;
}

/* Timeline container */
.timeline-container {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: height 0.2s ease-in-out;
    margin-bottom: 10px;
}

.timeline-container:hover {
    height: 6px;
}

.timeline {
    position: relative;
    height: 100%;
    width: 100%;
}

.orange-bar {
    position: relative;
    height: 100%;
    width: 100%;
}

.orange-juice {
    position: absolute;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.thumb-indicator {
    position: absolute;
    height: 12px;
    width: 12px;
    background-color: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    top: 50%;
    left: calc(var(--progress-position) * 100%);
    transition: transform 0.1s ease-in-out;
    transform-origin: center;
    opacity: 0;
}

.timeline-container:hover .thumb-indicator {
    opacity: 1;
    transform: scale(1) translateY(-50%);
}

.time-indicator {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 20px;
    transform: translateX(-50%);
    display: none;
}

.timeline-container:hover .time-indicator {
    display: block;
}

/* Buttons styling */
.buttons {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.buttons button, 
.mute-btn, 
.full-screen-btn, 
.speed-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 5px;
    margin: 0 5px;
    border-radius: 50%;
}

.buttons button:hover, 
.mute-btn:hover, 
.full-screen-btn:hover, 
.speed-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

/* SVG Icons */
svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin: 0;
    vertical-align: middle;
}

/* Time display */
.time-container {
    color: white;
    font-size: 14px;
    font-family: Arial, sans-serif;
    margin-left: auto;
    margin-right: 15px;
    opacity: 0.9;
}

/* Volume control */
.volume-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.volume-slider {
    width: 0;
    max-width: 80px;
    height: 5px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    appearance: none;
    outline: none;
    transform-origin: left;
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.volume-container:hover .volume-slider,
.volume-slider:focus-within {
    width: 80px;
    transform: scaleX(1);
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Speed button */
.speed-btn {
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    margin-right: 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Loading animation */
.loading-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.loading-icon img {
    width: 48px;
    height: 48px;
    opacity: 0.8;
}

/* Fullscreen mode */
.full-screen .video,
.c-video.full-screen {
    border-radius: 0;
}

/* Additional media queries for responsive design */
@media (max-width: 768px) {
    .volume-slider {
        display: none;
    }
    
    .speed-btn, .time-container {
        font-size: 12px;
    }
    
    .buttons button, 
    .mute-btn, 
    .full-screen-btn {
        padding: 3px;
    }
    
    svg {
        width: 20px;
        height: 20px;
    }
}

/* Video title and related elements */
.video-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #0f0f0f;
}

.video-views-and-date {
    font-size: 14px;
    color: #606060;
    margin-bottom: 20px;
}

.video-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.video-userinfos-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.video-userinfos {
    display: flex;
    align-items: center;
}

.video-channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.video-userinfos-username {
    font-size: 16px;
    font-weight: 500;
    color: #0f0f0f;
}

.like-button {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.like-button:hover {
    background-color: #f5f5f5;
}

.like-button svg {
    width: 22px;
    height: 22px;
    fill: #0f0f0f;
    margin-right: 6px;
}

.like-button.like .not-liked {
    display: none;
}

.like-button:not(.like) .liked {
    display: none;
}

.likes-number {
    font-size: 14px;
    font-weight: 500;
    color: #0f0f0f;
}

.comments_and_description {
    margin-top: 20px;
    line-height: 1.5;
    color: #0f0f0f;
}