body {
    background: #0f0f0f;
    color: white;
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
}

.player-container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.main-video {
    flex: 3;
    min-width: 600px;
}

.vjs-playlist-container {
    flex: 1;
    min-width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 8px;
}

#hide-scrollbar {
    /* WebKit browsers */
    ::-webkit-scrollbar {
      display: none;
    }

    /* Firefox */
    scrollbar-width: none;

    /* IE and Edge */
    -ms-overflow-style: none;
}

#video-title {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.video-views {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 10px 0;
}

.video-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Customizing the Playlist UI to look cleaner */
.vjs-playlist-item {
    background: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
    cursor: pointer;
}

.vjs-playlist-item:hover {
    background: #333 !important;
}

.vjs-playlist-item.vjs-selected {
    background: #444 !important;
    border-left: 4px solid #00d4aa !important;
}

/* Comments Section */
.comments-section {
    margin-top: 30px;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
}

.comments-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Registration Box */
.registration-box {
    background: #0f0f0f;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: center;
}

.registration-box h4 {
    margin: 0 0 10px 0;
    color: #00d4aa;
    font-size: 1.1rem;
}

.registration-hint {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.registration-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.registration-form input {
    flex: 1;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

.registration-form input:focus {
    outline: none;
    border-color: #00d4aa;
}

.auth-message {
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* User Profile Display */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: #0f0f0f;
    border-radius: 4px;
}

.profile-label {
    color: #888;
    font-size: 0.9rem;
}

.username-badge {
    background: #00d4aa;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

.change-username-btn {
    margin-left: auto;
    background: transparent;
    color: #00d4aa;
    border: 1px solid #00d4aa;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.change-username-btn:hover {
    background: #00d4aa;
    color: white;
}

/* Comment Form */
#comment-form textarea {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#comment-form textarea:focus {
    outline: none;
    border-color: #00d4aa;
}

button {
    background: #00d4aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
}

button:hover {
    background: #00b894;
}

/* Comments List */
.comments-list {
    margin-top: 20px;
}

.comment {
    background: #0f0f0f;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 3px solid #333;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.comment-username {
    color: #00d4aa;
    font-weight: bold;
}

.comment-date {
    color: #666;
    font-size: 0.85rem;
}

.comment-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-comment-btn {
    background: transparent;
    color: #888;
    border: 1px solid #333;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: normal;
}

.delete-comment-btn:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

/* Director comment styling */
.comment.director-comment {
    border-left: 3px solid #ffa500;
}

.comment.director-comment .comment-username {
    color: #ffa500;
}

.comment-text {
    color: #ddd;
    line-height: 1.5;
    word-wrap: break-word;
}

.no-comments {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #333;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: transparent;
    color: #888;
    font-size: 2rem;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
    border-radius: 4px;
}

.close-btn:hover {
    background: #333;
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.95rem;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.modal-body input:focus {
    outline: none;
    border-color: #00d4aa;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #333;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-btn {
    background: transparent;
    color: #888;
    border: 1px solid #333;
}

.cancel-btn:hover {
    background: #333;
    color: white;
}

.save-btn {
    background: #00d4aa;
    color: white;
}

.save-btn:hover {
    background: #00b894;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-video {
        min-width: 100%;
    }

    .vjs-playlist-container {
        min-width: 100%;
    }

    .registration-form {
        flex-direction: column;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .user-profile {
        flex-wrap: wrap;
    }

    .change-username-btn {
        margin-left: 0;
        width: 100%;
    }
}

