/* Modern Video Platform Styles - Mobile First */
:root {
    --video-primary: #667eea;
    --video-secondary: #764ba2;
    --video-hover: #5568d3;
    --success-green: #48bb78;
    --danger-red: #f56565;
    --warning-orange: #ed8936;
	--video-title:  #ffe3fe;
    --input-dark-bg: #2d2d44;
    --input-dark-text: #e5e7eb;
    --input-dark-border: #3d3d54;
}

h1 {
	background:none;
  color: var(--video-title) !important;
}
body {
background: var(--light-background) !important;
}

/* Base Page Styles */
.videos-page {
    background: var(--light-background);
    min-height: 100vh;
}

/* Modern Hero Section */
.videos-hero {
    position: relative;
   
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
      opacity: 0 !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-title i {
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero.btn-primary {
    background: white;
    color: var(--video-primary);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modern Filter Section */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--input-dark-text);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--input-dark-border);
    border-radius: 24px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.search-input::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.search-input:focus {
    outline: none;
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill-group {
    position: relative;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;

    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
}

.filter-pill.active {
    border-color: var(--video-primary);
    background: var(--video-primary);
    color: white;
}

.filter-pill i:not(.arrow) {
    font-size: 0.9rem;
}

.filter-pill .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.filter-pill.active .arrow {
    transform: rotate(180deg);
}

/* Filter Dropdown */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: var(--video-hover);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    z-index: 100;
    display: none;
    animation: dropdownFade 0.2s ease;
}

.filter-dropdown.show {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-option:hover {
    background: var(--light-background);
    color: var(--video-primary);
}

.filter-option.active {
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    color: white;
}

.filter-option i {
    font-size: 0.9rem;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.results-info i {
    color: var(--video-primary);
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-link:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 0.9rem;
}

/* Video Grid - Responsive */
.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
   
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--video-primary);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.video-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #dc1ea5;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    backdrop-filter: blur(10px);
}

.video-badge i {
    font-size: 0.7rem;
}

/* Video Info */
.video-info {
    padding: 1rem;
}

.video-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.channel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;

}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
    font-weight: 500;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted-text);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat i {
    font-size: 0.75rem;
}

.stat-divider {
    color: var(--border-color);
}

/* Pagination */
.pagination-wrapper {
    margin: 3rem 0 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    border-color: transparent;
    color: white;
}

