/* Video Player Styles */

/* No Video Available Message */
.no-video-available {
    background: var(--bg-secondary);
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.no-video-available svg {
    margin: 0 auto 20px;
    opacity: 0.3;
    display: block;
    stroke: var(--text-muted);
}

.no-video-available h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.no-video-available p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Video Header - Title Above Player */
.video-header {
    margin-bottom: 20px;
}

.video-header .video-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.video-player-wrap {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 24px;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-js {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.video-js .vjs-big-play-button {
    font-size: 3em;
    line-height: 1.5em;
    height: 1.5em;
    width: 3em;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 0.06666em solid #fff;
    transition: all 0.3s ease;
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.video-js .vjs-control-bar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
    background-color: var(--accent-primary);
}

.no-video-available {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Single Video Page */
.single-video-page .container {
    max-width: 1440px;
}

.video-meta-section {
    padding: 24px 0;
}

.video-meta-section .video-title {
    display: none; /* Hide old title below video */
}

.video-stats {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.video-actions .like-btn {
    transition: all 0.3s ease;
}

.video-actions .like-btn svg {
    transition: all 0.3s ease;
}

.video-actions .like-btn.liked {
    background: var(--accent-danger);
    color: #fff;
}

.video-actions .like-btn.liked svg {
    fill: #fff;
    transform: scale(1.1);
}

.video-actions .like-btn:hover:not(.liked) svg {
    fill: var(--accent-danger);
}

.video-actions .like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.video-description {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.8;
}

.video-description .description-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.video-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.video-description .no-description {
    color: var(--text-muted);
    font-style: italic;
}

/* Video Taxonomies (Categories & Tags) */
.video-taxonomies {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.video-categories,
.video-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.video-tags {
    margin-bottom: 0;
}

.video-taxonomies svg {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--text-muted);
}

.taxonomy-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.taxonomy-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taxonomy-item {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.taxonomy-item:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.category-item {
    background: var(--accent-primary-alpha);
    color: var(--accent-primary);
    border-color: transparent;
    font-weight: 600;
}

.category-item:hover {
    background: var(--accent-primary);
    color: #fff;
}

.tag-item {
    font-weight: 500;
}

.video-comments {
    padding: 24px 0;
}

/* Upload Page */
.upload-video-page {
    padding: 48px 0;
}

/* Upload Tabs */
.upload-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.upload-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.upload-tab:hover {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
}

.upload-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
}

.upload-tab svg {
    width: 20px;
    height: 20px;
}

.upload-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* URL Upload Section */
.url-upload-section {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
}

.url-upload-section input[type="url"] {
    transition: all 0.3s ease;
}

.url-upload-section input[type="url"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-primary-alpha);
}

#url-video-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#url-video-info .video-preview {
    display: flex;
    gap: 16px;
    align-items: center;
}

#url-video-info .video-preview img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
}

#url-video-info .video-details {
    flex: 1;
}

#url-video-info .video-details h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

#url-video-info .video-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.upload-dropzone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-dropzone:hover {
    border-color: var(--accent-primary);
    background: #f0f4ff;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.15);
}

.upload-dropzone.drag-over {
    border-color: var(--accent-primary);
    background: var(--accent-primary-alpha);
    border-style: solid;
}

.upload-dropzone input[type="file"] {
    display: none !important;
}

.upload-instructions {
    width: 100%;
}

.upload-instructions p {
    margin-bottom: 8px;
}

