/* ============================================
   PARTYSTREAM WATCH V2 - IMMERSIVE CINEMA
   Premium Glass Morphism Design
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Glass Morphism Core */
    --w2-glass-bg: rgba(255, 255, 255, 0.06);
    --w2-glass-bg-hover: rgba(255, 255, 255, 0.10);
    --w2-glass-border: rgba(255, 255, 255, 0.10);
    --w2-glass-border-hover: rgba(255, 255, 255, 0.15);
    --w2-glass-blur: 20px;
    --w2-glass-blur-strong: 30px;

    /* Accent Colors */
    --w2-accent-primary: #8B5CF6;
    --w2-accent-primary-dark: #7C3AED;
    --w2-accent-secondary: #3b82f6;
    --w2-accent-purple: #8B5CF6;
    --w2-accent-blue: #3b82f6;
    --w2-accent-cyan: #06b6d4;
    --w2-accent-pink: #ec4899;
    --w2-accent-green: #22c55e;
    --w2-accent-red: #ef4444;

    /* Glow Effects */
    --w2-glow-primary: rgba(139, 92, 246, 0.4);
    --w2-glow-secondary: rgba(59, 130, 246, 0.4);
    --w2-glow-cyan: rgba(6, 182, 212, 0.4);

    /* Ambient Light */
    --w2-ambient-intensity: 0.5;
    --w2-ambient-blur: 120px;
    --w2-ambient-color-1: rgba(139, 92, 246, 0.3);
    --w2-ambient-color-2: rgba(59, 130, 246, 0.3);
    --w2-ambient-color-3: rgba(6, 182, 212, 0.3);
    --w2-ambient-color-4: rgba(236, 72, 153, 0.3);

    /* Text Colors */
    --w2-text-primary: #f0f0f0;
    --w2-text-secondary: #a0a0a0;
    --w2-text-tertiary: #707070;

    /* Background */
    --w2-bg-page: #0a0a0a;
    --w2-bg-elevated: #141414;

    /* Spacing */
    --w2-sidebar-width: 380px;
    --w2-gap: 20px;
    --w2-radius-sm: 8px;
    --w2-radius-md: 12px;
    --w2-radius-lg: 16px;
    --w2-radius-xl: 20px;

    /* Transitions */
    --w2-transition-fast: 0.15s ease;
    --w2-transition-normal: 0.3s ease;
    --w2-transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --w2-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Night mode overrides (lighter glass on dark) */
body.night_mode {
    --w2-glass-bg: rgba(255, 255, 255, 0.05);
    --w2-glass-bg-hover: rgba(255, 255, 255, 0.08);
    --w2-glass-border: rgba(255, 255, 255, 0.08);
}

/* Light mode (if needed) */
body:not(.night_mode) .watch-root {
    --w2-glass-bg: rgba(0, 0, 0, 0.03);
    --w2-glass-bg-hover: rgba(0, 0, 0, 0.05);
    --w2-glass-border: rgba(0, 0, 0, 0.08);
    --w2-text-primary: #1a1a1a;
    --w2-text-secondary: #666;
    --w2-text-tertiary: #999;
    --w2-bg-page: #f5f5f5;
    --w2-bg-elevated: #ffffff;
    --w2-ambient-intensity: 0.3;
}

/* ============================================
   ROOT CONTAINER
   ============================================ */
.watch-root {
    position: relative;
    min-height: 100vh;
    background: transparent;
    color: var(--w2-text-primary);
    /* overflow moved to watch-main to avoid stacking context */
}

/* Background layer - separated with own z-index */
.watch-root::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--w2-bg-page);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   AMBIENT LIGHT (glow around player only)
   ============================================ */
/* Full page ambient layer - hidden (glow is now applied via box-shadow on player) */
.watch-ambient-layer {
    display: none;
}

/* Player wrapper gets dynamic box-shadow glow from JS based on video colors */
.watch-player-wrapper.ambient-active {
    /* Box-shadow is set dynamically via AmbientLight JS class */
}

/* Default subtle glow when ambient is disabled */
.watch-player-wrapper:not(.ambient-active) {
    box-shadow:
        0 0 15px 3px rgba(139, 92, 246, 0.08),
        0 0 30px 8px rgba(59, 130, 246, 0.04);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.watch-main {
    position: relative;
    display: flex;
    align-items: flex-start;  /* CRITICAL: Both columns start at top, don't stretch */
    gap: var(--w2-gap);
    max-width: 1800px;
    margin: 0 auto;
    padding: var(--w2-gap);
    overflow-x: hidden;
    /* min-height removed - let height be natural based on content */
}

.watch-video-column {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--w2-gap);
    background: var(--w2-bg-page);
}

.watch-sidebar {
    width: var(--w2-sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--w2-gap);
    background: var(--w2-bg-page);
}

/* Removed scrollbar styling - sidebar scrolls with page, no separate scroll */

/* ============================================
   GLASS MORPHISM BASE CLASSES
   ============================================ */
.watch-glass {
    background: var(--w2-glass-bg);
    backdrop-filter: blur(var(--w2-glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--w2-glass-blur)) saturate(180%);
    border: 1px solid var(--w2-glass-border);
    border-radius: var(--w2-radius-lg);
    transition: all var(--w2-transition-normal);
}

.watch-glass-strong {
    background: var(--w2-glass-bg-hover);
    backdrop-filter: blur(var(--w2-glass-blur-strong)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--w2-glass-blur-strong)) saturate(200%);
}

/* ============================================
   VIDEO PLAYER SECTION
   ============================================ */
.watch-player-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: var(--w2-radius-lg);
    overflow: visible;
}

/* White transparent border - inside */
.watch-player-glow {
    position: absolute;
    inset: -2px;
    background: transparent;
    border: 4px solid rgba(255, 255, 255, 1);
    border-radius: var(--w2-radius-lg);
    z-index: 1;
    pointer-events: none;
}

/* Player Container */
.watch-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--w2-radius-lg);
    overflow: hidden;
}

.watch-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* Play/Pause Animation Indicator */
.watch-play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: none;
}

.watch-play-indicator.show {
    animation: playIndicatorPop 0.5s ease-out forwards;
}

.watch-play-indicator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.watch-play-indicator i.fa {
    font-size: 40px;
    color: #fff;
    display: none;
}

.watch-play-indicator.playing .watch-icon-play {
    display: block;
}

.watch-play-indicator.paused .watch-icon-pause {
    display: block;
}

@keyframes playIndicatorPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Overlay Actions (theater, pip, ambient buttons) */
.watch-overlay-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--w2-transition-normal);
    z-index: 10;
}

.watch-player-wrapper:hover .watch-overlay-actions {
    opacity: 1;
    transform: translateY(0);
}

.watch-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.watch-overlay-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.watch-overlay-btn.active {
    background: var(--w2-accent-primary);
    border-color: var(--w2-accent-primary);
}

.watch-overlay-btn i.fa {
    font-size: 18px;
}

/* Floating Reactions Container */
/* Reactions Container - Full video coverage */
.watch-reactions-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* Floating Reaction Emoji - Bottom right corner of video */
.watch-reaction {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 24px;
    opacity: 0;
    animation: watchFloatUp 1.8s ease-out forwards;
    pointer-events: none;
}

/* Like Animation - Float UP from bottom right */
@keyframes watchFloatUp {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    15% {
        transform: translateY(-30px) scale(1);
        opacity: 0.9;
    }
    60% {
        transform: translateY(-100px) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-150px) scale(0.7);
        opacity: 0;
    }
}

/* Unlike Animation - Fast drop DOWN from bottom right */
.watch-reaction.unlike {
    animation: watchSuckDown 0.5s ease-in forwards;
}

@keyframes watchSuckDown {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateY(80px) scale(0.3);
        opacity: 0;
    }
}

/* ============================================
   VIDEO INFO SECTION
   ============================================ */

/* Header Row & Title Row - shared styles */
.watch-header-row,
.watch-title-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--w2-glass-border);
}

.watch-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--w2-text-primary);
    margin: 0;
    flex: 1;
}

/* ==========================================
   REACTIONS BAR
   ========================================== */

.watch-reactions-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--w2-glass-bg);
    backdrop-filter: blur(var(--w2-glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--w2-glass-blur)) saturate(180%);
    border: 1px solid var(--w2-glass-border);
    border-radius: 22px;
    padding: 2px 6px;
}

.watch-reaction-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.watch-reaction-btn .watch-reaction-emoji {
    font-size: 28px;
    line-height: 1;
}

.watch-reaction-btn .watch-reaction-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--w2-text-secondary);
    opacity: 0.8;
}

.watch-reaction-btn .watch-reaction-count:empty {
    display: none;
}

/* Active state */
.watch-reaction-btn.active .watch-reaction-count {
    color: var(--w2-text-primary);
    font-weight: 600;
    opacity: 1;
}

/* Active emoji glow animation */
@keyframes activeGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 15px #fff, 0 0 30px #fff, 0 0 45px #fff;
    }
    50% {
        transform: scale(1.08);
        text-shadow: 0 0 20px #fff, 0 0 40px #fff, 0 0 60px #fff;
    }
}

.watch-reaction-btn.active .watch-reaction-emoji {
    animation: activeGlow 2s ease-in-out infinite;
}

/* Pop animation - LEN cez .pop class */
@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) translateY(-12px); }
    100% { transform: scale(1); }
}

.watch-reaction-btn .watch-reaction-emoji.pop {
    animation: reactionPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tooltip */
.watch-reaction-btn::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--w2-transition-fast), transform var(--w2-transition-fast);
    z-index: 100;
}

.watch-reaction-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Actions Row - All buttons */
.watch-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.watch-actions-row > * {
    flex-shrink: 0;
}

/* Subscribe button wrapper */
.watch-subscribe-wrapper {
    margin-left: 4px;
}


/* Follow button - always purple */
.watch-subscribe-wrapper .btn-subscribe,
.watch-subscribe-wrapper .btn-subscribed {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 36px;
    background: var(--w2-accent-primary);
    border: none;
    border-radius: 18px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    text-transform: none;
    transition: all var(--w2-transition-normal);
}

