/* from html/yt-chanels.twig (moved out of an inline <style> block) */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .yt-scraper-wrapper {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
            color: #1f2937;
        }

        .yt-scraper-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .icon-box {
            width: auto;
            height: 48px;
            background: transparent;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon-box img {
            width: 28px;
            height: 28px;
        }

        h1 {
            font-size: 2.25rem;
            font-weight: bold;
            color: #1f2937;
        }

        .subtitle {
            color: #6b7280;
            font-size: 1.125rem;
        }

        .input-box {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 20px;
            padding: 1.5rem;
            max-width: 768px;
            margin: 0 auto 2rem;
        }

        label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.75rem;
        }

        .input-group {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        input[type="text"],
        input[type="number"] {
            flex: 1;
            padding: 1rem;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 15px;
            color: #1f2937;
            font-size: 1rem;
            transition: all 0.2s;
        }

        input:focus {
            outline: none;
            border-color: #dc2626;
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

        input::placeholder {
            color: #9ca3af;
        }

        .btn {
            padding: 1rem 2rem;
            background: linear-gradient(to right, #dc2626, #b91c1c);
            color: white;
            font-weight: 600;
            border: none;
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
        }

        .btn:hover {
            background: linear-gradient(to right, #b91c1c, #991b1b);
        }

        .btn:disabled {
            background: linear-gradient(to right, #9ca3af, #6b7280);
            cursor: not-allowed;
            box-shadow: none;
        }

        .btn-full {
            width: 100%;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .channel-info {
            max-width: 768px;
            margin: 0 auto 2rem;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 20px;
            padding: 1.5rem;
            display: none;
        }

        .channel-info.active {
            display: block;
        }

        .channel-header {
            display: flex;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1rem;
        }

        .channel-thumbnail {
            width: 80px;
            height: 80px;
            border-radius: 50%;
        }

        .channel-details h2 {
            font-size: 1.5rem;
            color: #1f2937;
            margin-bottom: 0.25rem;
        }

        .channel-stats {
            color: #6b7280;
            font-size: 0.875rem;
        }

        .results {
            max-width: 1200px;
            margin: 0 auto;
            display: none;
        }

        .results.active {
            display: block;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .results-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937;
        }

        .copy-all-btn {
            padding: 0.75rem 1.5rem;
            background: #22c55e;
            color: white;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .copy-all-btn:hover {
            background: #16a34a;
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
        }

        .video-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.2s;
            cursor: pointer;
        }

        .video-card:hover {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .video-thumbnail-container {
            position: relative;
            padding-bottom: 56.25%;
            background: #f3f4f6;
        }

        .video-thumbnail-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .video-info {
            padding: 1rem;
        }

        .video-title {
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .video-date {
            color: #6b7280;
            font-size: 0.875rem;
        }

        .video-link {
            color: #dc2626;
            font-size: 0.75rem;
            font-family: 'Courier New', monospace;
            word-break: break-all;
            margin-top: 0.5rem;
        }

        .error-box {
            max-width: 768px;
            margin: 0 auto;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 15px;
            padding: 1.5rem;
            color: #ef4444;
            display: none;
        }

        .error-box.active {
            display: block;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 1.75rem;
            }
            .input-group {
                flex-direction: column;
            }
            .video-grid {
                grid-template-columns: 1fr;
            }
        }
    