/* ============================================
   VIDEO PLAYER SPECIFIC STYLES - COMPLETE FIXED VERSION
   Inherits variables from main.css
   ============================================ */

/* Video Modal Container */
.ultimate-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ultimate-video-modal.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Theater Container */
.video-theater-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    background: var(--background);
}

/* ============================================
   MAIN VIDEO SECTION - FULL SCREEN WITH SCROLL
   ============================================ */

.video-main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--background);
    position: relative;
}

/* Header positioned at top */
.sidebar-header-enhanced {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-main-section:hover .sidebar-header-enhanced,
.sidebar-header-enhanced:hover {
    opacity: 1;
}

.sidebar-header-enhanced .modal-close-btn-enhanced {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-header-enhanced .modal-close-btn-enhanced:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.sidebar-header-enhanced .modal-close-btn-enhanced svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.video-title-enhanced {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    padding-right: 50px;
}

.video-meta-enhanced {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Video Wrapper - Takes full viewport height */
.video-wrapper-advanced {
    flex-shrink: 0;
    height: calc(100vh - 80px);
    min-height: 400px;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Video Element */
.enhanced-video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    background: black;
}

/* Loading Spinner */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.video-loading-spinner.active {
    display: flex;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--button-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Video Controls - Enhanced hover visibility */
.video-controls-advanced {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Show controls on hover */
.video-wrapper-advanced:hover .video-controls-advanced,
.video-controls-advanced.visible,
.video-controls-advanced:hover {
    opacity: 1;
}

/* Always show when paused */
.video-wrapper-advanced video:not([src]) ~ .video-controls-advanced,
.video-wrapper-advanced video[paused] ~ .video-controls-advanced {
    opacity: 1;
}

/* Progress Bar */
#progressContainer {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: visible;
    transition: height 0.2s ease;
}

#progressContainer:hover {
    height: 8px;
}

#progressBuffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    width: 0%;
}

#progressPlayed {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--button-bg), var(--button-hover));
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

#progressPreview {
    position: absolute;
    bottom: 150%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
}

#progressContainer:hover #progressPreview {
    opacity: 1;
}

#progressScrubber {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

#progressContainer:hover #progressScrubber {
    opacity: 1;
}

/* Control Buttons Row */
.controls-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls-left {
    flex: 1;
    justify-content: flex-start;
}

.controls-right {
    justify-content: flex-end;
}