/* Follow button hover */
.watch-subscribe-wrapper .btn-subscribe:hover {
    transform: scale(1.05);
    background: var(--w2-accent-primary-dark);
    box-shadow: 0 4px 20px var(--w2-glow-primary);
}

/* Followed state - outlined style */
.watch-subscribe-wrapper .btn-subscribed {
    background: transparent;
    border: 2px solid var(--w2-accent-primary);
    color: var(--w2-accent-primary);
}

.watch-subscribe-wrapper .btn-subscribed:hover {
    transform: scale(1.03);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

/* Action Buttons */
.watch-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-action-btn,
a.watch-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    background: var(--w2-bg-page);
    border: 1px solid var(--w2-glass-border);
    border-radius: 18px;
    color: var(--w2-text-primary);
    font-size: 14px;
    line-height: 36px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-normal);
    text-decoration: none;
}

.watch-action-btn i.fa {
    font-size: 18px;
}

/* Mobile reaction button - hidden on desktop */
.watch-mobile-reaction-btn {
    display: none;
}

/* Action Button Hover - Solid blue */
.watch-action-btn:hover,
.watch-action-btn:focus,
.watch-action-btn:active,
a.watch-action-btn:hover,
a.watch-action-btn:focus {
    transform: scale(1.03);
    background: var(--w2-accent-secondary);
    border-color: var(--w2-accent-secondary);
    color: #fff;
    box-shadow: 0 4px 16px var(--w2-glow-secondary);
    text-decoration: none;
}

/* Action Button Active State */
.watch-action-btn:active {
    transform: scale(0.98);
}

/* Override global analytics button hover for Watch2 */
.watch-root .watch-actions-row button.cs-analytics-btn:hover,
.watch-root .watch-actions-row button.cs-analytics-btn:focus {
    color: #fff !important;
}

/* ============================================
   CHANNEL CARD
   ============================================ */
.watch-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    margin-top: 16px;
    background: var(--w2-glass-bg);
    border-radius: var(--w2-radius-md);
}

.watch-channel-info {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.watch-channel-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
}

.watch-channel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Avatar Glow for Verified */
.watch-channel-avatar-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--w2-accent-primary), var(--w2-accent-cyan));
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    transition: opacity var(--w2-transition-normal);
}

.watch-channel-avatar.verified .watch-channel-avatar-glow {
    opacity: 0.5;
}

.watch-channel-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.watch-channel-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--w2-text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.watch-channel-name:hover {
    color: var(--w2-accent-primary);
}

.watch-verified-badge {
    font-size: 14px;
    color: var(--w2-accent-primary);
}

.watch-channel-subs {
    font-size: 12px;
    color: var(--w2-text-secondary);
}

/* Hide duplicate subscriber count next to follow button */
.watch-channel-card .subs-amount {
    display: none;
}

/* Channel Actions - Right side of channel card */
.watch-channel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Subscribe Button */
.watch-subscribe-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--w2-accent-primary), var(--w2-accent-secondary));
    border: none;
    border-radius: 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
    box-shadow: 0 4px 15px var(--w2-glow-primary);
}

.watch-subscribe-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--w2-glow-primary);
}

.watch-subscribe-btn.subscribed {
    background: var(--w2-glass-bg);
    border: 1px solid var(--w2-glass-border);
    box-shadow: none;
}

/* ============================================
   DESCRIPTION
   ============================================ */
.watch-description {
    margin-top: 16px;
    padding: 16px;
    background: var(--w2-glass-bg);
    border-radius: var(--w2-radius-md);
}

/* Description Meta (Views, Date, Hashtags) */
.watch-description-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--w2-text-primary);
}

.watch-meta-dot {
    width: 4px;
    height: 4px;
    background: var(--w2-text-muted);
    border-radius: 50%;
}

.watch-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 8px;
}

.watch-hashtag {
    color: var(--w2-accent-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--w2-transition-fast);
}

.watch-hashtag:hover {
    color: var(--w2-accent-secondary);
    text-decoration: underline;
}

.watch-description-content {
    max-height: 80px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.6;
    color: var(--w2-text-secondary);
    transition: max-height var(--w2-transition-smooth);
}

.watch-description.expanded .watch-description-content {
    max-height: 2000px;
}

.watch-description-toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    color: var(--w2-accent-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.watch-description-toggle:hover {
    text-decoration: underline;
}

/* ============================================
   SIDEBAR
   ============================================ */
.watch-sidebar-glass {
    position: relative;
    z-index: 2;
    padding: 12px;
    padding-bottom: 20px;
    background: var(--w2-bg-page);
}

/* Remove border from sidebar containers */
.watch-sidebar-glass.watch-glass {
    border: none;
}

/* Scrollbar styles removed - sidebar scrolls with page */

/* Sidebar Header */
.watch-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--w2-glass-border);
}

.watch-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--w2-text-primary);
}

/* Autoplay Toggle */
.watch-autoplay-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-autoplay-toggle label {
    font-size: 13px;
    color: var(--w2-text-secondary);
    cursor: pointer;
}

.watch-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--w2-glass-border);
    border-radius: 11px;
    cursor: pointer;
    transition: background var(--w2-transition-fast);
}

.watch-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--w2-transition-fast);
}

.watch-toggle-switch.active {
    background: var(--w2-accent-primary);
}

.watch-toggle-switch.active::after {
    transform: translateX(18px);
}

/* Related Video Item */
.watch-related-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    margin: 0 -10px;
    border-radius: var(--w2-radius-sm);
    cursor: pointer;
    transition: background var(--w2-transition-fast);
}

.watch-related-item:hover {
    background: var(--w2-glass-bg);
}

.watch-related-thumb {
    position: relative;
    width: 168px;
    height: 94px;
    flex-shrink: 0;
    border-radius: var(--w2-radius-sm);
    overflow: hidden;
    background: var(--w2-bg-elevated);
}

.watch-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-related-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    z-index: 2;
}

/* Play hover button for sidebar video previews */
.watch-related-thumb .play_hover_btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.watch-related-thumb:hover .play_hover_btn {
    opacity: 1;
}

.watch-related-thumb .play_hover_btn svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.watch-related-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.watch-related-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--w2-text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch-related-channel {
    font-size: 12px;
    color: var(--w2-text-secondary);
}

.watch-related-meta {
    font-size: 12px;
    color: var(--w2-text-tertiary);
}

/* Sidebar Lazy Loading */
.sidebar-lazy-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--w2-text-secondary);
    font-size: 13px;
}

.sidebar-lazy-loader.hidden {
    display: none !important;
}

.sidebar-lazy-loader i {
    font-size: 16px;
}

.sidebar-sentinel {
    height: 20px;
    width: 100%;
    margin-top: 20px;
}

/* Reel Sidebar Item */
.sidebar-reel-item {
    position: relative;
}

.sidebar-reel-thumb {
    position: relative;
}

.sidebar-reel-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    z-index: 2;
}

/* Music Sidebar Item */
.sidebar-music-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-music-cover {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--w2-bg-elevated);
}

.sidebar-music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.sidebar-music-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-music-item:hover .sidebar-music-play {
    opacity: 1;
}

.sidebar-music-play svg {
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sidebar-music-info {
    flex: 1;
    min-width: 0;
}

/* ============================================
   LIVE CHAT CONTAINER
   ============================================ */
.watch-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.watch-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--w2-glass-border);
}

.watch-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--w2-accent-red);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.watch-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: watchLivePulse 1.5s ease infinite;
}

@keyframes watchLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.watch-viewer-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--w2-text-secondary);
}

.watch-chat-iframe {
    flex: 1;
    border: none;
    border-radius: var(--w2-radius-sm);
    background: var(--w2-bg-elevated);
}

/* ============================================
   COMMENTS SECTION - REDESIGNED
   ============================================ */

.watch-comments-glass {
    position: relative;
    z-index: 100;
    padding: 16px;
}

/* ============================================
   COMMENT ITEM - Main comment container
   ============================================ */
.watch-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    position: relative;
}

.watch-comment-item:hover .watch-comment-actions {
    opacity: 1;
}

/* Comment Avatar */
.watch-comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.watch-comment-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Comment Main Content */
.watch-comment-main {
    flex: 1;
    min-width: 0;
}

/* Comment Bubble - Glass morphism style */
.watch-comment-bubble {
    background: var(--w2-glass-bg, rgba(0, 0, 0, 0.04));
    backdrop-filter: blur(10px);
    border: 1px solid var(--w2-glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 18px;
    padding: 10px 14px;
    transition: all var(--w2-transition-fast, 0.15s ease);
}

/* Light mode bubble */
body:not(.night_mode) .watch-comment-bubble {
    background: #f0f2f5;
    border-color: transparent;
}

body:not(.night_mode) .watch-comment-bubble:hover {
    background: #e4e6e9;
}

/* Dark mode bubble hover */
body.night_mode .watch-comment-bubble:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Comment User Header */
.watch-comment-user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.watch-comment-user a {
    font-weight: 600;
    color: var(--w2-text-primary, #1a1a1a);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--w2-transition-fast, 0.15s ease);
}

body:not(.night_mode) .watch-comment-user a {
    color: #1a1a1a;
}

body.night_mode .watch-comment-user a {
    color: #f0f0f0;
}

.watch-comment-user a:hover {
    color: var(--w2-accent-primary, #8B5CF6);
}

/* Verified Badge */
.verified-badge {
    font-size: 14px !important;
    color: var(--w2-accent-primary);
}

/* Pinned Badge */
.watch-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--w2-accent-primary);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.watch-pinned-badge i {
    font-size: 10px;
}

/* Comment Time */
.watch-comment-time {
    font-size: 11px;
    color: var(--w2-text-tertiary, #888);
    margin-left: auto;
}

body:not(.night_mode) .watch-comment-time {
    color: #65676b;
}

/* Comment Text */
.watch-comment-text {
    color: var(--w2-text-secondary, #333);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

body:not(.night_mode) .watch-comment-text {
    color: #050505;
}

body.night_mode .watch-comment-text {
    color: #e0e0e0;
}

/* Comment Media */
.watch-comment-media {
    margin-top: 10px;
}

.watch-comment-media img {
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity var(--w2-transition-fast);
}

.watch-comment-media img:hover {
    opacity: 0.9;
}

/* Reply Media */
.watch-reply-media {
    margin-top: 8px;
}

.watch-reply-media img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity var(--w2-transition-fast);
}

.watch-reply-media img:hover {
    opacity: 0.9;
}

/* ============================================
   COMMENT STATS - Like/Dislike/Reply buttons
   ============================================ */
.watch-comment-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-left: 4px;
}

.watch-stat-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--w2-text-tertiary, #65676b);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

body:not(.night_mode) .watch-stat-btn {
    color: #65676b;
}

body.night_mode .watch-stat-btn {
    color: #a0a0a0;
}

.watch-stat-btn i {
    font-size: 16px;
}

.watch-stat-btn span {
    font-weight: 500;
}

/* Like button hover/active */
.watch-like-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.watch-like-btn.active {
    color: #3b82f6;
}

/* Dislike button hover/active */
.watch-dislike-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.watch-dislike-btn.active {
    color: #ef4444;
}

/* Reply button hover */
.watch-reply-btn:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-accent-primary);
}

/* ============================================
   COMMENT ACTIONS - Hover buttons (Pin/Delete)
   ============================================ */
.watch-comment-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    right: 0;
    top: 12px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.watch-comment-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--w2-text-tertiary, #65676b);
    cursor: pointer;
    transition: all 0.15s ease;
}