.page-dots .page-link {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.page-dots .page-link:hover {
    transform: none;
    background: transparent;
}

.page-text {
    display: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 24px;
    border: 2px solid var(--border-color);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.empty-text {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Tablet Styles */
@media (min-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .page-text {
        display: inline;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title i {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .videos-hero {
        padding: 3rem 0;
    }
    
    .filter-form {
        flex-direction: row;
        align-items: center;
    }
    
    .search-wrapper {
        flex: 1;
        max-width: 400px;
    }
}

/* Large Desktop */
@media (min-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop */
@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Ultra Wide */
@media (min-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile Optimization */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-title i {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
    
    .quick-link-text {
        display: none;
    }
    
    .quick-link {
        padding: 0.625rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-links {
        justify-content: space-around;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover {
        transform: none;
    }
    
    .video-card:active {
        transform: scale(0.98);
    }
    
    .filter-pill,
    .quick-link,
    .page-link {
        min-height: 44px; /* iOS recommended touch target */
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .video-card {
        border-width: 3px;
    }
    
    .filter-pill,
    .quick-link {
        border-width: 3px;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --card-background: #1a1a2e;
        --light-background: #0f0f23;
        --dark-text: #e5e7eb;
        --light-text: #9ca3af;
        --border-color: #2d2d44;
    }
    
    .video-card,
    .search-input,
    .filter-pill,
    .quick-link,
    .empty-state {
        background: var(--card-background);
        color: var(--dark-text);
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--video-primary);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .videos-hero,
    .filter-section,
    .pagination-wrapper,
    .quick-links {
        display: none;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Watch Page Styles */
.video-player-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-player-container .ratio {
    background: #000;
}

.video-player-container iframe {
    border: none;
}

/* Video Details Section */
.video-details {
    background: white;
    border-radius: 16px;
  
    margin-bottom: 1.5rem;
}

.video-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 0 0;
    line-height: 1.3;
}

.video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--light-text);
    font-size: 0.9rem;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.video-stats i {
    font-size: 0.9rem;
}

.likes-display {
    cursor: pointer;
    transition: all 0.2s ease;
}

.likes-display:hover {
    color: var(--video-primary);
    transform: scale(1.05);
}

.video-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.video-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(102, 126, 234, 0.05);
    border: 0px solid var(--border-color);
    border-radius: 20px;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-btn:hover:not(:disabled) {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.video-btn.active {
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    border-color: transparent;
    color: white;
}

.video-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Video Channel Info */
.video-channel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.channel-link:hover {
    transform: translateX(4px);
}

.channel-link-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
	opacity: 0.3;
}

.channel-link-info {
    flex: 1;
}

.channel-link-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--dark-text);
}

.channel-link-subs {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
}

.subscribe-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    color: white;
}

.subscribe-btn.subscribed {
    background: var(--input-dark-bg);
    border: 2px solid var(--input-dark-border);
    color: var(--input-dark-text);
}

.subscribe-btn.subscribed:hover {
    background: #1f1f35;
    border-color: var(--video-primary);
}

/* Video Description */
.video-description {
    background: var(--light-background);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.description-content {
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.description-short,
.description-full {
   
    word-wrap: break-word;
}

#showMoreBtn {
    color: var(--video-primary);
    font-weight: 600;
    padding: 0;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#showMoreBtn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Video Tags */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-tags .badge {
    background: rgba(102, 126, 234, 0.1);
    color: var(--video-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-tags .badge:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
 
}

.comments-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comments-header i {
    color: var(--video-primary);
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
   
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    padding: 0.75rem 1rem;
 
    border-radius: 12px;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.comment-input::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.comment-input:focus {
    outline: none;
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* Comment Item */
.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: color 0.2s ease;
}

.comment-author:hover {
    color: var(--video-primary);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--muted-text);
}

.comment-text {
    margin: 0.5rem 0;
    color: var(--dark-text);
    line-height: 1.5;
    
    word-wrap: break-word;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment-like-btn,
.comment-reply-btn,
.view-replies-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
}

.comment-like-btn:hover {
    color: var(--video-primary);
}

.comment-reply-btn:hover,
.view-replies-btn:hover {
    color: var(--video-primary);
}

.view-replies-btn i {
    transition: transform 0.2s ease;
}

/* Related Videos Sidebar */
.related-videos {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
   
    position: sticky;
    top: 1rem;
}

.related-videos h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--dark-text);
}

.autoplay-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-video-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.related-video-item:hover {
    background: var(--light-background);
}

.related-thumbnail {
    width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.375rem 0;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-channel {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.related-views {
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* Breadcrumb Styles - Fixed Alignment */
.video-breadcrumb {
    margin-bottom: 1.5rem;
}

.video-breadcrumb .breadcrumb {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.video-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.video-breadcrumb .breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1;
}

.video-breadcrumb .breadcrumb-item a:hover {
    color: var(--video-primary);
}

.video-breadcrumb .breadcrumb-item a i {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1;
}

.video-breadcrumb .breadcrumb-item.active {
    color: var(--dark-text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1;
}

.video-breadcrumb .breadcrumb-item.active i {
    color: var(--video-primary);
    line-height: 1;
}

.video-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.5rem;
}

.video-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--muted-text);
    font-size: 1.1rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    line-height: 1;
    float: none;
}
 
/* Responsive */
@media (max-width: 768px) {
    .video-breadcrumb .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .video-breadcrumb .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    /* Hide some breadcrumb items on mobile to save space */
    .video-breadcrumb .breadcrumb-item:nth-child(3) {
        display: none;
    }
    
    .video-breadcrumb .breadcrumb-item:nth-child(3) + .breadcrumb-item::before {
        content: "›››";
    }
}


/* Responsive Watch Page */
@media (max-width: 991px) {
    .related-videos {
        position: static;
        margin-top: 1.5rem;
    }
    
    .related-thumbnail {
        width: 120px;
        height: 68px;
    }
    
    .video-title-large {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .video-details {
        padding: 1rem;
    }
    
    .video-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .video-buttons {
        justify-content: stretch;
    }
    
    .video-btn {
        flex: 1;
        justify-content: center;
    }
    
    .video-channel-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-video-item {
        flex-direction: column;
    }
    
    .related-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .comment-form {
        flex-direction: column;
    }
    
    .comment-avatar {
        display: none;
    }
    
    .video-breadcrumb .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .comments-section {
        padding: 1rem;
    }
    
    .video-title-large {
        font-size: 1.1rem;
    }
    
    .video-stats {
        font-size: 0.8rem;
    }
    
    .video-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .channel-link-avatar {
        width: 40px;
        height: 40px;
    }
    
    .channel-link-name {
        font-size: 0.9rem;
    }
    
    .subscribe-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Theater Mode */
#watchContainer.theater-mode {
    max-width: 100%;
}

#watchContainer.theater-mode .video-player-container {
    border-radius: 0;
    margin-bottom: 0;
}

#watchContainer.theater-mode .col-lg-8 {
    max-width: 100%;
}

/* Dark Mode Support for Watch Page */
@media (prefers-color-scheme: dark) {
    .video-details,
    .comments-section,
    .related-videos {
        background: var(--card-background);
    }
    
    .video-player-container {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

/* Share Modal Styles */
.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
  
    border-radius: 12px;
    color: var(--dark-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1.25rem;
}

/* Likes Modal Styles */
.likes-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
   
    transition: background 0.2s ease;
}

.likes-list-item:hover {
    background: var(--light-background);
}

.likes-list-item:last-child {
    border-bottom: none;
}

.likes-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  
}

.likes-list-info {
    flex: 1;
}

.likes-list-username {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.likes-list-username:hover {
    color: var(--video-primary);
}

.likes-list-date {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Playlist Modal Styles */
.playlist-check-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.playlist-check-item:hover {
    background: var(--light-background);
}

.playlist-check-item:last-child {
    border-bottom: none;
}

.create-playlist-section {
    background: var(--light-background);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.create-playlist-section h6 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

/* Form Controls in Watch Page - Dark Inputs */
.form-control {
    background: var(--input-dark-bg);
    border: 2px solid var(--input-dark-border);
    color: var(--input-dark-text);
}

.form-control::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.form-control:focus {
    background: var(--input-dark-bg);
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    color: var(--input-dark-text);
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--video-primary);
    border-color: var(--video-primary);
}

.input-group .form-control {
    border: 2px solid var(--input-dark-border);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.input-group .form-control:focus {
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

/* Alert Styles in Watch Page */
.alert {
    border-radius: 12px;
    border: 2px solid;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    border-color: var(--success-green);
    color: var(--success-green);
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--video-primary);
    color: var(--video-primary);
}

/* Loading States */
.spinner-border {
    border-color: var(--border-color);
    border-right-color: var(--video-primary);
}

/* Notification Badge on Watch Page */
.position-relative {
    position: relative;
}

.badge.rounded-pill {
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.bg-danger {
    background-color: var(--danger-red) !important;
}

/* Smooth Transitions */
.video-details,
.comments-section,
.related-videos,
.video-btn,
.subscribe-btn,
.comment-item,
.related-video-item {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.video-btn:focus-visible,
.subscribe-btn:focus-visible,
.comment-input:focus-visible {
    outline: 3px solid var(--video-primary);
    outline-offset: 2px;
}

/* VIDEO INDEX PAGE - Video Card Details */
.video-card-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
    font-weight: 500;
}

/* WATCH PAGE - Video Meta Details Section */
.watch-video-details {
	background-color: var(--card-background);
    padding:24px;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}


/* up 1 */
/* Header Override - Video Platform Style */
body:has(.videos-page) .navbar,
body:has(.video-player-container) .navbar,
body:has(.channel-header) .navbar {
   background: var(--card-background);
    border-bottom: 0px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body:has(.videos-page) .navbar-brand,
body:has(.video-player-container) .navbar-brand,
body:has(.channel-header) .navbar-brand {
    color: var(--dark-text) !important;
    font-weight: 700;
}

body:has(.videos-page) .nav-link,
body:has(.video-player-container) .nav-link,
body:has(.channel-header) .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

body:has(.videos-page) .nav-link:hover,
body:has(.video-player-container) .nav-link:hover,
body:has(.channel-header) .nav-link:hover,
body:has(.videos-page) .nav-link.active,
body:has(.video-player-container) .nav-link.active,
body:has(.channel-header) .nav-link.active {
    color: var(--video-primary) !important;
}

body:has(.videos-page) .form-control,
body:has(.video-player-container) .form-control,
body:has(.channel-header) .form-control {
    border: 2px solid var(--input-dark-border);
    border-radius: 12px;
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

body:has(.videos-page) .form-control::placeholder,
body:has(.video-player-container) .form-control::placeholder,
body:has(.channel-header) .form-control::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

body:has(.videos-page) .form-control:focus,
body:has(.video-player-container) .form-control:focus,
body:has(.channel-header) .form-control:focus {
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

body:has(.videos-page) .btn-primary,
body:has(.video-player-container) .btn-primary,
body:has(.channel-header) .btn-primary {
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
}

body:has(.videos-page) .btn-outline-primary,
body:has(.video-player-container) .btn-outline-primary,
body:has(.channel-header) .btn-outline-primary {
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    border-radius: 12px;
    font-weight: 600;
}

body:has(.videos-page) .btn-outline-primary:hover,
body:has(.video-player-container) .btn-outline-primary:hover,
body:has(.channel-header) .btn-outline-primary:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    color: var(--video-primary);
}

body:has(.videos-page) .dropdown-menu,
body:has(.video-player-container) .dropdown-menu,
body:has(.channel-header) .dropdown-menu {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body:has(.videos-page) .dropdown-item,
body:has(.video-player-container) .dropdown-item,
body:has(.channel-header) .dropdown-item {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--dark-text);
    font-weight: 500;
}

body:has(.videos-page) .dropdown-item:hover,
body:has(.video-player-container) .dropdown-item:hover,
body:has(.channel-header) .dropdown-item:hover {
    background: var(--light-background);
    color: var(--video-primary);
}

body:has(.videos-page) .notification-btn,
body:has(.video-player-container) .notification-btn,
body:has(.channel-header) .notification-btn {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--dark-text);
}

body:has(.videos-page) .notification-btn:hover,
body:has(.video-player-container) .notification-btn:hover,
body:has(.channel-header) .notification-btn:hover {
    border-color: var(--video-primary);
    background: rgba(102, 126, 234, 0.05);
    color: var(--video-primary);
}

.user-dropdown-toggle{
	color: #f9f2f5 !important;
    background: var(--light-background);
}

.user-dropdown-toggle span {
color: #f9f2f5 !important;
}

/* Likes Modal - Fixed Styles */
.likes-list {
    max-height: 400px;
    overflow-y: auto;
}

.likes-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.likes-list-item:hover {
    background: var(--light-background);
}

.likes-list-item:last-child {
    border-bottom: none;
}

.likes-list-item a {
    text-decoration: none;
}

.likes-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;

    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.likes-list-avatar:hover {
    transform: scale(1.05);
    border-color: var(--video-primary);
}

.likes-list-info {
    flex: 1;
    min-width: 0;
}

.likes-list-username {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.likes-list-username:hover {
    color: var(--video-primary);
}

.likes-list-date {
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Likes Modal Header */
#likesModal .modal-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
}

#likesModal .modal-title {
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    line-height: 1;
}

#likesModal .modal-title i {
    font-size: 1.25rem;
    line-height: 1;
}

#likesModal .modal-body {
    padding: 0;
}

#likesModal .modal-content {

    border-radius: 16px;
    overflow: hidden;
}

/* Empty state in likes modal */
.likes-list + p.text-center {
    padding: 3rem 2rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Comment Form - Fixed Styles */
.comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
   
}

.comment-input-wrapper {
    flex: 1;
    min-width: 0;
}

.comment-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-dark-border);
    border-radius: 12px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 45px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.comment-input::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.comment-input:focus {
    outline: none;
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-actions .btn {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.comment-actions .btn-outline-secondary {

    color: var(--dark-text);
}

.comment-actions .btn-outline-secondary:hover {
    border-color: var(--light-text);
    background: var(--light-background);
}

.comment-actions .btn-primary {
    background: linear-gradient(135deg, var(--video-primary) 0%, var(--video-secondary) 100%);
    border: none;
}

.comment-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Reply Form Styles */
.reply-form-container {
    margin-top: 1rem;
    padding-left: 3rem;
    animation: slideDown 0.3s ease;
}

.reply-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.reply-form .comment-avatar {
    width: 32px;
    height: 32px;
}

.reply-form .comment-input {
    font-size: 0.9rem;
    min-height: 40px;
}

.reply-form .comment-actions {
    margin-top: 0.5rem;
}

.reply-form .comment-actions .btn {
    padding: 0.375rem 1rem;
    font-size: 0.85rem;
}

/* Comment Input Focus Animation */
.comment-input:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    from {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
    to {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }
}

/* Scrollbar Styles for Likes List */
.likes-list::-webkit-scrollbar {
    width: 8px;
}

.likes-list::-webkit-scrollbar-track {
    background: var(--light-background);
    border-radius: 10px;
}

.likes-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.likes-list::-webkit-scrollbar-thumb:hover {
    background: var(--light-text);
}

/* Modal Backdrop Enhancement */
.modal-backdrop.show {
    opacity: 0.6;
}

/* Responsive Fixes */
@media (max-width: 767px) {
    .comment-form {
        gap: 0.5rem;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-input {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    .comment-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .comment-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .reply-form-container {
        padding-left: 2rem;
    }
    
    .likes-list-avatar {
        width: 40px;
        height: 40px;
    }
    
    .likes-list-item {
        padding: 0.75rem;
    }
    
    #likesModal .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 575px) {
    .comment-form {
        flex-direction: column;
    }
    
    .comment-avatar {
        display: none; /* Hide avatar on very small screens to save space */
    }
    
    .comment-input {
        font-size: 0.875rem;
    }
    
    .reply-form-container {
        padding-left: 1rem;
    }
    
    .reply-form .comment-avatar {
        display: none;
    }
    
    #likesModal .modal-header {
        padding: 1rem;
    }
    
    #likesModal .modal-title {
        font-size: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .comment-input {
        background: var(--card-background);
        color: var(--dark-text);
    }
    
    .comment-input:focus {
        background: var(--card-background);
    }
    
    .likes-list-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    #likesModal .modal-content {
        background: var(--card-background);
    }
    
    #likesModal .modal-header {
        background: rgba(102, 126, 234, 0.1);
    }
}

/* Loading State for Likes Modal */
#likesListContainer .fa-spinner {
    color: var(--video-primary);
}

/* Alert in Comments */
.comments-section .alert {
    border-radius: 12px;
    border: 2px solid;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.comments-section .alert-info {
    background: rgba(102, 126, 234, 0.05);
    border-color: var(--video-primary);
    color: var(--dark-text);
}

.comments-section .alert a {
    color: var(--video-primary);
    font-weight: 600;
    text-decoration: underline;
}

.comments-section .alert a:hover {
    opacity: 0.8;
}

/* Breadcrumb Styles */
.video-breadcrumb {
    margin-bottom: 1.5rem;
}

.video-breadcrumb .breadcrumb {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.video-breadcrumb .breadcrumb-item {
    font-size: 0.875rem;
}

.video-breadcrumb .breadcrumb-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.video-breadcrumb .breadcrumb-item a:hover {
    color: var(--video-primary);
    transform: translateX(2px);
}

.video-breadcrumb .breadcrumb-item a i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.video-breadcrumb .breadcrumb-item.active {
    color: var(--dark-text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.video-breadcrumb .breadcrumb-item.active i {
    color: var(--video-primary);
}

.video-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--muted-text);
    font-size: 1.1rem;
    padding-right: 0.5rem;
}
 
/* Responsive */
@media (max-width: 768px) {
    .video-breadcrumb .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .video-breadcrumb .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    /* Hide some breadcrumb items on mobile to save space */
    .video-breadcrumb .breadcrumb-item:nth-child(3) {
        display: none;
    }
    
    .video-breadcrumb .breadcrumb-item:nth-child(3) + .breadcrumb-item::before {
        content: "›››";
    }
}

/* Comment Section Styles - Essential for watch.php */
:root {
    --fb-blue: #1877f2;
    --fb-green: #42b72a;
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --text-primary: #050505;
    --text-secondary: #65676b;
    --border-color: #e4e6eb;
    --hover-overlay: rgba(0, 0, 0, 0.05);
}

.post-comments-section {
    background: transparent;
    padding: 0;
}

.post-comments-section.show {
    display: block;
}

.comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input-container {
    flex: 1;
}




.comment-actions {
    display: none;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.comment-textarea:focus + .comment-actions,
.comment-actions:hover {
    display: flex;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-cancel-btn {
    background: transparent;
    color: var(--text-primary);
}

.comment-cancel-btn:hover {
    background: var(--hover-overlay);
}

.comment-submit-btn {
    background: var(--fb-blue);
    color: white;
}

.comment-submit-btn:hover {
    background: #166fe5;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Comment Item */
.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 0;
    
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-bubble {

    border-radius: 18px;

    display: inline-block;
    max-width: 100%;
}

.comment-header {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
  
    text-decoration: none;
    font-size: 0.9rem;
}

.comment-author:hover {
    text-decoration: underline;
}



.comment-actions-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.comment-like-btn,
.comment-reply-btn,
.view-replies-btn,
.comment-edit-btn,
.comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
}

.comment-like-btn:hover,
.comment-reply-btn:hover,
.view-replies-btn:hover {
    color: var(--fb-blue);
}

.comment-edit-btn:hover {
    color: var(--fb-blue);
}

.comment-delete-btn:hover {
    color: #dc3545;
}

.comment-like-btn.liked {
    color: #e91e63;
}

.comment-like-btn.liked i {
    color: #e91e63;
}

/* Nested Replies */
.replies-container {
    margin-top: 0.75rem;
    padding-left: 2.5rem;
    border-left: 2px solid var(--border-color);
}

.comment-reply {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
  
}

.comment-reply:last-child {
    border-bottom: none;
}

.comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

.comment-reply .comment-bubble {
    font-size: 0.9rem;
}

/* Reply Form */
.reply-form-container {
    margin-top: 0.75rem;
    padding-left: 2.5rem;
    padding-top: 0.5rem;
  
}

.reply-form-container .comment-input-wrapper {
    margin-bottom: 0;
}

.reply-form-container .comment-avatar {
    width: 32px;
    height: 32px;
}

.reply-form-container .comment-textarea {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.reply-form-container .comment-actions {
    display: flex !important;
    margin-top: 0.5rem;
}

/* Edit Comment Form */
.edit-comment-form {
    margin-top: 0.5rem;
}

.edit-comment-form textarea {
    width: 100%;
 
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.edit-comment-form textarea:focus {
    outline: none;
    border-color: var(--fb-blue);
}

.edit-comment-form .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comment-item {
        padding: 0.75rem 0;
    }
    
    .replies-container {
        padding-left: 1.5rem;
    }
    
    .reply-form-container {
        padding-left: 1.5rem;
    }
}

@media (max-width: 576px) {
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-textarea {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
    
    .comment-actions-inline {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
}

.comment-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-dark-border);
    border-radius: 12px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 45px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}

.comment-textarea::placeholder {
    color: rgba(229, 231, 235, 0.5);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--video-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: var(--input-dark-bg);
    color: var(--input-dark-text);
}