/* Control Buttons */
.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.control-btn.play-pause svg {
    width: 32px;
    height: 32px;
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.time-separator {
    color: rgba(255, 255, 255, 0.7);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-control:hover .volume-slider-container {
    width: 100px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-level {
    height: 100%;
    background: var(--button-bg);
    border-radius: 2px;
    position: relative;
}

.volume-handle {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Speed & Quality Selectors */
.speed-selector,
.quality-selector {
    position: relative;
}

.speed-btn,
.quality-badge {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.speed-menu,
.quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    display: none;
    min-width: 120px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.speed-menu.active,
.quality-menu.active,
.speed-menu.visible,
.quality-menu.visible {
    display: block;
}

.speed-option,
.quality-option {
    padding: 8px 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.speed-option:hover,
.quality-option:hover {
    background: rgba(var(--button-bg-rgb), 0.1);
}

.speed-option.active,
.quality-option.active {
    color: var(--button-bg);
    font-weight: 600;
}

/* PiP & Fullscreen Buttons */
.pip-btn,
#fullscreenBtn,
#theaterBtn {
    position: relative;
}

.pip-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: none;
    animation: pulse 2s infinite;
}

/* PiP Mode */
.ultimate-video-modal.minimized {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 360px !important;
    height: 203px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
}

.ultimate-video-modal.minimized .video-main-section {
    height: 100% !important;
    overflow: hidden !important;
}

.ultimate-video-modal.minimized .engagement-bar-enhanced,
.ultimate-video-modal.minimized .related-videos-section,
.ultimate-video-modal.minimized .sidebar-header-enhanced,
.ultimate-video-modal.minimized .video-info-sidebar-enhanced {
    display: none !important;
}

.ultimate-video-modal.minimized .video-wrapper-advanced {
    height: 100% !important;
    margin: 0 !important;
}

.ultimate-video-modal.minimized .video-controls-advanced {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ultimate-video-modal.minimized:hover .video-controls-advanced {
    opacity: 1;
}

/* Fullscreen Mode */
.ultimate-video-modal.fullscreen {
    z-index: 100000 !important;
}

.ultimate-video-modal.fullscreen .video-info-sidebar-enhanced,
.ultimate-video-modal.fullscreen .engagement-bar-enhanced,
.ultimate-video-modal.fullscreen .related-videos-section {
    display: none !important;
}

.ultimate-video-modal.fullscreen .video-controls-advanced {
    opacity: 0;
}

.ultimate-video-modal.fullscreen .video-wrapper-advanced:hover .video-controls-advanced {
    opacity: 1;
}

/* Theater Mode */
.ultimate-video-modal.theater-mode .video-info-sidebar-enhanced {
    display: none !important;
}

.ultimate-video-modal.theater-mode .video-main-section {
    width: 100% !important;
    max-width: 100% !important;
}

/* ============================================
   ENGAGEMENT BAR - UNDER VIDEO
   ============================================ */

.engagement-bar-enhanced.under-video {
    display: flex;
    padding: 12px 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show engagement bar on hover */
.video-main-section:hover .engagement-bar-enhanced.under-video,
.engagement-bar-enhanced.under-video:hover {
    opacity: 1;
}

.engagement-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
    gap: 20px;
}

/* Left side - engagement buttons */
.engagement-left {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* Center - video counter */
.engagement-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-counter-display {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(var(--button-bg-rgb), 0.1);
    border-radius: 20px;
}

/* Right side - navigation and connection */
.engagement-right {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

/* Navigation buttons with titles */
.nav-btn-with-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(var(--button-bg-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 180px;
}

.nav-btn-with-title:hover:not(:disabled) {
    background: rgba(var(--button-bg-rgb), 0.1);
    border-color: var(--button-bg);
    transform: translateY(-2px);
}

.nav-btn-with-title:disabled,
.nav-btn-with-title.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Engagement button styles */
.engagement-btn-enhanced {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.engagement-btn-enhanced:hover {
    background: rgba(var(--button-bg-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Active states */
.engagement-btn-enhanced.liked,
.engagement-btn-enhanced.disliked,
.engagement-btn-enhanced.favorite-active,
.engagement-btn-enhanced.saved-active {
    background: var(--button-bg) !important;
    border-color: var(--button-bg) !important;
    color: var(--button-text) !important;
}

.engagement-icon-enhanced {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.engagement-count-enhanced {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* ============================================
   RELATED VIDEOS SECTION
   ============================================ */

.related-videos-section {
    padding: 24px 20px 40px;
    background: var(--background);
    min-height: 400px;
    width: 100%;
    box-sizing: border-box;
}

#related-videos-container {
    width: 100%;
    display: block;
}

.related-section {
    margin-bottom: 30px;
    width: 100%;
    display: block;
}

.related-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
    padding: 0 4px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.related-video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 135px;
    background: #000;
    overflow: hidden;
}

.related-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.related-video-info {
    padding: 12px;
}

.related-video-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================
   SIDEBAR
   ============================================ */

.video-info-sidebar-enhanced {
    width: 450px;
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Creator Section */
.creator-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.creator-stats {
    font-size: 13px;
    color: var(--text-muted);
}

/* Connection Button */
.connect-btn {
    padding: 8px 16px;
    background: var(--button-bg);
    border: none;
    border-radius: 6px;
    color: var(--button-text);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.connect-btn:hover:not(:disabled) {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tabs Section */
.tabs-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(var(--button-bg-rgb), 0.05);
    color: var(--text);
}

.tab-btn.active {
    color: var(--button-bg);
    background: rgba(var(--button-bg-rgb), 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--button-bg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: scaleX(0);
        opacity: 0;
    }
    to { 
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Tab Content */
.tabs-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--card-bg);
}

.tab-content {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab visibility */
#descriptionTab {
    display: block !important;
}

#commentsTab,
#chaptersTab {
    display: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.7; 
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .video-info-sidebar-enhanced {
        width: 380px;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-theater-container {
        flex-direction: column;
    }

    .video-wrapper-advanced {
        height: 50vh;
        min-height: 280px;
    }

    .video-info-sidebar-enhanced {
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .related-videos-grid {
        grid-template-columns: 1fr;
    }

    .engagement-bar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Video title adjustments */
    .video-title-enhanced {
        font-size: 18px;
        padding-right: 40px;
    }

    /* Control buttons smaller on mobile */
    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .control-btn.play-pause svg {
        width: 28px;
        height: 28px;
    }

    .controls-row {
        gap: 12px;
    }

    /* Engagement bar mobile */
    .engagement-btn-enhanced {
        max-width: none;
        flex-direction: row;
        justify-content: center;
        padding: 8px 12px;
    }

    .engagement-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .engagement-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Navigation buttons mobile */
    .nav-btn-with-title {
        max-width: none;
        flex: 1;
        justify-content: center;
    }

    /* Creator section mobile */
    .creator-section {
        padding: 15px;
    }

    .creator-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Tabs mobile */
    .tab-btn {
        padding: 10px;
        font-size: 13px;
    }

    .tabs-content {
        padding: 15px;
    }

    /* Related videos section mobile */
    .related-videos-section {
        padding: 15px 15px 30px;
    }

    .related-section-title {
        font-size: 16px;
    }

    /* Close button positioning for mobile */
    .sidebar-header-enhanced .modal-close-btn-enhanced {
        width: 32px;
        height: 32px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .video-wrapper-advanced {
        height: 40vh;
        min-height: 220px;
    }

    .video-info-sidebar-enhanced {
        height: 60vh;
    }

    /* Video title even smaller */
    .video-title-enhanced {
        font-size: 16px;
    }

    .video-meta-enhanced {
        font-size: 12px;
        gap: 10px;
    }

    /* Control buttons even smaller */
    .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .control-btn.play-pause svg {
        width: 24px;
        height: 24px;
    }

    .control-btn {
        padding: 6px;
    }

    .controls-row {
        gap: 8px;
    }

    .time-display {
        font-size: 12px;
    }

    /* Engagement buttons stacked */
    .engagement-btn-enhanced {
        padding: 6px 10px;
        gap: 4px;
    }

    .engagement-icon-enhanced {
        width: 16px;
        height: 16px;
    }

    .engagement-count-enhanced {
        font-size: 10px;
    }

    /* Video counter smaller */
    .video-counter-display {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Creator section compact */
    .creator-section {
        padding: 12px;
        gap: 10px;
    }

    .creator-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .creator-name {
        font-size: 14px;
    }

    .creator-stats {
        font-size: 12px;
    }

    .connect-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 100px;
    }

    /* Tabs compact */
    .tab-btn {
        padding: 8px;
        font-size: 12px;
    }

    .tabs-content {
        padding: 12px;
    }

    /* Related videos compact */
    .related-videos-section {
        padding: 12px 12px 24px;
    }

    .related-section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .related-videos-grid {
        gap: 12px;
    }

    .video-thumbnail-wrapper {
        height: 120px;
    }

    .related-video-info {
        padding: 10px;
    }

    .related-video-title {
        font-size: 13px;
    }

    /* PiP mode smaller on mobile */
    .ultimate-video-modal.minimized {
        width: 280px !important;
        height: 158px !important;
        bottom: 10px !important;
        right: 10px !important;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .video-theater-container {
        flex-direction: row;
    }

    .video-wrapper-advanced {
        height: 100vh;
        min-height: auto;
    }

    .video-info-sidebar-enhanced {
        width: 280px;
        height: 100vh;
    }

    .engagement-bar-enhanced.under-video {
        padding: 8px 12px;
    }

    .engagement-btn-enhanced {
        padding: 6px 8px;
    }
}

/* ============================================
   THEME CONSISTENCY
   ============================================ */

/* Ensure modal uses theme variables */
.ultimate-video-modal * {
    color: var(--text);
}

.ultimate-video-modal input,
.ultimate-video-modal textarea {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text);
}

.ultimate-video-modal button {
    color: inherit;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .ultimate-video-modal {
    background: rgba(0, 0, 0, 0.98);
}

[data-theme="dark"] .video-controls-advanced {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

[data-theme="dark"] .sidebar-header-enhanced {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}