body:not(.night_mode) .watch-comment-action-btn {
    color: #8a8d91;
}

body.night_mode .watch-comment-action-btn {
    color: #707070;
}

.watch-comment-action-btn i {
    font-size: 16px;
}

/* Pin button hover */
.watch-pin-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--w2-accent-primary, #8B5CF6);
}

/* Unpin button hover */
.watch-unpin-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Delete button hover */
.watch-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ============================================
   FACEBOOK-STYLE THREAD LINES
   Simple approach with single vertical line
   ============================================ */

/* Vertical line from Level 0 avatar - height set by JavaScript */
/* COMPATIBLE VERSION WITHOUT :has() - uses .has-replies class added by JavaScript */
.watch-comment-item.has-replies::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 48px;
    height: var(--thread-line-height, 0);
    width: 2px;
    background: #ccd0d5;
    z-index: 0;
}

body.night_mode .watch-comment-item.has-replies::after {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   REPLIES CONTAINER
   ============================================ */
.watch-replies-container {
    margin-top: 12px;
    position: relative;
    overflow: visible !important;
}

.watch-replies-container:empty {
    display: none;
}

/* ============================================
   REPLY ITEM - Level 1 replies
   ============================================ */
.watch-reply-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    position: relative;
}

/* L-shaped connector with rounded corner */
.watch-reply-item::before {
    content: '' !important;
    position: absolute !important;
    left: -30px !important;
    top: 10px !important;
    width: 28px !important;
    height: 16px !important;
    border-left: 2px solid #ccd0d5 !important;
    border-bottom: 2px solid #ccd0d5 !important;
    border-bottom-left-radius: 12px !important;
    background: transparent !important;
    z-index: 1 !important;
    display: block !important;
}

body.night_mode .watch-reply-item::before {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.watch-reply-item:hover .watch-reply-actions {
    opacity: 1;
}

/* Reply Avatar */
.watch-reply-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.watch-reply-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Reply Main Content */
.watch-reply-main {
    flex: 1;
    min-width: 0;
}

/* Reply Bubble */
.watch-reply-bubble {
    background: var(--w2-glass-bg, rgba(0, 0, 0, 0.04));
    border: 1px solid var(--w2-glass-border, transparent);
    border-radius: 18px;
    padding: 8px 12px;
    transition: all var(--w2-transition-fast, 0.15s ease);
}

/* Light mode reply bubble */
body:not(.night_mode) .watch-reply-bubble {
    background: #f0f2f5;
    border-color: transparent;
}

body:not(.night_mode) .watch-reply-bubble:hover {
    background: #e4e6e9;
}

/* Dark mode reply bubble hover */
body.night_mode .watch-reply-bubble:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Reply User Header */
.watch-reply-user {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.watch-reply-user a {
    font-weight: 600;
    color: var(--w2-text-primary, #1a1a1a);
    font-size: 12px;
    text-decoration: none;
    transition: color var(--w2-transition-fast, 0.15s ease);
}

body:not(.night_mode) .watch-reply-user a {
    color: #1a1a1a;
}

body.night_mode .watch-reply-user a {
    color: #f0f0f0;
}

.watch-reply-user a:hover {
    color: var(--w2-accent-primary, #8B5CF6);
}

/* Reply Time */
.watch-reply-time {
    font-size: 11px;
    color: var(--w2-text-tertiary, #65676b);
}

body:not(.night_mode) .watch-reply-time {
    color: #65676b;
}

/* Reply Text */
.watch-reply-text {
    color: var(--w2-text-secondary, #333);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
}

body:not(.night_mode) .watch-reply-text {
    color: #050505;
}

body.night_mode .watch-reply-text {
    color: #e0e0e0;
}

/* Reply Stats */
.watch-reply-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding-left: 2px;
}

.watch-reply-stats .watch-stat-btn {
    padding: 4px 8px;
    font-size: 11px;
}

.watch-reply-stats .watch-stat-btn i {
    font-size: 14px;
}

/* Reply Actions - Hover buttons */
.watch-reply-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    right: 0;
    top: 10px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.watch-reply-actions .watch-action-btn {
    width: 28px;
    height: 28px;
}

.watch-reply-actions .watch-action-btn i {
    font-size: 14px;
}

/* ============================================
   NESTED REPLIES - Level 2
   ============================================ */

/* Vertical line from Level 1 avatar - height set by JavaScript */
/* COMPATIBLE VERSION WITHOUT :has() - uses .has-nested-replies class */
.watch-reply-item.has-nested-replies::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 38px;
    height: var(--nested-line-height, 0);
    width: 2px;
    background: #ccd0d5;
    z-index: 0;
}

body.night_mode .watch-reply-item.has-nested-replies::after {
    background: rgba(255, 255, 255, 0.15);
}

.watch-nested-replies {
    margin-top: 8px;
    position: relative;
}

.watch-nested-replies:empty {
    display: none;
}

/* Nested Reply Item */
.watch-nested-reply {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

/* L-shaped connector with rounded corner */
.watch-nested-reply::before {
    content: '' !important;
    position: absolute !important;
    left: -24px !important;
    top: 8px !important;
    width: 22px !important;
    height: 14px !important;
    border-left: 2px solid #ccd0d5 !important;
    border-bottom: 2px solid #ccd0d5 !important;
    border-bottom-left-radius: 10px !important;
    background: transparent !important;
    z-index: 1 !important;
    display: block !important;
}

body.night_mode .watch-nested-reply::before {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.watch-nested-reply .watch-reply-avatar {
    width: 24px;
    height: 24px;
}

.watch-nested-reply .watch-reply-avatar img {
    width: 24px;
    height: 24px;
}

.watch-nested-reply .watch-reply-bubble {
    padding: 6px 10px;
}

.watch-nested-reply .watch-reply-user a {
    font-size: 11px;
}

.watch-nested-reply .watch-reply-text {
    font-size: 12px;
}

.watch-nested-reply .watch-reply-stats .watch-stat-btn {
    padding: 3px 6px;
    font-size: 10px;
}

.watch-nested-reply .watch-reply-stats .watch-stat-btn i {
    font-size: 12px;
}

/* @mention styling */
.mention {
    color: var(--w2-accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.mention:hover {
    text-decoration: underline;
}

/* ============================================
   REPLY EDITOR - Full featured editor
   ============================================ */
.watch-reply-editor {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: var(--w2-glass-bg, #f0f2f5);
    border: 1px solid var(--w2-glass-border, transparent);
    border-radius: 12px;
    position: relative;
}

/* Editor with connector - identical to nested reply */
.watch-reply-editor.with-connector {
    margin-top: 0;
    margin-left: 0;
    padding: 8px 0;
}

/* L-connector for reply editor - identical to .watch-nested-reply::before */
.watch-reply-editor.nested-connector::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 22px;
    height: 14px;
    border-left: 2px solid #ccd0d5;
    border-bottom: 2px solid #ccd0d5;
    border-bottom-left-radius: 10px;
}

body.night_mode .watch-reply-editor.nested-connector::before {
    border-color: rgba(255, 255, 255, 0.15);
}

/* L-connector for reply editor when replying to main comment (Level 1 position) */
.watch-reply-editor.reply-connector::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 10px;
    width: 28px;
    height: 16px;
    border-left: 2px solid #ccd0d5;
    border-bottom: 2px solid #ccd0d5;
    border-bottom-left-radius: 12px;
}

body.night_mode .watch-reply-editor.reply-connector::before {
    border-color: rgba(255, 255, 255, 0.15);
}

body:not(.night_mode) .watch-reply-editor {
    background: #f0f2f5;
    border-color: #e4e6e9;
}

body.night_mode .watch-reply-editor {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.watch-reply-editor.hidden {
    display: none;
}

/* Reply Editor Avatar */
.watch-reply-editor-avatar {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.watch-reply-editor-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Reply Editor Main */
.watch-reply-editor-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Reply Input Wrap */
.watch-reply-input-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--w2-glass-border, #ccd0d5);
    border-radius: 18px;
    padding: 8px 12px;
    transition: all var(--w2-transition-fast, 0.15s ease);
}

body:not(.night_mode) .watch-reply-input-wrap {
    background: #ffffff;
    border-color: #ccd0d5;
}

.watch-reply-input-wrap:focus-within {
    border-color: var(--w2-accent-primary, #8B5CF6);
    box-shadow: 0 0 0 3px var(--w2-glow-primary, rgba(139, 92, 246, 0.2));
}

/* Reply Textarea */
.watch-reply-textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-size: 13px;
    line-height: 1.4;
    color: var(--w2-text-primary, #1a1a1a);
    min-height: 20px;
    max-height: 100px;
    overflow-y: auto;
}

body:not(.night_mode) .watch-reply-textarea {
    color: #1a1a1a;
}

body.night_mode .watch-reply-textarea {
    color: #f0f0f0;
}

.watch-reply-textarea:focus {
    outline: none;
}

.watch-reply-textarea::placeholder {
    color: var(--w2-text-tertiary, #65676b);
}

body:not(.night_mode) .watch-reply-textarea::placeholder {
    color: #65676b;
}

/* Reply Media Preview */
.watch-reply-media-preview {
    position: relative;
    margin-top: 8px;
    max-width: 150px;
}

.watch-reply-media-preview.hidden {
    display: none;
}

.watch-reply-media-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 100px;
    object-fit: cover;
}

.watch-remove-media-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--w2-transition-fast);
}

.watch-remove-media-btn:hover {
    background: #ef4444;
}

.watch-remove-media-btn i {
    font-size: 12px;
}

/* Reply Toolbar */
.watch-reply-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

/* Reply Tools */
.watch-reply-tools {
    display: flex;
    gap: 4px;
}

.watch-tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--w2-text-secondary, #65676b);
    cursor: pointer;
    transition: all var(--w2-transition-fast, 0.15s ease);
}

body:not(.night_mode) .watch-tool-btn {
    color: #65676b;
}

body.night_mode .watch-tool-btn {
    color: #a0a0a0;
}

.watch-tool-btn:hover {
    background: var(--w2-glass-bg-hover, rgba(0, 0, 0, 0.05));
    color: var(--w2-accent-primary, #8B5CF6);
}

body:not(.night_mode) .watch-tool-btn:hover {
    background: #e4e6e9;
}

.watch-tool-btn i {
    font-size: 14px;
}

.watch-tool-btn .gif-label {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

/* Reply Actions (Cancel/Submit) */
.watch-reply-editor .watch-reply-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: static;
    opacity: 1;
}

.watch-cancel-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--w2-text-secondary, #65676b);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-fast, 0.15s ease);
}

body:not(.night_mode) .watch-cancel-btn {
    color: #65676b;
}

.watch-cancel-btn:hover {
    background: var(--w2-glass-bg-hover, #e4e6e9);
    color: var(--w2-text-primary, #1a1a1a);
}

body:not(.night_mode) .watch-cancel-btn:hover {
    background: #e4e6e9;
    color: #1a1a1a;
}

.watch-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--w2-accent-primary), var(--w2-accent-secondary));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.watch-submit-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--w2-glow-primary);
}

.watch-submit-btn i {
    font-size: 14px;
}

/* ============================================
   COMMENT EDITOR (ADVANCED) - Main comment input
   ============================================ */

.comment-editor {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--w2-glass-border);
    margin-bottom: 16px;
}

.comment-editor .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-editor-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

.comment-input-container {
    background: var(--w2-glass-bg);
    border: 1px solid var(--w2-glass-border);
    border-radius: 18px;
    padding: 10px 14px;
    transition: all var(--w2-transition-fast);
}

body:not(.night_mode) .comment-input-container {
    background: #ffffff;
    border-color: #ccd0d5;
}

.comment-input-container:focus-within {
    border-color: var(--w2-accent-primary);
    box-shadow: 0 0 0 3px var(--w2-glow-primary);
}

.comment-textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-size: 14px;
    line-height: 1.4;
    color: var(--w2-text-primary);
    max-height: 200px;
    overflow-y: auto;
    min-height: 24px;
}

.comment-textarea:focus {
    outline: none;
}

.comment-textarea::placeholder {
    color: var(--w2-text-tertiary);
}

/* Media preview in editor */
.comment-media-preview {
    position: relative;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 200px;
}

.comment-media-preview.hidden {
    display: none;
}

.comment-media-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 150px;
    object-fit: cover;
}

.comment-remove-media {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--w2-transition-fast);
}

