/* Comments system — extracted verbatim from comments.php (inline <style>). */
        /* Base Container */
        .yt-comments-container {
            font-family: 'Roboto', 'Segoe UI', sans-serif;
            color: #f1f1f1;
            display: flex;
            flex-direction: column;
            height: 100%;
            background: #0f0f0f;
            position: relative;
        }
        
        /* Filters */
        .yt-comments-filters {
            display: flex;
            gap: 10px;
            padding: 10px 15px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            flex-shrink: 0;
        }
        .yt-filter-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            color: #f1f1f1;
            padding: 6px 14px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
        }
        .yt-filter-btn:hover { background: rgba(255,255,255,0.2); }
        .yt-filter-btn.active { background: #f1f1f1; color: #0f0f0f; font-weight: 600; }
        
        /* Scrollable Area */
        .yt-comments-scroll-area {
            flex-grow: 1;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 15px;
            padding-bottom: 80px; /* space for fixed form */
            transition: opacity 0.2s ease;
        }
        .yt-comments-scroll-area.is-dimmed {
            opacity: 0.35;
            pointer-events: none;
        }
        @media (max-width: 1023px) {
            .yt-comments-scroll-area {
                padding-bottom: calc(30vh + 80px);
                padding-bottom: calc(30dvh + 80px);
            }
            .yt-comment-form-fixed {
                transform: translateY(-30vh);
                transform: translateY(-30dvh);
                transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
            }
            .yt-bottom-sheet.expanded .yt-comment-form-fixed,
            .yt-bottom-sheet.has-picker-open .yt-comment-form-fixed {
                transform: translateY(0);
            }
            .yt-bottom-sheet.has-picker-open .yt-comments-scroll-area {
                padding-bottom: 55vh;
                padding-bottom: 55dvh;
            }
        }
        
        .yt-comments-scroll-area::-webkit-scrollbar { width: 6px; }
        .yt-comments-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
        
        /* Threads */
        .yt-comments-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Loading, Error, Empty & Load More States (Prompt 6A) */
        .yt-comments-loading,
        .yt-comments-error,
        .yt-no-comments {
            text-align: center;
            padding: 35px 20px;
            color: #aaa;
            font-size: 14px;
        }
        .yt-comments-loading i {
            margin-right: 8px;
            color: #3ea6ff;
            font-size: 16px;
        }
        .yt-comments-error {
            color: #ff6b6b;
        }
        .yt-comments-error p {
            margin: 0 0 12px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
        }
        .yt-retry-btn {
            background: rgba(255,255,255,0.1);
            color: #f1f1f1;
            border: 1px solid rgba(255,255,255,0.2);
            padding: 6px 18px;
            border-radius: 18px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .yt-retry-btn:hover {
            background: #3ea6ff;
            color: #0f0f0f;
            border-color: #3ea6ff;
        }
        .yt-load-more-comments-wrapper {
            text-align: center;
            margin: 20px 0 10px 0;
        }
        .yt-load-more-comments-btn {
            background: rgba(255,255,255,0.08);
            color: #3ea6ff;
            border: 1px solid rgba(62, 166, 255, 0.3);
            padding: 8px 24px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .yt-load-more-comments-btn:hover {
            background: rgba(62, 166, 255, 0.15);
            border-color: #3ea6ff;
        }
        .yt-load-more-comments-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .yt-comment-highlight {
            animation: ytHighlightPulse 2.8s ease-out;
            border-radius: 8px;
        }
        @keyframes ytHighlightPulse {
            0% { background: rgba(62, 166, 255, 0.35); box-shadow: 0 0 15px rgba(62, 166, 255, 0.4); }
            70% { background: rgba(62, 166, 255, 0.15); }
            100% { background: transparent; box-shadow: none; }
        }
        
        .yt-comment-thread {
            position: relative;
        }
        
        .yt-comment-body {
            display: flex;
            gap: 12px;
        }
        
        /* Avatar */
        .yt-comment-avatar {
            position: relative;
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            z-index: 2;
        }
        .yt-avatar-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .yt-vip-comment .yt-avatar-img { border: 1px solid #ffd700; }
        .yt-vip-glow {
            position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
            background: #ffd700; border-radius: 50%; filter: blur(4px); opacity: 0.6; z-index: -1;
        }
        
        /* Content */
        .yt-comment-content-wrapper {
            flex-grow: 1;
        }
        
        .yt-comment-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }
        .yt-comment-meta {
            font-size: 11px;
            color: #aaa;
        }
        .yt-comment-author {
            font-weight: 600;
            color: #f1f1f1;
            font-size: 13px;
        }
        .yt-vip-name { color: #ffd700; }
        .yt-vip-crown { font-size: 10px; margin-left: 2px; }
        
        .yt-comment-options i { color: #f1f1f1; font-size: 14px; cursor: pointer; padding: 0 5px; }
        
        .yt-comment-text {
            font-size: 13px;
            line-height: 1.45;
            color: #f1f1f1;
            margin-bottom: 6px;
            word-break: break-word;
            white-space: pre-line;
        }
        .yt-comment-text.clamped {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .yt-comment-img {
            border-radius: 8px;
            margin-top: 5px;
            display: block;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            object-fit: cover;
        }
        .yt-comment-img-small {
            max-width: 80px;
            max-height: 80px;
        }
        .yt-comment-img-large {
            max-width: 100%;
            max-height: 400px;
        }
        .yt-read-more-btn {
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            margin-top: 2px;
            margin-bottom: 8px;
        }
        .yt-read-more-btn:hover {
            color: #fff;
        }
        
        /* Actions */
        .yt-comment-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #f1f1f1;
        }
        .yt-action-btn {
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 2px 0;
            text-decoration: none;
        }
        .yt-action-btn:hover { color: #fff; }
        .yt-action-btn i { font-size: 13px; }
        .like-count { font-size: 11px; }
        
        /* Threading Lines & Replies */
        .yt-replies-container {
            margin-left: 16px; /* center of 32px avatar */
            padding-left: 28px;
            border-left: 2px solid rgba(255,255,255,0.1);
            margin-top: -15px;
            padding-top: 25px;
            position: relative;
        }
        
        /* The curved line from the parent avatar */
        .yt-replies-container::before {
            content: '';
            position: absolute;
            left: -2px;
            bottom: -20px;
            width: 20px;
            height: 20px;
            border-left: 2px solid rgba(255,255,255,0.1);
            border-bottom: 2px solid rgba(255,255,255,0.1);
            border-bottom-left-radius: 12px;
            display: none; /* Hide if we just want a straight line */
        }

        .yt-replies-container > .yt-comment-thread {
            margin-bottom: 15px;
        }
        .yt-replies-container > .yt-comment-thread:last-child {
            margin-bottom: 0;
        }
        
        .yt-load-more-replies {
            background: transparent;
            border: none;
            color: #3ea6ff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            padding: 5px 10px;
            margin-top: 5px;
            border-radius: 12px;
            display: inline-block;
        }
        .yt-load-more-replies:hover {
            background: rgba(62, 166, 255, 0.1);
        }
        
        /* View Replies Toggle Button */
        .yt-view-replies-btn {
            background: transparent;
            border: none;
            color: #3ea6ff;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            padding: 5px 12px;
            margin-top: 4px;
            margin-left: 44px;
            margin-bottom: 6px;
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s;
        }
        .yt-view-replies-btn:hover {
            background: rgba(62, 166, 255, 0.12);
        }
        .yt-view-replies-btn i {
            font-size: 11px;
        }

        /* Replying To Bar Above Editor */
        .yt-replying-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(62, 166, 255, 0.12);
            border: 1px solid rgba(62, 166, 255, 0.25);
            border-radius: 8px;
            padding: 6px 12px;
            margin-bottom: 8px;
            font-size: 13px;
            color: #ccc;
        }
        .yt-replying-info {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .yt-replying-info i {
            color: #3ea6ff;
            font-size: 12px;
        }
        .yt-replying-info strong {
            color: #3ea6ff;
            font-weight: 600;
        }
        .yt-cancel-reply-btn {
            background: transparent;
            border: none;
            color: #aaa;
            cursor: pointer;
            padding: 2px 6px;
            font-size: 14px;
            border-radius: 50%;
            transition: color 0.2s, background 0.2s;
        }
        .yt-cancel-reply-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.15);
        }

        /* Soft Deleted Comment Placeholders */
        .yt-comment-thread.yt-deleted-comment {
            opacity: 0.75;
        }
        .yt-deleted-body {
            padding: 4px 0;
        }
        .yt-deleted-notice {
            color: #888;
            font-style: italic;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .yt-deleted-comment > .yt-comment-body .yt-comment-avatar,
        .yt-deleted-comment > .yt-comment-body .yt-comment-header,
        .yt-deleted-comment > .yt-comment-body .yt-comment-actions,
        .yt-deleted-comment > .yt-comment-body .yt-comment-attachments {
            display: none !important;
        }
        
        /* Fixed Bottom Form */
        .yt-comment-form-fixed {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: #0f0f0f;
            border-top: 1px solid rgba(255,255,255,0.1);
            padding: 10px 15px;
            padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
            z-index: 10;
        }
        
        /* Report & Delete Modals */
        #yt-report-modal, #yt-delete-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 99999;
            align-items: center;
            justify-content: center;
        }
        .yt-18-modal-content {
            background: #111;
            padding: 25px;
            border-radius: 12px;
            max-width: 400px;
            text-align: center;
            border: 1px solid #d32f2f;
            margin: 20px;
        }
        .yt-18-modal-content h3 {
            color: #ffbaba;
            margin-top: 0;
            margin-bottom: 15px;
        }
        .yt-18-modal-content p {
            color: #aaa;
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 25px;
        }
        .yt-18-modal-btns {
            display: flex;
            gap: 15px;
            justify-content: center;
        }
        .yt-18-btn-cancel {
            padding: 10px 20px;
            border-radius: 20px;
            border: none;
            background: #333;
            color: #fff;
            cursor: pointer;
            font-weight: 600;
        }
        .yt-18-btn-proceed {
            padding: 10px 20px;
            border-radius: 20px;
            border: none;
            background: #d32f2f;
            color: #fff;
            cursor: pointer;
            font-weight: 600;
        }
        
        /* Custom Web Alerts (Toast) */
        .yt-toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #d32f2f;
            color: #fff;
            padding: 12px 24px;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 600;
            z-index: 999999;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            pointer-events: none;
            text-align: center;
        }
        .yt-toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        
        .yt-input-wrapper {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.1);
            border-radius: 24px;
            padding: 5px 10px;
        }
        
        .yt-media-preview-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
            padding: 5px 8px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            overflow-x: auto;
            scrollbar-width: none;
            flex-shrink: 0;
        }
        .yt-media-preview-bar::-webkit-scrollbar {
            display: none;
        }
        .yt-media-preview-item {
            position: relative;
            width: 44px;
            height: 44px;
            border-radius: 8px;
            background: #222;
            flex-shrink: 0;
        }
        .yt-media-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }
        .yt-media-remove {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 20px;
            height: 20px;
            background: #444;
            color: #fff;
            border: none;
            border-radius: 50%;
            font-size: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.5);
            z-index: 5;
        }
        .yt-media-remove:hover {
            background: #d32f2f;
        }
        .yt-rich-editor {
            flex-grow: 1;
            background: transparent;
            border: none;
            color: #f1f1f1;
            font-size: 13px;
            outline: none;
            padding: 8px 0;
            min-height: 30px;
            max-height: 120px;
            overflow-y: auto;
            font-family: inherit;
            line-height: 20px;
            cursor: text;
        }
        .yt-rich-editor:empty:before {
            content: attr(data-placeholder);
            color: rgba(255, 255, 255, 0.4);
            pointer-events: none;
            display: block;
        }
        .yt-spoiler-text-edit {
            background-color: rgba(255,255,255,0.15);
            color: transparent;
            text-shadow: 0 0 8px rgba(255,255,255,0.7);
            border-radius: 4px;
            padding: 0 4px;
        }
        .yt-tool-btn {
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 16px;
            cursor: pointer;
            padding: 5px;
            margin-left: 5px;
        }
        .yt-tool-btn:hover { color: #f1f1f1; }
        .yt-submit-btn {
            background: transparent;
            border: none;
            color: #3ea6ff; /* YouTube Blue */
            font-size: 16px;
            cursor: pointer;
            padding: 5px;
            margin-left: 5px;
        }
        
        .yt-guest-prompt a {
            display: block;
            background: rgba(255,255,255,0.1);
            color: #aaa;
            text-align: center;
            padding: 12px;
            border-radius: 24px;
            text-decoration: none;
            font-size: 14px;
        }
        
        /* Spoiler */
        .yt-spoiler-text {
            background: rgba(255,255,255,0.2);
            color: transparent;
            border-radius: 4px;
            padding: 0 4px;
            cursor: pointer;
            user-select: none;
        }
        .yt-spoiler-text.revealed {
            background: transparent;
            color: #f1f1f1;
        }

        /* Stickers / GIFs / Pictures Library Picker */
        .yt-sticker-picker-panel {
            background: #181818;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
            margin-bottom: 8px;
            overflow: hidden;
            animation: ytPickerSlideUp 0.2s ease-out;
            display: flex;
            flex-direction: column;
            max-height: 48vh;
            max-height: 48dvh;
        }
        @media (max-height: 500px) {
            .yt-sticker-picker-panel {
                max-height: 72vh;
                max-height: 72dvh;
            }
        }
        @keyframes ytPickerSlideUp {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .yt-spp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: #181818;
            flex-shrink: 0;
            position: sticky;
            top: 0;
            z-index: 10;
        }
        .yt-spp-tabs {
            display: flex;
            gap: 6px;
        }
        .yt-spp-tab {
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 12px;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .yt-spp-tab:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }
        .yt-spp-tab.active {
            background: rgba(255, 255, 255, 0.16);
            color: #fff;
            font-weight: 600;
        }
        .yt-spp-tab-site {
            color: #3ea6ff;
            font-weight: 600;
        }
        .yt-spp-tab-site:hover {
            color: #65b8ff;
        }
        .yt-spp-tab-site.active {
            background: rgba(62, 166, 255, 0.22) !important;
            color: #65b8ff !important;
        }

        /* Site Media Subbar (All / Stickers / GIFs / Pictures) */
        .yt-site-subbar {
            display: flex;
            align-items: center;
            padding: 6px 12px;
            background: #141414;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
            position: sticky;
            top: 38px;
            z-index: 9;
        }
        .yt-site-subtabs {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .yt-site-subtabs::-webkit-scrollbar {
            display: none;
        }
        .yt-site-subtab {
            padding: 4px 12px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.06);
            color: #aaa;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        .yt-site-subtab:hover {
            background: rgba(255, 255, 255, 0.14);
            color: #fff;
        }
        .yt-site-subtab.active {
            background: #3ea6ff;
            color: #000;
            font-weight: 700;
        }
        .yt-spp-close {
            background: transparent;
            border: none;
            color: #888;
            font-size: 14px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: color 0.15s;
        }
        .yt-spp-close:hover {
            color: #fff;
        }
        .yt-spp-categories {
            flex-shrink: 0;
        }
        .yt-spp-body {
            max-height: none;
            flex: 1 1 auto;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            touch-action: pan-y;
            padding: 10px;
            min-height: 120px;
        }
        .yt-spp-body::-webkit-scrollbar { width: 5px; }
        .yt-spp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
        .yt-spp-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
            gap: 10px;
        }
        .yt-spp-item {
            width: 100%;
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.15s, background 0.15s, border-color 0.15s;
            overflow: hidden;
            padding: 4px;
        }
        .yt-spp-item:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
        }
        @media (hover: hover) {
            .yt-spp-item:hover {
                transform: scale(1.08);
            }
        }
        .yt-spp-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 4px;
            pointer-events: none;
        }
        .yt-spp-loading, .yt-spp-empty {
            grid-column: 1 / -1;
            text-align: center;
            color: #888;
            font-size: 13px;
            padding: 24px 10px;
        }

        /* Comment Attachments (Stickers, GIFs, Pictures) - Prompt C Part 3: 80x80 box */
        .yt-comment-attachments {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            align-items: flex-start;
        }
        .yt-comment-attachment-item {
            width: 80px;
            height: 80px;
            min-width: 80px;
            min-height: 80px;
            max-width: 80px;
            max-height: 80px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.03);
            flex-shrink: 0;
        }
        .yt-comment-attachment-item img,
        .yt-comment-sticker,
        .yt-comment-library-img,
        .yt-comment-media-img,
        .yt-comment-ext-media {
            width: 80px !important;
            height: 80px !important;
            max-width: 80px !important;
            max-height: 80px !important;
            object-fit: contain !important;
            display: block;
            border-radius: 6px;
        }

        /* KLIPY Integration (Prompt 2) */
        .yt-spp-tab-klipy {
            color: #b388ff;
        }
        .yt-spp-tab-klipy:hover {
            color: #d1c4e9;
        }
        .yt-spp-tab-klipy.active {
            background: rgba(179, 136, 255, 0.2) !important;
            color: #d1c4e9 !important;
        }
        .yt-klipy-search-container {
            padding: 8px 12px;
            background: rgba(0, 0, 0, 0.35);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-shrink: 0;
            position: sticky;
            top: 38px;
            z-index: 9;
        }
        .yt-klipy-search-bar {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 20px;
            padding: 4px 12px;
            gap: 8px;
            transition: border-color 0.2s, background 0.2s;
        }
        .yt-klipy-search-bar:focus-within {
            border-color: #3ea6ff;
            background: rgba(255, 255, 255, 0.12);
        }
        .yt-klipy-search-icon {
            color: #888;
            font-size: 13px;
        }
        .yt-klipy-search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 13px;
            padding: 4px 0;
        }
        .yt-klipy-search-input::placeholder {
            color: #888;
        }
        .yt-klipy-clear-btn {
            background: transparent;
            border: none;
            color: #888;
            font-size: 12px;
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 50%;
            transition: color 0.15s;
        }
        .yt-klipy-clear-btn:hover {
            color: #fff;
        }
        .yt-klipy-subbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 4px;
        }
        .yt-klipy-subtabs {
            display: flex;
            gap: 6px;
        }
        .yt-klipy-subtab {
            padding: 3px 10px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.06);
            color: #aaa;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .yt-klipy-subtab:hover {
            background: rgba(255, 255, 255, 0.14);
            color: #fff;
        }
        .yt-klipy-subtab.active {
            background: #3ea6ff;
            color: #000;
        }
        .yt-klipy-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            color: #777;
            user-select: none;
        }
        .yt-klipy-badge-text {
            color: #777;
        }
        .yt-klipy-badge-brand {
            font-weight: 700;
            color: #b388ff;
            letter-spacing: 0.5px;
        }
        .yt-klipy-view {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .yt-klipy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
            gap: 8px;
        }
        .yt-klipy-item {
            width: 100%;
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            transition: transform 0.15s, border-color 0.15s, background 0.15s;
            position: relative;
        }
        .yt-klipy-item:hover {
            border-color: rgba(255, 255, 255, 0.28);
            background: rgba(255, 255, 255, 0.1);
        }
        @media (hover: hover) {
            .yt-klipy-item:hover {
                transform: scale(1.06);
            }
        }
        .yt-klipy-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
            pointer-events: none;
            display: block;
        }
        .yt-klipy-item[data-type="sticker"] img {
            object-fit: contain;
        }
        .yt-klipy-section-label {
            grid-column: 1 / -1;
            font-size: 11px;
            font-weight: 600;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin: 4px 0 2px 0;
        }
        .yt-klipy-status {
            text-align: center;
            font-size: 12px;
            color: #888;
            padding: 20px 10px;
        }
        .yt-klipy-status.error {
            color: #ff5252;
        }
        .yt-klipy-status.busy {
            color: #ffb74d;
        }
        .yt-klipy-retry-btn {
            margin-top: 8px;
            padding: 4px 12px;
            font-size: 11px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .yt-klipy-retry-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        .yt-klipy-load-more-wrap {
            text-align: center;
            padding: 8px 0 4px 0;
        }
        .yt-klipy-load-more-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ccc;
            font-size: 11px;
            font-weight: 500;
            padding: 6px 16px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .yt-klipy-load-more-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }

        /* nekos.best Anime Reactions (Prompt 3) */
        .yt-spp-tab-nekos {
            color: #ff4081;
        }
        .yt-spp-tab-nekos:hover {
            color: #ff80ab;
        }
        .yt-spp-tab-nekos.active {
            background: rgba(255, 64, 129, 0.2) !important;
            color: #ff80ab !important;
        }
        .yt-nekos-view {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        .yt-nekos-categories {
            display: flex;
            gap: 6px;
            padding: 4px 0 6px 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            scrollbar-width: thin;
        }
        .yt-nekos-chip {
            padding: 4px 12px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.08);
            color: #ccc;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
        }
        .yt-nekos-chip:hover {
            background: rgba(255, 255, 255, 0.16);
            color: #fff;
        }
        .yt-nekos-chip.active {
            background: #ff4081;
            color: #fff;
        }
        .yt-nekos-controls-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 4px;
        }
        .yt-nekos-search-bar {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            padding: 2px 10px;
            gap: 6px;
            flex: 1;
            transition: border-color 0.2s, background 0.2s;
        }
        .yt-nekos-search-bar:focus-within {
            border-color: #ff4081;
            background: rgba(255, 255, 255, 0.12);
        }
        .yt-nekos-search-icon {
            color: #888;
            font-size: 12px;
        }
        .yt-nekos-search-input {
            flex: 1;
            background: transparent;
            border: none;
            outline: none;
            color: #fff;
            font-size: 12px;
            padding: 3px 0;
        }
        .yt-nekos-search-input::placeholder {
            color: #888;
        }
        .yt-nekos-clear-btn {
            background: transparent;
            border: none;
            color: #888;
            font-size: 11px;
            cursor: pointer;
            padding: 2px 4px;
            border-radius: 50%;
            transition: color 0.15s;
        }
        .yt-nekos-clear-btn:hover {
            color: #fff;
        }
        .yt-nekos-shuffle-btn {
            background: rgba(255, 64, 129, 0.12);
            border: 1px solid rgba(255, 64, 129, 0.35);
            color: #ff80ab;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 12px;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }
        .yt-nekos-shuffle-btn:hover {
            background: rgba(255, 64, 129, 0.25);
            color: #fff;
            border-color: #ff4081;
        }
        .yt-nekos-status {
            text-align: center;
            font-size: 12px;
            color: #888;
            padding: 16px 10px;
        }
        .yt-nekos-status.error {
            color: #ff5252;
        }
        .yt-nekos-status.busy {
            color: #ffb74d;
        }
        .yt-nekos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
            gap: 8px;
        }
        .yt-nekos-item {
            width: 100%;
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            position: relative;
            transition: transform 0.15s, border-color 0.15s, background 0.15s;
        }
        .yt-nekos-item:hover {
            border-color: rgba(255, 64, 129, 0.6);
            background: rgba(255, 64, 129, 0.1);
        }
        @media (hover: hover) {
            .yt-nekos-item:hover {
                transform: scale(1.06);
            }
        }
        .yt-nekos-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
            pointer-events: none;
            display: block;
        }
        .yt-nekos-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 2px 2px 2px;
        }
        .yt-nekos-more-wrap {
            flex: 1;
        }
        .yt-nekos-more-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #ccc;
            font-size: 11px;
            font-weight: 500;
            padding: 5px 14px;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .yt-nekos-more-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.25);
        }
        .yt-nekos-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 10px;
            color: #777;
            user-select: none;
        }
        .yt-nekos-badge-brand {
            font-weight: 700;
            color: #ff4081;
        }

        /* Tap to play Anime Reactions (Prompt 3 Requirement 11) */
        .yt-nekos-tap-wrap {
            width: 80px !important;
            height: 80px !important;
            min-width: 80px !important;
            min-height: 80px !important;
            max-width: 80px !important;
            max-height: 80px !important;
            cursor: pointer;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            overflow: hidden;
            background: #1e1e1e;
            border: 1px solid rgba(255, 64, 129, 0.3);
            user-select: none;
            transition: all 0.2s ease;
        }
        .yt-nekos-tap-wrap:hover {
            border-color: #ff4081;
            transform: scale(1.02);
            box-shadow: 0 2px 8px rgba(255, 64, 129, 0.25);
        }
        .yt-nekos-placeholder {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            gap: 3px;
            background: linear-gradient(135deg, rgba(255, 64, 129, 0.18), rgba(18, 18, 18, 0.8));
        }
        .yt-nekos-play-icon {
            color: #ff4081;
            font-size: 18px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
            transition: transform 0.15s ease;
        }
        .yt-nekos-tap-wrap:hover .yt-nekos-play-icon {
            transform: scale(1.15);
        }
        .yt-nekos-play-badge {
            font-size: 9px;
            font-weight: 700;
            color: #fff;
            background: rgba(255, 64, 129, 0.85);
            padding: 1px 5px;
            border-radius: 3px;
            letter-spacing: 0.5px;
        }

        /* Short preview under video placeholder (Prompt 3) */
        .yt-cp-thumb-placeholder {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            background: #18181b;
            border: 1px solid #333;
            border-radius: 4px;
            vertical-align: middle;
            margin-left: 5px;
            color: #ff4081;
            cursor: default;
        }
        .yt-cp-thumb-placeholder i {
            font-size: 11px;
        }

        /* Sticker Picker Category Chips (Prompt C Part 4) */
        .yt-spp-categories {
            display: flex;
            gap: 6px;
            padding: 8px 12px;
            overflow-x: auto;
            background: rgba(0, 0, 0, 0.25);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            scrollbar-width: thin;
        }
        .yt-spp-cat-chip {
            padding: 4px 10px;
            font-size: 11px;
            font-weight: 600;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: #ccc;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .yt-spp-cat-chip:hover {
            background: rgba(255, 255, 255, 0.16);
            color: #fff;
        }
        .yt-spp-cat-chip.active {
            background: #3ea6ff;
            color: #000;
        }
        .yt-media-unavailable, .yt-media-removed {
            display: inline-block;
            color: #888;
            font-style: italic;
            font-size: 12px;
            padding: 2px 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            margin-top: 4px;
            user-select: none;
        }

        /* Noscript Fallback Notice */
        .yt-noscript-notice {
            background: rgba(255, 68, 68, 0.12);
            border: 1px solid rgba(255, 68, 68, 0.35);
            color: #ff6b6b;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 13px;
            text-align: center;
            font-weight: 500;
            margin-bottom: 10px;
        }

        /* Comment Loading & Error & Load More States (Prompt 6A) */
        .yt-comments-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 30px 15px;
            color: #aaa;
            font-size: 14px;
        }
        .yt-comments-loading i {
            font-size: 18px;
            color: #3ea6ff;
        }

        .yt-comments-error {
            text-align: center;
            padding: 25px 15px;
            color: #ff6b6b;
            background: rgba(255, 68, 68, 0.08);
            border: 1px solid rgba(255, 68, 68, 0.2);
            border-radius: 8px;
            margin: 15px auto;
            max-width: 360px;
        }
        .yt-comments-error p {
            margin: 0 0 12px;
            font-size: 14px;
        }
        .yt-retry-btn {
            background: #3ea6ff;
            color: #000;
            border: none;
            border-radius: 18px;
            padding: 7px 18px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .yt-retry-btn:hover {
            background: #65b8ff;
            transform: translateY(-1px);
        }
        .yt-retry-btn:active {
            transform: translateY(0);
        }

        .yt-load-more-comments-wrapper {
            display: flex;
            justify-content: center;
            padding: 18px 0 24px;
        }
        .yt-load-more-comments-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: #3ea6ff;
            padding: 9px 24px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }
        .yt-load-more-comments-btn:hover {
            background: rgba(62, 166, 255, 0.15);
            border-color: #3ea6ff;
        }
        .yt-load-more-comments-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        /* Comment Anchor Highlight */
        @keyframes ytHighlightPulse {
            0% {
                background-color: rgba(62, 166, 255, 0.35);
                box-shadow: 0 0 0 4px rgba(62, 166, 255, 0.25);
            }
            70% {
                background-color: rgba(62, 166, 255, 0.2);
                box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.15);
            }
            100% {
                background-color: transparent;
                box-shadow: none;
            }
        }
        .yt-comment-highlight {
            animation: ytHighlightPulse 3s ease-out forwards;
            border-radius: 8px;
        }

        /* Review Notice for Hidden Comments (Prompt 6D) */
        .yt-comment-review-notice {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 152, 0, 0.12);
            border: 1px solid rgba(255, 152, 0, 0.35);
            color: #ffb74d;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 12px;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .yt-comment-review-notice i {
            font-size: 13px;
            color: #ff9800;
        }



