/* Custom Video Player Styles */
.custom-video-container {
    max-width: 100%;
    margin: 20px 0;
    background: transparent;
    border-radius: 12px;
/*     box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
}

.custom-video-player {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
    border-radius: 12px 12px 12px 12px;
}

.video-info {
    padding-block: 20px;
    background: transparent;
    border-bottom: 1px solid #cccccc8a;
}
.engagement-buttons button.dislike-btn {
    display: none;
}
.video-title {
    font-size: 3em;
    font-weight: 600;
    margin-bottom: 0 !important;
    line-height: 1.3;
    font-family: font1;
}
.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(157 151 151 / 90%);
    font-size: 20px;
    font-family: 'font1';
}


.views-number {
    font-weight: 100;
    color: rgb(157 151 151 / 90%);
    transition: all 0.3s ease;
    font-family: font1;
}

.views-number.updating {
    transform: scale(1.1);
    color: #ff6b6b;
}

.engagement-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.like-btn, .dislike-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    position: relative;
    overflow: hidden;
}

.like-btn:hover, .dislike-btn:hover {
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.like-btn.active {
    background: #cccccc75;
    border-color: #cccccc75;
    color: white;
}

.dislike-btn.active {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.like-btn.clicked, .dislike-btn.clicked {
    animation: buttonClick 0.3s ease;
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.like-count, .dislike-count {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Loading states */
.like-btn:disabled, .dislike-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 840px) {
    .custom-video-container {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 2.1em;
        margin-bottom: 12px;
    }
    
    .video-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .engagement-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .like-btn, .dislike-btn {
        padding: 10px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .custom-video-player {
        border-radius: 8px 8px 8px 8px;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 1.1em;
    }
    
    .engagement-buttons {
        gap: 8px;
    }
    
    .like-btn, .dislike-btn {
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .custom-video-container {
        background: transparent;
/*         box-shadow: 0 4px 20px rgba(255,255,255,0.1); */
    }
    
    .video-info {
        background: transparent;
    }
    
    .video-title {
        color: #ffffff;
    }
    
    .view-count {
        color: #fff;
    }
    
    .views-number {
        color: #ffffff;
    }
    
    .like-btn, .dislike-btn {
        background: #2f2f2f;
        border-color: #404040;
        color: #ffffff;
    }
    
    .like-btn:hover, .dislike-btn:hover {
        border-color: #606060;
        background: #3f3f3f;
    }
}

/* Custom video controls enhancement */
.custom-video-player::-webkit-media-controls-panel {
/*     background-color: rgba(0,0,0,0.8); */
}

.custom-video-player::-webkit-media-controls-play-button {
    background-color: #4285f4;
    border-radius: 50%;
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.analytics-dashboard h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.analytics-dashboard table {
    border-collapse: collapse;
}

.analytics-dashboard th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 12px;
    text-align: left;
}

.analytics-dashboard td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.analytics-dashboard tr:hover {
    background: #f8f9fa;
}

/* Accessibility improvements */
.like-btn:focus, .dislike-btn:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.custom-video-player:focus {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

/* Animation for real-time updates */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-video-container {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading spinner for buttons */
.like-btn.loading::after,
.dislike-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}