.comment-remove-media:hover {
    background: var(--w2-accent-red);
}

.comment-remove-media i {
    font-size: 16px;
}

/* Editor toolbar */
.comment-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 4px;
}

.comment-editor-actions {
    display: flex;
    gap: 4px;
}

.comment-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--w2-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--w2-transition-fast);
}

.comment-action-btn:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-accent-primary);
}

.comment-action-btn i {
    font-size: 18px;
}

/* =============================================
   Comment Toolbar Buttons
   ============================================= */

/* Base tool button */
.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tool-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.tool-btn i {
    font-size: 18px;
}

/* Small variant for replies */
.tool-btn-sm {
    width: 28px;
    height: 28px;
}

.tool-btn-sm i {
    font-size: 14px;
}

/* Emoji button - yellow */
.emoji-btn {
    color: #f7b928;
}

/* GIF button - blue */
.gif-btn {
    color: #0099ff;
}

.gif-text {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
    line-height: 1;
}

.tool-btn-sm .gif-text {
    font-size: 9px;
    padding: 1px 3px;
}

/* Image button - green */
.image-btn {
    color: #45bd62;
}

/* Send button - purple */
.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    border: none;
    cursor: pointer;
}

.send-btn i {
    font-size: 16px;
}

.send-btn-sm {
    width: 32px;
    height: 32px;
}

.send-btn-sm i {
    font-size: 14px;
}

/* Cancel button */
.cancel-btn {
    padding: 6px 14px;
    border-radius: 16px;
    background: transparent;
    border: none;
    color: #65676b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.night_mode .cancel-btn {
    color: #b0b3b8;
}

/* Legacy styles - keep for backwards compatibility */
.gif-icon {
    font-weight: 700;
    font-size: 10px;
    padding: 2px 4px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.comment-submit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--w2-accent-primary), var(--w2-accent-secondary));
    color: white;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.comment-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--w2-glow-primary);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comment-submit-btn i {
    font-size: 16px;
}

/* ============================================
   EMOJI & GIF PANELS (GLASS MORPHISM)
   ============================================ */

.comment-emoji-panel,
.comment-gif-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--w2-bg-elevated);
    backdrop-filter: blur(var(--w2-glass-blur));
    border: 1px solid var(--w2-glass-border);
    border-radius: var(--w2-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    margin-bottom: 8px;
    overflow: hidden;
}

.comment-emoji-panel.hidden,
.comment-gif-panel.hidden {
    display: none;
}

/* Emoji Panel - Desktop */
.comment-emoji-panel {
    width: 380px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
}

.emoji-categories {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--w2-glass-border);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.emoji-cat-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--w2-transition-fast);
    min-width: 40px;
}

.emoji-cat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.emoji-cat-btn.active {
    background: var(--w2-accent-primary);
    transform: scale(1.05);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.emoji-grid span {
    font-size: 20px;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    transition: all var(--w2-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-grid span:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

/* Custom scrollbar for emoji grid */
.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: transparent;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* GIF Panel - Desktop */
.comment-gif-panel {
    width: 480px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

.gif-search-container {
    padding: 14px;
    border-bottom: 1px solid var(--w2-glass-border);
    background: rgba(0, 0, 0, 0.1);
}

.gif-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--w2-glass-border);
    border-radius: 20px;
    font-size: 14px;
    background: var(--w2-glass-bg);
    color: var(--w2-text-primary);
    outline: none;
    transition: all var(--w2-transition-fast);
}

.gif-search-input:focus {
    border-color: var(--w2-accent-primary);
}

.gif-search-input::placeholder {
    color: var(--w2-text-tertiary);
}

.gif-results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px;
    max-height: 350px;
    overflow-y: auto;
}

/* Custom scrollbar for GIF results */
.gif-results-container::-webkit-scrollbar {
    width: 6px;
}

.gif-results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.gif-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.gif-results-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gif-results-container img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
    border: 1px solid transparent;
    display: block;
}

.gif-results-container img:hover {
    border-color: var(--w2-glass-border);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.giphy-attribution {
    padding: 10px 14px;
    border-top: 1px solid var(--w2-glass-border);
    text-align: center;
    font-size: 10px;
    color: var(--w2-text-tertiary);
    background: rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

/* Media display in comments */
.comment-media {
    margin-top: 8px;
    max-width: 300px;
}

.comment-media-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity var(--w2-transition-fast);
}

.comment-media-img:hover {
    opacity: 0.9;
}

/* User comments container - overflow visible for lines */
.user-comments,
#video-user-comments {
    overflow: visible;
}

/* Comments Header Styling */
.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--w2-glass-border);
    color: var(--w2-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.comments-header svg {
    vertical-align: middle;
}

.sort-comments-dropdown {
    font-weight: normal;
    font-size: 13px;
}

.sort-comments-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--w2-text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all var(--w2-transition-fast);
}

.sort-comments-dropdown .dropdown-toggle:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-accent-primary);
}

/* Show More Comments Button */
.watch-video-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-top: 16px;
    background: var(--w2-glass-bg);
    border: 1px solid var(--w2-glass-border);
    border-radius: var(--w2-radius-md);
    color: var(--w2-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.watch-video-show-more:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-accent-primary);
    border-color: var(--w2-accent-primary);
}

/* Comments Lazy Loading */
.comments-lazy-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--w2-text-secondary);
    font-size: 13px;
}

.comments-lazy-loader i {
    font-size: 16px;
}

.comments-sentinel {
    height: 1px;
    width: 100%;
}

/* Pinned Comment Styling */
.pinned-comment {
    background: var(--w2-glass-bg-hover, rgba(0, 0, 0, 0.03));
    border-radius: var(--w2-radius-md, 12px);
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--w2-glass-border, rgba(0, 0, 0, 0.08));
}

body:not(.night_mode) .pinned-comment {
    background: #f0f2f5;
    border-color: #e4e6e9;
}

body.night_mode .pinned-comment {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--w2-accent-primary, #8B5CF6);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pinned-badge i {
    font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comment-editor {
        gap: 8px;
    }

    .comment-editor .avatar {
        width: 32px;
        height: 32px;
    }

    .comment-emoji-panel {
        width: 280px;
        left: -40px;
    }

    .comment-gif-panel {
        width: calc(100vw - 40px);
        max-width: 320px;
        left: -40px;
    }

    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .comment-submit-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .watch-nested-replies {
        margin-left: 0;
    }

    .watch-reply-editor {
        margin-left: 28px;
        gap: 8px;
    }

    .watch-reply-editor-avatar {
        width: 24px;
        height: 24px;
    }

    .watch-reply-cancel-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .watch-reply-submit-btn {
        width: 28px;
        height: 28px;
    }

    .watch-reply-submit-btn i {
        font-size: 14px;
    }
}

