/* Styles extracted from original HTML */
/* General styles with custom class names */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .fmc-body-container {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
            color: #333;
        }

        .fmc-main-wrapper {
            max-width: 1400px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); /* Stronger shadow */
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .fmc-header-section {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
            border-bottom-left-radius: 20px; /* Match main wrapper */
            border-bottom-right-radius: 20px; /* Match main wrapper */
        }

        .fmc-keyboard-shortcuts {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .fmc-keyboard-shortcuts:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .fmc-main-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); /* Stronger text shadow */
        }

        .fmc-subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .fmc-brand-link {
            color: #fbbf24;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .fmc-brand-link:hover {
            color: #f59e0b;
            text-decoration: underline;
        }

        .fmc-content-area {
            padding: 40px;
        }

        .fmc-input-section {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 25px; /* Increased gap */
            margin-bottom: 35px; /* Increased margin */
        }

        .fmc-input-group {
            display: flex;
            flex-direction: column;
        }

        .fmc-input-label {
            font-weight: 600;
            margin-bottom: 8px;
            color: #374151;
            font-size: 0.95rem;
        }

        .fmc-text-input, .fmc-textarea-input, .fmc-select-input {
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: inherit;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Subtle inset shadow */
        }

        .fmc-text-input:focus, .fmc-textarea-input:focus, .fmc-select-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.05); /* Stronger focus shadow */
        }

        .fmc-textarea-input {
            resize: vertical;
            min-height: 80px;
        }

        .fmc-button-group {
            display: flex;
            gap: 20px; /* Increased gap */
            margin-bottom: 40px; /* Increased margin */
            flex-wrap: wrap;
            justify-content: center;
        }

        .fmc-primary-btn, .fmc-secondary-btn, .fmc-tertiary-btn {
            padding: 14px 28px; /* Slightly larger buttons */
            border: none;
            border-radius: 12px;
            font-size: 1.05rem; /* Slightly larger font */
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.8px; /* Increased letter spacing */
            min-width: 160px; /* Increased min-width */
            position: relative;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Default shadow for buttons */
        }

        .fmc-primary-btn {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
            color: white;
        }

        .fmc-secondary-btn {
            background: linear-gradient(135deg, #059669 0%, #047857 100%);
            color: white;
        }

        .fmc-tertiary-btn {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: white;
        }

        .fmc-primary-btn:hover, .fmc-secondary-btn:hover, .fmc-tertiary-btn:hover {
            transform: translateY(-3px); /* More pronounced lift */
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
        }

        .fmc-primary-btn:disabled, .fmc-secondary-btn:disabled, .fmc-tertiary-btn:disabled {
            opacity: 0.5; /* More visible disabled state */
            cursor: not-allowed;
            transform: none;
            box-shadow: none; /* No shadow when disabled */
        }

        .fmc-sound-toggle {
            position: absolute;
            top: 50%;
            left: 10px;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 1.4rem; /* Slightly larger icon */
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: background 0.3s ease, transform 0.2s ease;
        }

        .fmc-sound-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-50%) scale(1.1);
        }

        .fmc-status-display {
            background: #f3f4f6;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 30px; /* Increased margin */
            text-align: center;
            font-weight: 500;
            border-left: 5px solid #4f46e5; /* Thicker border */
            border-top-right-radius: 12px; /* Smooth corner */
            border-bottom-right-radius: 12px; /* Smooth corner */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Subtle shadow */
        }

        .fmc-status-error {
            border-left-color: #dc2626;
            color: #dc2626;
        }
        .fmc-status-info {
            border-left-color: #2563eb;
            color: #2563eb;
        }
        .fmc-status-warning {
            border-left-color: #f59e0b;
            color: #f59e0b;
        }
        .fmc-status-success {
            border-left-color: #059669;
            color: #059669;
        }

        .fmc-analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 25px; /* Increased gap */
            margin-bottom: 30px; /* Increased margin */
        }

        .fmc-analytics-card {
            background: white;
            padding: 25px; /* Increased padding */
            border-radius: 15px; /* More rounded */
            text-align: center;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* Stronger shadow */
            border-top: 5px solid #4f46e5; /* Thicker border */
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .fmc-analytics-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .fmc-analytics-number {
            font-size: 2rem; /* Larger number */
            font-weight: 700;
            color: #4f46e5;
            margin-bottom: 8px; /* Increased margin */
        }

        .fmc-analytics-label {
            color: #6b7280;
            font-weight: 500;
            font-size: 0.9rem; /* Slightly larger label */
        }

        .fmc-virtual-container {
            background: white;
            border: 2px solid #e5e7eb;
            border-radius: 15px; /* More rounded */
            height: 450px; /* Slightly taller */
            overflow: hidden;
            margin-bottom: 30px; /* Increased margin */
            position: relative;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }

        .fmc-virtual-scrollbar {
            position: absolute;
            right: 5px; /* Slightly moved from edge */
            top: 5px; /* Slightly moved from top */
            width: 10px; /* Thicker scrollbar */
            background: #f3f4f6;
            border-radius: 5px;
            height: calc(100% - 10px); /* Adjusted height */
        }

        .fmc-virtual-thumb {
            position: absolute;
            right: 0;
            width: 10px;
            background: #4f46e5;
            border-radius: 5px;
            cursor: grab; /* Grab cursor */
            transition: background 0.3s ease;
        }

        .fmc-virtual-thumb:hover {
            background: #3730a3;
        }
        .fmc-virtual-thumb:active {
            cursor: grabbing; /* Grabbing cursor when active */
        }

        .fmc-virtual-content {
            height: 100%;
            overflow: hidden;
            position: relative;
            padding-right: 15px; /* Space for scrollbar */
        }

        .fmc-comment-item {
            padding: 18px; /* Increased padding */
            border-bottom: 1px solid #f3f4f6;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .fmc-comment-item:last-child {
            border-bottom: none;
        }

        .fmc-comment-item:hover {
            background: #f8fafc;
            transform: translateX(5px); /* Slight slide effect */
        }

        .fmc-comment-content {
            flex: 1;
            margin-right: 15px; /* Space between content and analytics */
        }

        .fmc-comment-author {
            font-weight: 700; /* Bolder */
            color: #4f46e5;
            margin-bottom: 6px; /* Adjusted margin */
            font-size: 1rem; /* Slightly larger */
            text-decoration: none;
        }

        .fmc-comment-author:hover {
            text-decoration: underline;
        }

        .fmc-comment-text {
            color: #4b5563; /* Darker text */
            line-height: 1.6; /* Improved readability */
            font-size: 0.95rem; /* Slightly larger */
            margin-bottom: 8px;
        }

        .fmc-comment-meta {
            font-size: 0.85rem; /* Slightly larger */
            color: #9ca3af;
            display: flex;
            gap: 20px; /* Increased gap */
        }

        .fmc-comment-analytics {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px; /* Increased gap */
            min-width: 90px; /* Wider */
        }

        .fmc-like-count, .fmc-reply-count {
            padding: 5px 10px; /* Larger padding */
            border-radius: 25px; /* More rounded */
            font-size: 0.85rem; /* Slightly larger */
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
        }

        .fmc-like-count {
            background: #fee2e2;
            color: #dc2626;
        }

        .fmc-reply-count {
            background: #dbeafe;
            color: #2563eb;
        }

        /* New styles for winner modal */
        .fmc-winner-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75); /* Darker overlay */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 3000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .fmc-winner-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .fmc-winner-modal-content {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            padding: 40px; /* Increased padding */
            border-radius: 30px; /* More rounded */
            max-width: 70vw; /* Adjusted to 70% of viewport width */
            width: 90%; /* Keep 90% for smaller screens */
            max-height: 85vh; /* Taller */
            text-align: center;
            box-shadow: 0 20px 50px rgba(251, 191, 36, 0.6); /* Stronger shadow */
            transform: scale(0.7); /* Starts smaller */
            opacity: 0;
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s ease-out; /* Bounce effect */
            overflow-y: auto; /* Allow scrolling if content overflows */
        }

        .fmc-winner-modal.show .fmc-winner-modal-content {
            transform: scale(1);
            opacity: 1;
        }

        .fmc-winner-modal-title {
            font-size: 2.8rem; /* Larger title */
            font-weight: 800; /* Extra bold */
            color: #8c4000; /* Darker orange */
            margin-bottom: 25px; /* Increased margin */
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
        }

        .fmc-winners-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger min width */
            gap: 25px; /* Increased gap */
            margin-bottom: 30px;
        }

        .fmc-winner-card {
            background: rgba(255, 255, 255, 0.98); /* Slightly less transparent */
            padding: 30px; /* Increased padding */
            border-radius: 20px; /* More rounded */
            text-align: left;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow */
            border: 3px solid #f59e0b; /* Thicker border */
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .fmc-winner-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

        .fmc-winner-name {
            font-size: 1.6rem; /* Larger name */
            font-weight: 800; /* Extra bold */
            color: #1a202c; /* Darker text */
            margin-bottom: 10px;
        }

        .fmc-winner-comment {
            color: #3b4551; /* Darker text */
            font-style: italic;
            line-height: 1.6;
            font-size: 1.05rem; /* Slightly larger */
            margin-bottom: 15px;
        }

        .fmc-winner-timestamp {
            font-size: 0.95rem; /* Slightly larger */
            color: #6b7280;
            margin-top: 20px; /* Increased margin */
            font-weight: 500;
        }

        .fmc-export-section {
            display: flex;
            gap: 15px; /* Increased gap */
            justify-content: center;
            margin-top: 20px;
            flex-wrap: wrap;
        }

        .fmc-social-share {
            display: flex;
            gap: 15px; /* Increased gap */
            justify-content: center;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .fmc-share-btn {
            padding: 10px 20px; /* Larger padding */
            border: none;
            border-radius: 10px; /* More rounded */
            font-size: 0.95rem; /* Slightly larger */
            cursor: pointer;
            color: white;
            font-weight: 600;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }

        .fmc-share-btn:hover {
            transform: scale(1.08); /* More pronounced scale */
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
        }

        .fmc-share-twitter {
            background: #1da1f2;
        }

        .fmc-share-facebook {
            background: #4267b2;
        }

        .fmc-share-linkedin {
            background: #0077b5;
        }

        .fmc-share-copy {
            background: #6b7280;
        }

        .fmc-loading-spinner {
            border: 4px solid #e5e7eb; /* Thicker border */
            border-top: 4px solid #4f46e5;
            border-radius: 50%;
            width: 40px; /* Larger spinner */
            height: 40px;
            animation: fmc-spin 1s linear infinite;
            display: inline-block;
            margin-right: 15px; /* Increased margin */
        }

        @keyframes fmc-spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .fmc-progress-bar {
            width: 100%;
            height: 10px; /* Thicker bar */
            background: #e5e7eb;
            border-radius: 5px;
            overflow: hidden;
            margin: 15px 0; /* Increased margin */
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .fmc-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #4f46e5, #7c3aed);
            border-radius: 5px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .fmc-cache-status {
            position: fixed;
            top: 25px; /* Slightly lower */
            right: 25px; /* Slightly more inward */
            background: rgba(0, 0, 0, 0.85); /* Darker background */
            color: white;
            padding: 12px 18px; /* Larger padding */
            border-radius: 10px; /* More rounded */
            font-size: 0.95rem; /* Slightly larger font */
            z-index: 1000;
            transform: translateX(120%); /* Starts further out */
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bounce in */
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .fmc-cache-status.show {
            transform: translateX(0);
        }

        .fmc-highlight-comment {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 3px solid #f59e0b; /* Thicker border */
            transform: scale(1.03) translateX(0) !important; /* More pronounced scale, override hover slide */
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
        }

        /* Animation for scrolling during winner selection */
        .fmc-scroll-animation {
            animation: fmc-scroll-effect 3s ease-in-out forwards; /* 3 seconds, then stay at end */
        }

        @keyframes fmc-scroll-effect {
            0% { transform: translateY(0); }
            100% { transform: translateY(calc(-100% + var(--container-height))); } /* Scroll to end */
        }

        .fmc-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .fmc-modal.show {
            opacity: 1;
            visibility: visible;
        }

        .fmc-modal-content {
            background: white;
            padding: 35px; /* Increased padding */
            border-radius: 20px; /* More rounded */
            max-width: 550px; /* Slightly wider */
            width: 90%;
            max-height: 85vh; /* Taller */
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .fmc-keyboard-shortcut {
            display: flex;
            justify-content: space-between;
            padding: 10px 0; /* Increased padding */
            border-bottom: 1px solid #e5e7eb;
            font-size: 0.95rem;
        }

        .fmc-keyboard-shortcut:last-child {
            border-bottom: none;
        }

        .fmc-shortcut-key {
            background: #e0e7ff; /* Lighter background for keys */
            color: #4f46e5;
            padding: 6px 10px; /* Larger padding */
            border-radius: 6px;
            font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* Monospace font */
            font-size: 0.85rem;
            font-weight: 600;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .fmc-input-section {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .fmc-main-title {
                font-size: 2.2rem;
            }
            
            .fmc-content-area {
                padding: 25px;
            }
            
            .fmc-button-group {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }

            .fmc-primary-btn, .fmc-secondary-btn, .fmc-tertiary-btn {
                min-width: 100%;
            }

            .fmc-winners-list {
                grid-template-columns: 1fr;
            }

            .fmc-winner-modal-content {
                padding: 30px;
                max-width: 90vw; /* On small screens, keep it 90% */
            }

            .fmc-winner-modal-title {
                font-size: 2rem;
            }
            .fmc-share-btn {
                width: 100%;
            }
        }

        /* New styles for video details section */
        .fmc-video-details-section {
            display: flex;
            background: #fff;
            padding: 25px; /* Increased padding */
            border-radius: 15px; /* More rounded */
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Stronger shadow */
            margin-bottom: 30px; /* Increased margin */
            align-items: flex-start;
            gap: 25px; /* Increased gap */
            border-left: 5px solid #059669; /* Thicker border */
            border-top-right-radius: 15px; /* Smooth corner */
            border-bottom-right-radius: 15px; /* Smooth corner */
        }

        .fmc-video-thumbnail {
            width: 180px; /* Slightly larger thumbnail */
            height: 101px; /* Maintain aspect ratio (16:9) */
            border-radius: 10px; /* More rounded */
            object-fit: cover;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .fmc-video-info {
            flex-grow: 1;
        }

        .fmc-video-title {
            font-size: 1.35rem; /* Larger title */
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 8px; /* Increased margin */
            line-height: 1.4;
        }

        .fmc-video-channel {
            font-size: 1rem; /* Slightly larger */
            color: #4f46e5;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .fmc-video-description {
            font-size: 0.9rem; /* Slightly larger */
            color: #4b5563; /* Darker text */
            line-height: 1.5;
            max-height: 75px; /* Increased description height */
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Styles for the spinning comment container */
        .fmc-spinning-comment-container {
            background: linear-gradient(135deg, #e0f2fe 0%, #bfdbfe 100%);
            padding: 35px; /* Increased padding */
            border-radius: 20px; /* More rounded */
            text-align: center;
            margin-top: 30px; /* Increased margin */
            box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4); /* Stronger shadow */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 250px; /* Taller for animation */
            transition: all 0.3s ease-in-out;
            transform: scale(1);
            animation: pulse 1.5s infinite alternate; /* Simple pulse animation */
        }

        .fmc-spinning-comment-container .fmc-comment-author {
            font-size: 1.6rem; /* Larger font */
            color: #1d4ed8;
            margin-bottom: 12px;
            font-weight: 700;
        }

        .fmc-spinning-comment-container .fmc-comment-text {
            font-size: 1.25rem; /* Larger font */
            color: #3b82f6;
            font-style: normal;
            font-weight: 500;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            100% { transform: scale(1.02); }
        }

        /* Responsive adjustments for video details */
        @media (max-width: 600px) {
            .fmc-video-details-section {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 20px;
                gap: 15px;
            }
            .fmc-video-thumbnail {
                width: 100%;
                height: auto;
                max-width: 280px; /* Larger on mobile */
                margin-bottom: 15px;
            }
            .fmc-spinning-comment-container {
                min-height: 200px;
                padding: 25px;
            }
            .fmc-spinning-comment-container .fmc-comment-author {
                font-size: 1.4rem;
            }
            .fmc-spinning-comment-container .fmc-comment-text {
                font-size: 1.1rem;
            }
        }