* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0f0f0f;
    color: #f1f1f1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #212121;
    border-bottom: 1px solid #303030;
}

.logo {
    font-size: 24px;
    color: #ff0000;
}

.nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-right span {
    margin-right: 15px;
}

.container {
    display: flex;
}

.sidebar {
    width: 200px;
    background-color: #212121;
    min-height: calc(100vh - 60px);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: block;
    padding: 12px 20px;
    color: #f1f1f1;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar-item:hover {
    background-color: #303030;
}

.sidebar-item.active {
    background-color: #303030;
    border-left: 3px solid #ff0000;
}

.content {
    flex: 1;
    padding: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background-color: #212121;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-thumbnail {
    width: 100%;
    height: 160px;
    background-color: #303030;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail .video-icon {
    font-size: 48px;
}

.video-preview {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.video-details {
    padding: 12px;
}

.video-details p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s;
}

.btn-primary {
    background-color: #ff0000;
    color: white;
}

.btn-secondary {
    background-color: #303030;
    color: #f1f1f1;
}

.btn-primary:hover, .btn-secondary:hover {
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #212121;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input, .modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #303030;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #f1f1f1;
    font-size: 14px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.error-msg {
    color: #ff0000;
    font-size: 12px;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.video-player video {
    width: 100%;
    max-height: 600px;
    background-color: #000;
}

.video-info {
    padding: 20px 0;
    border-bottom: 1px solid #303030;
    display: flex;
    gap: 20px;
    align-items: center;
}

.video-info p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #303030;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #f1f1f1;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.comment {
    background-color: #212121;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-actions button {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
}

.comment-actions button:hover {
    color: #fff;
}

.comment-text {
    color: #f1f1f1;
}

.login-prompt {
    color: #aaa;
    text-align: center;
    padding: 20px;
}

.admin-panel {
    max-width: 800px;
    margin: 0 auto;
}

.admin-form {
    background-color: #212121;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-form input[type="text"],
.admin-form input[type="file"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: #303030;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #f1f1f1;
}

.video-item {
    background-color: #212121;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-item-info h3 {
    margin-bottom: 5px;
}

.video-item-info p {
    color: #aaa;
    font-size: 12px;
}

.video-item-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.upload-status {
    margin-top: 20px;
    text-align: center;
}

.loader {
    border: 4px solid #303030;
    border-top: 4px solid #ff0000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upload-status p {
    color: #f1f1f1;
    font-size: 14px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.page-info {
    color: #f1f1f1;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #303030;
    margin-top: 10px;
}

.sidebar-footer p {
    color: #666;
    font-size: 11px;
    margin: 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #303030;
}

.profile-header h2 {
    color: #f1f1f1;
    font-size: 24px;
}

.video-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.badge-public {
    background-color: #4CAF50;
    color: white;
}

.badge-private {
    background-color: #666;
    color: white;
}

    background-color: #212121;
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
    line-height: 1.8;
}

.privacy-content h1 {
    color: #ff0000;
    margin-bottom: 30px;
    font-size: 32px;
}

.privacy-content h2 {
    color: #f1f1f1;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.privacy-content h3 {
    color: #f1f1f1;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
}

.privacy-content p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 14px;
}

.privacy-content strong {
    color: #f1f1f1;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-player:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: #666;
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ff0000;
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ff0000;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.video-player {
    position: relative;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}