/* ============================================
   FULL REPLY EDITOR (matches main comment editor)
   ============================================ */

.watch-reply-editor {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-left: 42px;
    padding: 10px 0;
}

.watch-reply-editor.hidden {
    display: none;
}

.watch-reply-editor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.watch-reply-editor-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

.watch-reply-input-container {
    background: var(--w2-glass-bg);
    backdrop-filter: blur(var(--w2-glass-blur));
    border: 1px solid var(--w2-glass-border);
    border-radius: 18px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.watch-reply-input-container:focus-within {
    border-color: var(--w2-accent-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.watch-reply-textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-size: 13px;
    line-height: 1.4;
    max-height: 150px;
    overflow-y: auto;
    min-height: 20px;
    color: var(--w2-text-primary);
}

.watch-reply-textarea:focus {
    outline: none;
}

.watch-reply-textarea::placeholder {
    color: var(--w2-text-muted);
}

/* Reply media preview */
.watch-reply-media-preview {
    position: relative;
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 180px;
}

.watch-reply-media-preview.hidden {
    display: none;
}

.watch-reply-media-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 120px;
    object-fit: cover;
}

.watch-reply-remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-reply-remove-media i {
    font-size: 14px;
}

/* Reply toolbar */
.watch-reply-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 4px;
}

.watch-reply-actions-left {
    display: flex;
    gap: 4px;
}

.watch-reply-actions-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.watch-reply-tool-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--w2-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.watch-reply-tool-btn:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-accent-primary);
}

.watch-reply-tool-btn i {
    font-size: 16px;
}

.watch-reply-tool-btn .gif-icon {
    font-weight: 700;
    font-size: 9px;
    padding: 2px 3px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.watch-reply-cancel-btn {
    padding: 6px 12px;
    border-radius: 16px;
    background: transparent;
    border: 1px solid var(--w2-glass-border);
    color: var(--w2-text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.watch-reply-cancel-btn:hover {
    background: var(--w2-glass-bg-hover);
    color: var(--w2-text-primary);
}

.watch-reply-submit-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--w2-accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.watch-reply-submit-btn:hover {
    background: var(--w2-accent-hover);
    transform: scale(1.05);
}

.watch-reply-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.watch-reply-submit-btn i {
    font-size: 16px;
}

/* Nested reply editor - smaller avatar */

.watch-nested-replies .watch-reply-editor-avatar {
    width: 24px;
    height: 24px;
}

/* Mobile responsive for reply editor - MERGED INTO MAIN MOBILE SECTION ABOVE */

/* ============================================
   FLOATING PIP TRIGGER
   ============================================ */
.watch-pip-trigger {
    position: fixed;
    top: 100px;
    right: 24px;
    width: 280px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--w2-radius-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--w2-transition-smooth);
}

.watch-pip-trigger.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.watch-pip-trigger:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(139, 92, 246, 0.2);
}

.watch-pip-trigger:active {
    transform: translateY(0) scale(0.98);
}

.watch-pip-trigger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.watch-pip-trigger-icon {
    font-size: 48px;
    opacity: 0.6;
    transition: all var(--w2-transition-normal);
}

.watch-pip-trigger:hover .watch-pip-trigger-icon {
    opacity: 1;
    color: var(--w2-accent-purple);
    transform: scale(1.1);
}

.watch-pip-trigger-text {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.watch-pip-trigger:hover .watch-pip-trigger-text {
    opacity: 1;
    color: #fff;
}

/* Pulse animation on trigger */
.watch-pip-trigger::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--w2-accent-purple), var(--w2-accent-blue));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--w2-transition-normal);
}

.watch-pip-trigger:hover::before {
    opacity: 0.3;
    animation: pipPulse 2s ease-in-out infinite;
}

@keyframes pipPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.02); opacity: 0.5; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .watch-pip-trigger {
        width: 160px;
        top: 80px;
        right: 16px;
    }

    .watch-pip-trigger-icon {
        font-size: 32px;
    }

    .watch-pip-trigger-text {
        font-size: 11px;
    }
}

/* ============================================
   THEATER MODE
   ============================================ */
.watch-root.theater-mode {
    background: #000;
}

.watch-root.theater-mode .watch-main {
    max-width: 100%;
    padding: 0;
}

.watch-root.theater-mode .watch-video-column {
    width: 100%;
}

.watch-root.theater-mode .watch-player-wrapper {
    border-radius: 0;
    max-height: calc(100vh - 56px);
}

.watch-root.theater-mode .watch-player-container {
    border-radius: 0;
    max-height: calc(100vh - 56px);
}

.watch-root.theater-mode .watch-player-glow {
    display: none;
}

.watch-root.theater-mode .watch-sidebar {
    position: fixed;
    right: -400px;
    top: 56px;
    height: calc(100vh - 56px);
    width: var(--w2-sidebar-width);
    z-index: 100;
    transition: right var(--w2-transition-smooth);
    padding: var(--w2-gap);
}

.watch-root.theater-mode .watch-sidebar.visible {
    right: 0;
}

.watch-root.theater-mode .watch-info-section,
.watch-root.theater-mode .watch-comments-glass {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    :root {
        --w2-sidebar-width: 340px;
    }
}

@media (max-width: 1340px) {
    .watch-action-btn span {
        display: none;
    }

    .watch-action-btn {
        padding: 8px 12px;
    }
}

@media (max-width: 1200px) {
    :root {
        --w2-sidebar-width: 300px;
    }

    .watch-related-thumb {
        width: 140px;
        height: 79px;
    }
}

@media (max-width: 992px) {
    .watch-main {
        flex-direction: column;
    }

    .watch-sidebar {
        width: 100%;
        order: 2;
    }

    .watch-sidebar-glass {
        position: relative;
        max-height: none;
    }

    .watch-related-item {
        padding: 8px;
    }

    .watch-related-thumb {
        width: 168px;
        height: 94px;
    }
}

/* ============================================
   MOBILE COMMENTS WIDGET & OVERLAY
   ============================================ */