.upload-instructions svg {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.upload-dropzone:hover svg {
    opacity: 0.8;
}

.file-list {
    margin-top: 24px;
    text-align: left;
}

.upload-item {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-item.error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

.upload-item .file-name {
    font-weight: 500;
}

.upload-item .file-size {
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-item .error-msg {
    color: #dc3545;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

/* Embed Modal */
.embed-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.embed-modal-content {
    background-color: var(--bg-card, #fff);
    margin: 5% auto;
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color, #e0e0e0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.embed-modal-close {
    color: var(--text-muted, #aaa);
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.embed-modal-close:hover,
.embed-modal-close:focus {
    color: var(--text-primary, #000);
}

.embed-modal h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--text-primary, #333);
}

.embed-modal .text-muted {
    color: var(--text-secondary, #666);
    font-size: 14px;
    margin-bottom: 20px;
}

.embed-size-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.embed-size-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    background: var(--bg-card, #fff);
    color: var(--text-primary, #333);
}

.embed-size-options label:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary-alpha);
}

.embed-size-options input[type="radio"] {
    margin: 0;
    accent-color: var(--accent-primary);
}

.embed-size-options input[type="radio"]:checked + span {
    color: var(--accent-primary);
    font-weight: 600;
}

#embed-code {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 16px;
    background: var(--bg-secondary, #f9f9f9);
    color: var(--text-primary, #333);
}

#embed-code:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card, #fff);
}

#copy-embed-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

#copy-embed-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.4);
}

#copy-embed-btn:active {
    transform: translateY(0);
}

#copy-embed-btn svg {
    stroke: currentColor;
}

/* Dark Mode Support for Embed Modal */
[data-theme="dark"] .embed-modal {
    background-color: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .embed-modal-content {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .embed-modal h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .embed-modal .text-muted {
    color: var(--text-secondary);
}

[data-theme="dark"] .embed-size-options label {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .embed-size-options label:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: var(--accent-primary);
}

[data-theme="dark"] #embed-code {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] #embed-code:focus {
    background: var(--bg-card);
}

[data-theme="dark"] .embed-modal-close {
    color: var(--text-muted);
}

[data-theme="dark"] .embed-modal-close:hover {
    color: var(--text-primary);
}


.upload-item .success-msg {
    color: var(--accent-success);
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

.upload-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.upload-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.upload-meta label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.upload-meta input[type="text"],
.upload-meta select,
.upload-meta textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color var(--transition-fast);
}

.upload-meta input[type="text"]:focus,
.upload-meta select:focus,
.upload-meta textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.upload-meta textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.upload-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Progress Bar */
.upload-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    transition: width 0.3s ease;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Related Videos Section */
.related-videos-section {
    margin: 48px 0;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.related-videos-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.related-videos-section .section-title svg {
    stroke: var(--accent-primary);
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-video-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.related-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.related-video-card .video-thumb-link {
    display: block;
    position: relative;
}

.related-video-card .video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.related-video-card .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.related-video-card .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: rgba(255, 255, 255, 0.4);
}

.related-video-card .video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.related-video-card .video-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);
    transition: background var(--transition-normal);
    opacity: 0;
}

.related-video-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.related-video-card .video-overlay svg {
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.related-video-card:hover .video-overlay svg {
    transform: scale(1);
}

.related-video-card .video-info {
    padding: 16px;
}

.related-video-card .video-title {
    margin: 0 0 12px 0;
}

.related-video-card .video-title a {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.related-video-card .video-title a:hover {
    color: var(--accent-primary);
}

.related-video-card .video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.related-video-card .video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.related-video-card .video-meta svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
}

.no-related-videos {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

/* Dark Mode for Related Videos */
[data-theme="dark"] .related-video-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .related-video-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .related-video-card .video-title a {
    color: var(--text-primary);
}

[data-theme="dark"] .related-video-card .thumb-placeholder {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
}

/* Dark Mode for Taxonomy Items */
[data-theme="dark"] .taxonomy-item {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .category-item {
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: var(--text-primary);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    font-weight: 600;
}

[data-theme="dark"] .category-item:hover {
    background: var(--accent-primary);
    color: #FFFFFF;
    border-color: var(--accent-primary);
}

[data-theme="dark"] .no-video-available {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Responsive Video Player */
@media (max-width: 767px) {
    .video-header .video-title {
        font-size: 18px;
    }
    
    .video-actions {
        flex-wrap: wrap;
    }
    
    .video-description .description-title {
        font-size: 16px;
    }
    
    /* Taxonomies Mobile */
    .video-categories,
    .video-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .taxonomy-label {
        font-size: 13px;
    }
    
    .taxonomy-item {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .upload-dropzone {
        padding: 48px 24px;
    }
    
    .upload-form {
        padding: 24px;
    }
    
    /* Related Videos Mobile */
    .related-videos-section {
        margin: 32px 0;
        padding: 24px 0;
    }
    
    .related-videos-section .section-title {
        font-size: 20px;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .related-video-card .video-info {
        padding: 12px;
    }
    
    .related-video-card .video-title a {
        font-size: 14px;
    }
    
    .related-video-card .video-meta {
        gap: 12px;
    }
    
    .related-video-card .video-meta span {
        font-size: 12px;
    }
}

/* Comments Section */
.video-comments {
    padding: 32px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comments-area {
    max-width: 100%;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title:before {
    content: "💬";
    font-size: 28px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow var(--transition-fast);
}

.comment:hover {
    box-shadow: var(--shadow-md);
}

.comment-body {
    display: flex;
    gap: 16px;
}

.comment-author {
    flex-shrink: 0;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.comment-content-wrap {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.comment-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.comment-metadata a {
    color: var(--text-muted);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--accent-primary);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.reply:hover {
    background: var(--accent-primary-alpha);
}

.reply:before {
    content: "↩️";
}

/* Nested Comments */
.children {
    list-style: none;
    margin: 16px 0 0 40px;
    padding: 0;
}

.children .comment {
    background: var(--bg-secondary);
}

/* Comment Form */
.comment-respond {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
}

.comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: 400;
}

.comment-reply-title small a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.comment-reply-title small a:hover {
    color: var(--accent-danger);
    background: rgba(239, 68, 68, 0.1);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form-comment {
    margin: 0;
}

.comment-form-comment label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-submit {
    margin: 8px 0 0 0;
}

.submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit:active {
    transform: translateY(0);
}

.comment-notes,
.logged-in-as {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
}

.logged-in-as a {
    color: var(--accent-primary);
    font-weight: 600;
}

.required-field-message {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: -8px;
}

.required {
    color: #FF5252;
    font-weight: 700;
}

/* No Comments */
.no-comments {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.no-comments p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0;
}

/* Dark Mode for Comments */
[data-theme="dark"] .comment {
    background: var(--bg-secondary);
}

[data-theme="dark"] .children .comment {
    background: var(--bg-primary);
}

[data-theme="dark"] .comment-respond {
    background: var(--bg-secondary);
}

[data-theme="dark"] .comment-notes,
[data-theme="dark"] .logged-in-as {
    color: var(--text-primary);
    background: var(--accent-primary-alpha);
}

[data-theme="dark"] .required {
    color: var(--accent-danger);
}

/* Comments Responsive */
@media (max-width: 767px) {
    .video-comments {
        padding: 24px 0;
    }
    
    .comments-title {
        font-size: 20px;
    }
    
    .comment {
        padding: 16px;
    }
    
    .comment-body {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-author .avatar {
        width: 48px;
        height: 48px;
    }
    
    .children {
        margin-left: 20px;
    }
    
    .comment-respond {
        padding: 16px;
    }
    
    .comment-reply-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-form-comment textarea {
        min-height: 100px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .related-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