/* Hide mobile elements on desktop */
.watch-comments-widget,
.watch-comments-mobile-overlay {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --w2-gap: 0;
        --w2-radius-lg: 0;
    }

    /* Main container - no padding for full-width */
    .watch-main {
        padding: 0;
        gap: 0;
    }

    /* Video column - no gap, content has own padding, force full width */
    .watch-video-column {
        gap: 0;
        width: 100%;
    }

    /* Player - full width edge-to-edge */
    .watch-player-wrapper {
        margin: 0;
        border-radius: 0;
    }

    .watch-player-container {
        border-radius: 0;
    }

    /* Hide desktop reactions bar on mobile */
    .watch-reactions-bar {
        display: none;
    }

    /* Title row - no special layout needed */
    .watch-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-bottom: none;
    }

    /* Title styling */
    .watch-title {
        font-size: 15px;
        line-height: 1.3;
        padding: 12px;
        margin: 0;
        order: 1;
    }

    /* Info section */
    .watch-info-section {
        padding: 0 12px 12px;
    }

    /* Header row - stack on mobile */
    .watch-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Actions row - scrollable */
    .watch-actions-row {
        width: 100%;
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .watch-subscribe-wrapper {
        margin-left: 0;
    }

    /* Hide desktop comments - will show widget instead */
    .watch-comments-glass {
        display: none;
    }

    /* Sidebar - full width, no padding (items have own padding) */
    .watch-sidebar {
        width: 100%;
        padding: 0;
    }

    .watch-sidebar-glass {
        border-radius: 0;
        margin: 0;
    }

    /* Disable ambient light on mobile for performance */
    .watch-ambient-layer {
        display: none;
    }

    /* Hide player overlay actions on mobile (theater mode etc) */
    .watch-overlay-actions {
        display: none;
    }

    /* ==========================================
       Mobile Comments Widget
       ========================================== */
    .watch-comments-widget {
        display: block;
        background: var(--w2-bg-elevated);
        margin: 12px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid var(--w2-glass-border);
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .watch-comments-widget:active {
        background: rgba(255, 255, 255, 0.08);
    }

    .comments-widget-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .comments-widget-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--w2-text-primary);
    }

    .comments-widget-count {
        font-size: 14px;
        color: var(--w2-text-secondary);
        flex: 1;
    }

    .comments-widget-arrow {
        color: var(--w2-text-tertiary);
        font-size: 12px;
    }

    .comments-widget-preview {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .comments-widget-avatar {
        flex-shrink: 0;
    }

    .comments-widget-avatar img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    .comments-widget-text {
        flex: 1;
        font-size: 13px;
        color: var(--w2-text-secondary);
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .comments-widget-name {
        font-weight: 500;
        color: var(--w2-text-primary);
        margin-right: 6px;
    }

    .comments-widget-placeholder {
        font-size: 13px;
        color: var(--w2-text-tertiary);
    }

    /* ==========================================
       Mobile Comments Fullscreen Overlay
       ========================================== */
    .watch-comments-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--w2-bg-page);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .watch-comments-mobile-overlay.visible {
        transform: translateX(0);
    }

    .watch-comments-mobile-overlay.hidden {
        display: flex;
        transform: translateX(100%);
    }

    .mobile-comments-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--w2-glass-border);
        background: var(--w2-bg-page);
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .mobile-comments-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        color: var(--w2-text-primary);
        font-size: 18px;
        cursor: pointer;
        border-radius: 50%;
        transition: background 0.2s ease;
    }

    .mobile-comments-close:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-comments-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--w2-text-primary);
    }

    .mobile-comments-count {
        font-size: 14px;
        color: var(--w2-text-secondary);
    }

    .mobile-comments-content {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        padding-bottom: 100px; /* Space for fixed input */
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust comment styles inside overlay */
    .mobile-comments-content .watch-comment-item {
        margin-bottom: 16px;
        position: relative;
    }

    /* ==========================================
       Mobile Thread Lines - Level 0 to Level 1
       ========================================== */
    /* Vertical line from Level 0 to Level 1 replies */
    .mobile-comments-content .watch-comment-item.has-replies::after {
        content: '';
        position: absolute;
        left: 18px;
        top: 48px;
        height: var(--thread-line-height, 0);
        width: 2px;
        background: #ccd0d5;
        z-index: 0;
    }

    body.night_mode .mobile-comments-content .watch-comment-item.has-replies::after {
        background: rgba(255, 255, 255, 0.15);
    }

    /* L-shaped connector for Level 1 replies */
    .mobile-comments-content .watch-reply-item::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 10px;
        width: 28px;
        height: 16px;
        border-left: 2px solid #ccd0d5;
        border-bottom: 2px solid #ccd0d5;
        border-bottom-left-radius: 12px;
        background: transparent;
    }

    body.night_mode .mobile-comments-content .watch-reply-item::before {
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* Vertical line from Level 1 to Level 2 replies */
    .mobile-comments-content .watch-reply-item.has-nested-replies::after {
        content: '';
        position: absolute;
        left: 14px;
        top: 38px;
        height: var(--nested-line-height, 0);
        width: 2px;
        background: #ccd0d5;
        z-index: 0;
    }

    body.night_mode .mobile-comments-content .watch-reply-item.has-nested-replies::after {
        background: rgba(255, 255, 255, 0.15);
    }

    /* L-shaped connector for Level 2 nested replies */
    .mobile-comments-content .watch-nested-reply::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 8px;
        width: 22px;
        height: 14px;
        border-left: 2px solid #ccd0d5;
        border-bottom: 2px solid #ccd0d5;
        border-bottom-left-radius: 10px;
        background: transparent;
    }

    body.night_mode .mobile-comments-content .watch-nested-reply::before {
        border-color: rgba(255, 255, 255, 0.15);
    }

    /* Ensure proper positioning for mobile reply items */
    .mobile-comments-content .watch-reply-item,
    .mobile-comments-content .watch-nested-reply {
        position: relative;
    }

    /* Hide the header in mobile overlay (count already shown in overlay header) */
    .mobile-comments-content .comments-header {
        display: none;
    }

    /* Main comment editor - fixed at bottom */
    .mobile-comments-content .comment-editor {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--w2-bg-page);
        padding: 10px 12px;
        border-top: 1px solid var(--w2-glass-border);
        z-index: 10;
        margin: 0;
    }

    .mobile-comments-content .comment-editor .avatar {
        width: 32px;
        height: 32px;
    }

    .mobile-comments-content .comment-input-container {
        background: var(--w2-bg-elevated);
    }

    /* GIF and Emoji panels - fullscreen on mobile */
    .mobile-comments-content .comment-emoji-panel,
    .mobile-comments-content .comment-gif-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        animation: slideUpPanel 0.3s ease;
    }

    @keyframes slideUpPanel {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .mobile-comments-content .comment-emoji-panel {
        max-height: 55vh;
    }

    .mobile-comments-content .emoji-categories {
        padding: 12px 16px;
        gap: 8px;
    }

    .mobile-comments-content .emoji-cat-btn {
        font-size: 22px;
        padding: 10px;
    }

    .mobile-comments-content .emoji-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 4px;
        padding: 12px;
    }

    .mobile-comments-content .emoji-grid span {
        font-size: 22px;
        padding: 6px;
    }

    .mobile-comments-content .comment-gif-panel {
        max-height: 60vh;
    }

    .mobile-comments-content .gif-search-container {
        padding: 16px;
    }

    .mobile-comments-content .gif-search-input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .mobile-comments-content .gif-results-container {
        padding: 12px;
    }

    .mobile-comments-content .gif-results-container img {
        border-radius: 8px;
    }

    /* Mobile Reaction Button - only visible on mobile */
    .watch-mobile-reaction-btn {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 10px 14px;
        background: var(--w2-glass-bg);
        border: 1px solid var(--w2-glass-border);
        border-radius: 20px;
        color: var(--w2-text-primary);
        font-size: 14px;
        cursor: pointer;
        transition: all var(--w2-transition-fast);
    }

    .watch-mobile-reaction-btn:hover {
        background: var(--w2-glass-bg-hover);
        transform: scale(1.02);
    }

    .watch-mobile-reaction-btn i {
        font-size: 16px;
    }

    /* 🚀 HOLOGRAPHIC FOUNTAIN REACTIONS - NEXT LEVEL FUTURISTIC 🚀 */

    /* Transparent overlay - no blur, just click handler */
    .watch-mobile-reactions-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 9999;
        animation: fadeIn 0.3s ease;
    }

    .watch-mobile-reactions-overlay.hidden {
        display: none;
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    /* Container for fountain reactions */
    .watch-mobile-reactions-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        pointer-events: none;
        overflow: hidden;
    }

    /* Holographic reaction orb */
    .mobile-reaction-item {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 80px;
        height: 80px;

        /* Holographic glass orb */
        background: radial-gradient(
            ellipse at 30% 30%,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(100, 150, 255, 0.05) 100%
        );
        backdrop-filter: blur(30px) saturate(200%) brightness(1.2);
        -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.2);

        /* Animated holographic border */
        border: 2px solid transparent;
        background-clip: padding-box;
        border-radius: 50%;
        position: relative;

        cursor: pointer;
        pointer-events: all;
        opacity: 0;
        transform: scale(0) translateY(100vh);

        /* Multi-layer glow system */
        box-shadow:
            /* Outer glow */
            0 0 60px rgba(100, 150, 255, 0.4),
            /* Mid glow */
            0 0 30px rgba(200, 100, 255, 0.3),
            /* Inner glow */
            inset 0 0 20px rgba(255, 255, 255, 0.2),
            /* Bottom highlight */
            inset 0 -2px 10px rgba(100, 200, 255, 0.3),
            /* Top shine */
            inset 0 2px 10px rgba(255, 255, 255, 0.4);
    }

    /* Animated holographic border gradient */
    .mobile-reaction-item::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: conic-gradient(
            from 180deg at 50% 50%,
            rgba(100, 200, 255, 0.8) 0deg,
            rgba(200, 100, 255, 0.8) 60deg,
            rgba(255, 100, 200, 0.8) 120deg,
            rgba(255, 200, 100, 0.8) 180deg,
            rgba(100, 255, 200, 0.8) 240deg,
            rgba(100, 150, 255, 0.8) 300deg,
            rgba(100, 200, 255, 0.8) 360deg
        );
        border-radius: 50%;
        opacity: 0.6;
        filter: blur(2px);
        animation: rotateGradient 3s linear infinite;
        z-index: -1;
    }

    @keyframes rotateGradient {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Energy trail effect */
    .mobile-reaction-item::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 200%;
        bottom: -100%;
        background: linear-gradient(
            to top,
            rgba(100, 150, 255, 0.6) 0%,
            rgba(100, 150, 255, 0.3) 30%,
            transparent 70%
        );
        filter: blur(20px);
        opacity: 0;
        animation: energyTrail 1s ease-out;
        pointer-events: none;
        z-index: -2;
    }

    @keyframes energyTrail {
        0% {
            opacity: 1;
            transform: scaleY(1);
        }
        100% {
            opacity: 0;
            transform: scaleY(0.3);
        }
    }

    /* Fountain shooting animation - delay set dynamically in JS */
    .mobile-reaction-item {
        /* Animation applied dynamically in JavaScript */
    }

    /* Hide empty reaction counts and remove any pseudo content */
    .reaction-count:empty {
        display: none !important;
    }

    .reaction-count:empty::before,
    .reaction-count:empty::after {
        content: none !important;
        display: none !important;
    }

    /* Style for visible reaction counts */
    .reaction-count:not(:empty) {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 600;
        margin-top: 2px;
    }

    /* Remove any default content */
    .reaction-count::before {
        content: none !important;
    }

    @keyframes fountainShoot {
        0% {
            opacity: 0;
            transform: translateY(200vh) scale(0.3) rotate(180deg);
        }
        30% {
            opacity: 1;
            transform: translateY(0) scale(0.8) rotate(90deg);
        }
        50% {
            transform: translateY(-30px) scale(1.2) rotate(45deg);
        }
        70% {
            transform: translateY(0) scale(0.9) rotate(10deg);
        }
        85% {
            transform: translateY(-10px) scale(1.05) rotate(-5deg);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1) rotate(0deg);
        }
    }

    /* Levitation animation after landing - applied dynamically via JS */

    @keyframes holographicLevitate {
        0%, 100% {
            transform: translateY(0) scale(1) rotate(0deg);
            filter: brightness(1);
        }
        25% {
            transform: translateY(-10px) scale(1.02) rotate(2deg);
            filter: brightness(1.1);
        }
        50% {
            transform: translateY(-5px) scale(1.01) rotate(-1deg);
            filter: brightness(1.05);
        }
        75% {
            transform: translateY(-8px) scale(1.02) rotate(1deg);
            filter: brightness(1.1);
        }
    }

    /* Animation for non-selected reactions - fade out */
    @keyframes reactionFadeOut {
        0% {
            opacity: 1;
            transform: scale(1);
            filter: brightness(1);
        }
        100% {
            opacity: 0;
            transform: scale(0.7);
            filter: brightness(0.3);
        }
    }

    /* Selected reaction flies to bottom corner */
    @keyframes reactionFlyToCorner {
        0% {
            transform: scale(1) rotate(0deg);
            opacity: 1;
        }
        30% {
            transform: scale(0.8) rotate(180deg);
        }
        60% {
            transform: scale(0.5) rotate(360deg);
            opacity: 0.8;
        }
        100% {
            /* Shrinks as it flies to video corner */
            transform: scale(0.2) rotate(720deg);
            opacity: 0;
        }
    }

    /* Class for non-selected reactions */
    .mobile-reaction-item.reaction-fading {
        animation: reactionFadeOut 0.4s ease-out forwards !important;
        pointer-events: none !important;
    }

    /* Class for selected reaction animation */
    .mobile-reaction-item.reaction-selecting {
        animation: reactionFlyToCorner 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
        z-index: 99999 !important;
        pointer-events: none !important;
        position: fixed !important;
        transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        /* Fade out background and shadows */
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Fade out the rotating border on selected reaction */
    .mobile-reaction-item.reaction-selecting::before {
        animation: fadeOutBorder 0.4s ease-out forwards !important;
    }

    @keyframes fadeOutBorder {
        0% {
            opacity: 0.6;
        }
        100% {
            opacity: 0;
        }
    }

    /* Energy wave effect container */
    .reaction-energy-wave {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: radial-gradient(circle,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(123, 97, 255, 0.6) 25%,
            rgba(255, 0, 255, 0.4) 50%,
            rgba(0, 255, 255, 0.2) 75%,
            transparent 100%);
        animation: energyWaveExpand 0.8s ease-out forwards;
        pointer-events: none;
        z-index: -1;
    }

    @keyframes energyWaveExpand {
        0% {
            width: 100%;
            height: 100%;
            opacity: 0;
        }
        10% {
            width: 150%;
            height: 150%;
            opacity: 1;
        }
        100% {
            width: 1000%;
            height: 1000%;
            opacity: 0;
        }
    }

    /* Magnetic hover effect */
    .mobile-reaction-item:hover {
        animation-play-state: paused;
        transform: scale(1.15) translateY(-5px);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-reaction-item:hover::before {
        opacity: 1;
        filter: blur(1px);
        animation-duration: 1s;
    }

    /* Active state - quantum activation */
    .mobile-reaction-item.active {
        background: radial-gradient(
            ellipse at 30% 30%,
            rgba(100, 200, 255, 0.4) 0%,
            rgba(100, 150, 255, 0.2) 40%,
            rgba(100, 150, 255, 0.1) 100%
        );

        box-shadow:
            0 0 80px rgba(100, 200, 255, 0.6),
            0 0 40px rgba(100, 150, 255, 0.5),
            inset 0 0 30px rgba(100, 200, 255, 0.3),
            inset 0 -2px 15px rgba(100, 200, 255, 0.4),
            inset 0 2px 15px rgba(255, 255, 255, 0.5);

        animation:
            fountainShoot 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
            quantumPulse 1.5s ease-in-out infinite;
    }

    @keyframes quantumPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow:
                0 0 80px rgba(100, 200, 255, 0.6),
                0 0 40px rgba(100, 150, 255, 0.5);
        }
        50% {
            transform: scale(1.05);
            box-shadow:
                0 0 100px rgba(100, 200, 255, 0.8),
                0 0 60px rgba(100, 150, 255, 0.7);
        }
    }

    /* Holographic emoji */
    .mobile-reaction-item .reaction-emoji {
        font-size: 48px;
        filter:
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
            drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        animation: emojiGlow 2s ease-in-out infinite;
    }

    @keyframes emojiGlow {
        0%, 100% {
            filter:
                drop-shadow(0 0 10px rgba(255, 255, 255, 0.5))
                drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
        }
        50% {
            filter:
                drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
                drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
        }
    }

    .mobile-reaction-item:active .reaction-emoji {
        transform: scale(1.6) rotate(360deg);
        filter:
            drop-shadow(0 0 30px rgba(255, 255, 255, 1))
            drop-shadow(0 10px 30px rgba(100, 150, 255, 0.8));
    }

    /* Quantum count display */
    .mobile-reaction-item .reaction-count {
        position: absolute;
        bottom: -5px;
        font-size: 10px;
        font-weight: 900;
        color: rgba(255, 255, 255, 1);
        text-shadow:
            0 0 10px rgba(100, 200, 255, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.8);
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6),
            rgba(100, 150, 255, 0.3)
        );
        backdrop-filter: blur(10px);
        padding: 2px 8px;
        border-radius: 20px;
        border: 1px solid rgba(100, 200, 255, 0.5);
        min-width: 25px;
        text-align: center;
        opacity: 0.9;
    }

    .mobile-reaction-item.active .reaction-count {
        color: #fff;
        background: linear-gradient(
            135deg,
            rgba(100, 150, 255, 0.6),
            rgba(100, 200, 255, 0.4)
        );
        border-color: rgba(100, 200, 255, 0.8);
        text-shadow:
            0 0 15px rgba(100, 200, 255, 1),
            0 2px 4px rgba(0, 0, 0, 0.8);
        animation: countPulse 1s ease-in-out infinite;
    }

    @keyframes countPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
}

@media (max-width: 480px) {
    .watch-action-btn span {
        display: none;
    }

    .watch-action-btn {
        padding: 10px;
    }

    .watch-related-item {
        flex-direction: column;
    }

    .watch-related-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Music items stay horizontal on mobile */
    .sidebar-music-item {
        flex-direction: row;
    }

    .sidebar-music-cover {
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.watch-hidden {
    display: none !important;
}

.watch-invisible {
    visibility: hidden;
    opacity: 0;
}

.watch-no-scroll {
    overflow: hidden;
}

/* ============================================
   CATEGORIES
   ============================================ */
.watch-categories-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--w2-bg-page);
    border: 1px solid var(--w2-glass-border);
    border-radius: var(--w2-radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.watch-categories-container.dragging {
    cursor: grabbing;
}

.watch-categories-container::-webkit-scrollbar {
    display: none;
}

.watch-category-chip {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 6px 14px;
    background: var(--w2-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--w2-glass-border);
    border-radius: 20px;
    color: var(--w2-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--w2-transition-fast);
    white-space: nowrap;
}

.watch-category-chip:hover,
.watch-category-chip:focus,
.watch-category-chip:active {
    background: var(--w2-glass-bg-hover);
    border-color: var(--w2-accent-primary);
    color: var(--w2-text-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.watch-category-chip:active {
    transform: translateY(0);
}

/* ============================================
   WATCH2 MODALS - Share & Add To
   ============================================ */

/* Watch2 Modals Base */
#w2-share-modal.cs-modal,
#w2-addto-modal.cs-modal {
    z-index: 10000;
    transition: opacity var(--w2-transition-fast);
}

#w2-share-modal.cs-modal.closing,
#w2-addto-modal.cs-modal.closing {
    opacity: 0;
}

#w2-share-modal.cs-modal.closing .cs-modal-content,
#w2-addto-modal.cs-modal.closing .cs-modal-content {
    animation: cs-modal-out 0.2s ease forwards;
}

@keyframes cs-modal-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

/* Dark mode (night_mode) */
body.night_mode #w2-share-modal .cs-modal-content,
body.night_mode #w2-addto-modal .cs-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

body.night_mode #w2-share-modal .cs-modal-header,
body.night_mode #w2-addto-modal .cs-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.night_mode #w2-share-modal .cs-modal-header h3,
body.night_mode #w2-addto-modal .cs-modal-header h3 {
    color: #f0f0f0;
}

body.night_mode #w2-share-modal .cs-modal-close,
body.night_mode #w2-addto-modal .cs-modal-close {
    color: #a0a0a0;
}

body.night_mode #w2-share-modal .cs-modal-close:hover,
body.night_mode #w2-addto-modal .cs-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f0f0;
}

/* Light mode (default) */
body:not(.night_mode) #w2-share-modal .cs-modal-content,
body:not(.night_mode) #w2-addto-modal .cs-modal-content {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

body:not(.night_mode) #w2-share-modal .cs-modal-header,
body:not(.night_mode) #w2-addto-modal .cs-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body:not(.night_mode) #w2-share-modal .cs-modal-header h3,
body:not(.night_mode) #w2-addto-modal .cs-modal-header h3 {
    color: #1a1a1a;
}

body:not(.night_mode) #w2-share-modal .cs-modal-close,
body:not(.night_mode) #w2-addto-modal .cs-modal-close {
    color: #666;
}

body:not(.night_mode) #w2-share-modal .cs-modal-close:hover,
body:not(.night_mode) #w2-addto-modal .cs-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

/* Accent color (same for both modes) */
#w2-share-modal .cs-modal-header h3 i,
#w2-addto-modal .cs-modal-header h3 i {
    color: var(--w2-accent-primary);
}

/* Modal Size Variants */
.w2-modal-sm {
    max-width: 420px;
    width: 90%;
}

/* Share Link Box */
.w2-share-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.w2-share-link-box input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 13px;
    font-family: monospace;
}

.w2-share-link-box input:focus {
    outline: none;
    border-color: var(--w2-accent-primary);
}

.w2-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--w2-accent-primary) 0%, var(--w2-accent-primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
    white-space: nowrap;
}

.w2-copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.w2-copy-btn.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.w2-copy-btn i {
    font-size: 18px;
}

/* Social Share Buttons */
.w2-share-socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.w2-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.w2-social-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.w2-social-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.w2-social-btn.w2-social-facebook:hover {
    background: #1877f2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.4);
}

.w2-social-btn.w2-social-twitter:hover {
    background: #1da1f2;
    color: #fff;
    box-shadow: 0 4px 16px rgba(29, 161, 242, 0.4);
}

.w2-social-btn.w2-social-whatsapp:hover {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.w2-social-btn.w2-social-threads:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Add To Modal - Loading */
.w2-addto-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 200px;
}

.w2-addto-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    color: #a0a0a0;
    min-height: 200px;
}

.w2-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--w2-accent-primary);
    border-radius: 50%;
    animation: w2-spin 0.8s linear infinite;
}

@keyframes w2-spin {
    to { transform: rotate(360deg); }
}

/* Playlist List */
.w2-playlist-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.w2-playlist-list::-webkit-scrollbar {
    width: 6px;
}

.w2-playlist-list::-webkit-scrollbar-track {
    background: transparent;
}

.w2-playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.w2-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 0 -12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--w2-transition-fast);
}

.w2-playlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.w2-playlist-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all var(--w2-transition-fast);
    position: relative;
    flex-shrink: 0;
}

.w2-playlist-checkbox:checked {
    background: var(--w2-accent-primary);
    border-color: var(--w2-accent-primary);
}

.w2-playlist-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.w2-playlist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #a0a0a0;
    flex-shrink: 0;
}

.w2-playlist-icon i {
    font-size: 20px;
}

.w2-playlist-name {
    flex: 1;
    font-size: 14px;
    color: #f0f0f0;
}

/* Create Playlist Button */
.w2-create-playlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #a0a0a0;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.w2-create-playlist-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--w2-accent-primary);
    color: var(--w2-accent-primary);
}

.w2-create-playlist-btn i {
    font-size: 20px;
}

/* Create Playlist Form */
.w2-create-playlist-form {
    padding: 4px 0;
}

.w2-form-group {
    margin-bottom: 16px;
}

.w2-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #a0a0a0;
}

.w2-form-group input,
.w2-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f0f0f0;
    font-size: 14px;
    resize: none;
    transition: border-color var(--w2-transition-fast);
}

.w2-form-group input:focus,
.w2-form-group textarea:focus {
    outline: none;
    border-color: var(--w2-accent-primary);
}

.w2-form-group input::placeholder,
.w2-form-group textarea::placeholder {
    color: #707070;
}

.w2-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.w2-form-actions .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--w2-transition-fast);
}

.w2-form-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.w2-form-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

.w2-form-actions .btn-main {
    background: linear-gradient(135deg, var(--w2-accent-primary) 0%, var(--w2-accent-primary-dark) 100%);
    border: none;
    color: #fff;
}

.w2-form-actions .btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--w2-glow-primary);
}

.w2-form-actions .btn-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   WATCH2 MODALS - Light Mode Overrides
   ============================================ */

body:not(.night_mode) .w2-share-link-box input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body:not(.night_mode) .w2-share-link-box input:focus {
    border-color: var(--w2-accent-primary);
}

body:not(.night_mode) .w2-social-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body:not(.night_mode) .w2-addto-loading {
    color: #666;
}

body:not(.night_mode) .w2-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--w2-accent-primary);
}

body:not(.night_mode) .w2-playlist-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

body:not(.night_mode) .w2-playlist-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

body:not(.night_mode) .w2-playlist-checkbox {
    border-color: rgba(0, 0, 0, 0.2);
}

body:not(.night_mode) .w2-playlist-icon {
    background: rgba(0, 0, 0, 0.04);
    color: #666;
}

body:not(.night_mode) .w2-playlist-name {
    color: #1a1a1a;
}

body:not(.night_mode) .w2-create-playlist-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.15);
    color: #666;
}

body:not(.night_mode) .w2-create-playlist-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

body:not(.night_mode) .w2-form-group label {
    color: #666;
}

body:not(.night_mode) .w2-form-group input,
body:not(.night_mode) .w2-form-group textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

body:not(.night_mode) .w2-form-group input::placeholder,
body:not(.night_mode) .w2-form-group textarea::placeholder {
    color: #999;
}

body:not(.night_mode) .w2-form-actions .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

body:not(.night_mode) .w2-form-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

/* ============================================
   PLAYLIST SIDEBAR
   ============================================ */

.watch-playlist-glass {
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.watch-playlist-count {
    font-size: 12px;
    color: var(--w2-text-secondary);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 12px;
}

.watch-playlist-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0;
}

.watch-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
    position: relative;
}

.watch-playlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.watch-playlist-number {
    min-width: 24px;
    font-size: 12px;
    color: var(--w2-text-tertiary);
    text-align: center;
}

.watch-playlist-number i {
    color: var(--w2-accent-primary);
}

.watch-playlist-thumb {
    width: 100px;
    min-width: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.watch-playlist-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.watch-playlist-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.watch-playlist-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--w2-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.3;
}

.watch-playlist-title:hover {
    color: var(--w2-accent-primary);
}

.watch-playlist-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--w2-text-tertiary);
}

.watch-playlist-author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-playlist-duration {
    white-space: nowrap;
}

.watch-playlist-remove {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: var(--w2-accent-red);
    transition: all 0.2s ease;
}

.watch-playlist-item:hover .watch-playlist-remove {
    opacity: 1;
}

.watch-playlist-remove:hover {
    background: var(--w2-accent-red);
    color: white;
}

/* Scrollbar for playlist */
.watch-playlist-list::-webkit-scrollbar {
    width: 4px;
}

.watch-playlist-list::-webkit-scrollbar-track {
    background: transparent;
}

.watch-playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.watch-playlist-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   LIVE STREAM COMPONENTS
   ============================================ */

/* Stream Overlay */
.watch-stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.watch-stream-overlay > * {
    pointer-events: auto;
}

.watch-starting-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.watch-stream-status {
    padding: 20px;
    text-align: center;
}

/* Live Badge - Shared styles */
.watch-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 68, 68, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.watch-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
    animation: watch-pulse 1.5s infinite;
}

.watch-live-dot.starting {
    background: #ffa500;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

.watch-live-dot.offline {
    background: #888;
    box-shadow: none;
    animation: none;
}

@keyframes watch-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Starting state */
.watch-stream-overlay.starting .watch-live-badge {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.3);
}

/* Offline state */
.watch-stream-overlay.offline .watch-live-badge {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(128, 128, 128, 0.3);
}

/* Offline Background */
.watch-offline-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(8px) brightness(0.4);
}

.watch-stream-overlay.offline {
    justify-content: center;
    align-items: center;
}

.watch-stream-overlay.offline .watch-stream-status {
    padding: 0;
}

/* Social Panel */
.watch-social-panel {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.watch-social-panel .watch-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.watch-social-btn.facebook {
    background: rgba(59, 89, 152, 0.85);
    color: white;
}

.watch-social-btn.twitter {
    background: rgba(29, 161, 242, 0.85);
    color: white;
}

.watch-social-btn.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.watch-social-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Guest Counter (Mobile) */
.watch-live-mobile-bar {
    display: none;
    padding: 10px 16px;
    background: var(--w2-glass-bg);
    backdrop-filter: blur(var(--w2-glass-blur));
    -webkit-backdrop-filter: blur(var(--w2-glass-blur));
    border-radius: 12px;
    margin: 10px;
}

.watch-guest-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--w2-text-secondary);
}

.watch-guest-count i {
    color: var(--w2-accent-primary);
}

@media (max-width: 768px) {
    .watch-live-mobile-bar {
        display: flex;
        justify-content: center;
    }
}

/* Queue Progress */
.watch-queue-status {
    padding: 20px;
    text-align: center;
}

.watch-queue-processing,
.watch-queue-pending,
.watch-queue-failed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--w2-glass-bg);
    backdrop-filter: blur(var(--w2-glass-blur));
    -webkit-backdrop-filter: blur(var(--w2-glass-blur));
    border-radius: 16px;
    border: 1px solid var(--w2-glass-border);
}

.watch-queue-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--w2-accent-primary);
    border-radius: 50%;
    animation: watch-spin 1s linear infinite;
}

@keyframes watch-spin {
    to { transform: rotate(360deg); }
}

.watch-queue-progress-bar {
    width: 100%;
    max-width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.watch-queue-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--w2-accent-primary), var(--w2-accent-cyan));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.watch-queue-pending {
    color: #ffa500;
}

.watch-queue-pending i {
    font-size: 32px;
}

.watch-queue-failed {
    color: var(--w2-accent-red);
}

.watch-queue-failed i {
    font-size: 32px;
}

/* =====================================================
   QUEUE OVERLAY
   ===================================================== */
.watch-queue-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-queue-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
}

.watch-queue-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-queue-icon {
    margin-bottom: 20px;
    color: var(--w2-accent-primary);
}

.watch-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--w2-accent-primary);
    border-radius: 50%;
    animation: w2-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes w2-spin {
    to { transform: rotate(360deg); }
}

.watch-queue-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.watch-queue-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.watch-queue-position {
    color: var(--w2-accent-primary);
    font-weight: 600;
}

.watch-queue-progress {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 12px;
}

.watch-queue-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--w2-accent-primary), var(--w2-accent-cyan));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.watch-queue-percent {
    font-size: 16px;
    color: var(--w2-accent-primary);
    font-weight: 600;
}

/* =====================================================
   SCHEDULED VIDEO OVERLAY
   ===================================================== */
.watch-scheduled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-scheduled-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
}

.watch-scheduled-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-scheduled-icon {
    margin-bottom: 20px;
    color: var(--w2-accent-cyan);
}

.watch-scheduled-title {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.watch-scheduled-date {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.watch-scheduled-time {
    font-size: 36px;
    font-weight: 700;
    color: var(--w2-accent-primary);
    margin-bottom: 20px;
}

.watch-scheduled-social {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-scheduled-social-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.watch-scheduled-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.watch-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.watch-social-link:hover {
    background: var(--w2-accent-primary);
    transform: translateY(-2px);
}

/* =====================================================
   EMBED MODAL
   ===================================================== */
.watch-modal-content {
    background: var(--w2-glass-bg);
    border: 1px solid var(--w2-glass-border);
    border-radius: 16px;
}

.watch-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.watch-modal-header .modal-title {
    color: #fff;
    font-weight: 600;
}

.watch-modal-header .close {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.watch-modal-body {
    padding: 24px;
}

.watch-embed-code-wrapper {
    margin-bottom: 20px;
}

.watch-embed-code-wrapper label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
}

.watch-embed-code-wrapper input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    width: calc(100% - 100px);
    display: inline-block;
}

.watch-embed-code-wrapper button {
    margin-left: 10px;
    border-radius: 8px;
}

.watch-embed-preview label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 8px;
}

.watch-embed-iframe-wrapper {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.watch-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
}

/* Action button active state */
.watch-action-btn.active {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.3);
    color: #ff6464;
}

/* ==========================================
   Load More Button Styles
   ========================================== */

.watch-load-more-container {
    padding: 15px;
    text-align: center;
}

.watch-load-more-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.watch-load-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--w2-accent-primary, #6366f1);
    color: #fff;
}

.watch-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.watch-load-more-btn.watch-load-more-disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.watch-load-spinner {
    animation: spin 1s linear infinite;
}

.watch-load-spinner.hidden {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   Sidebar Advertisement Styles
   ========================================== */

.watch-sidebar-ad {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.watch-sidebar-ad:empty {
    display: none;
}

.watch-sidebar-ad img,
.watch-sidebar-ad iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* ==========================================
   Image Preview
   ========================================== */

.img-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.img-preview.show {
    opacity: 1;
}

.img-preview img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.img-preview img.is-gif {
    transform: translate(-50%, -50%) scale(2);
    max-width: none;
    max-height: 90vh;
}
