@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Wrapper class to avoid conflicts */
     
			
			.ytw-wrapper {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #d32597 0%, #992c97 50%, #e835bb 100%);
	min-height: 100vh;
	color: #ffffff;
	overflow-x: hidden;
	position: relative;
}

        /* Reset styles within wrapper */
        .ytw-wrapper * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Animated Background Elements */
        .ytw-background-effects {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .ytw-floating-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(60px);
            animation: ytw-float 8s ease-in-out infinite;
        }

        .ytw-orb-1 {
            width: 384px;
            height: 384px;
            background: rgba(245, 158, 11, 0.1);
            top: 25%;
            left: 25%;
            animation-delay: 0s;
        }

        .ytw-orb-2 {
            width: 384px;
            height: 384px;
            background: rgba(147, 51, 234, 0.1);
            bottom: 25%;
            right: 25%;
            animation-delay: 1s;
        }

        .ytw-orb-3 {
            width: 256px;
            height: 256px;
            background: rgba(59, 130, 246, 0.1);
            top: 75%;
            left: 50%;
            animation-delay: 2s;
        }

        @keyframes ytw-float {
            0%, 100% {
                transform: translateY(0px) scale(1);
                opacity: 0.5;
            }
            50% {
                transform: translateY(-30px) scale(1.1);
                opacity: 0.8;
            }
        }

        .ytw-container {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* Header Styles */
        .ytw-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .ytw-header-content {
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .ytw-app-icon {
            position: relative;
            width: 4rem;
            height: 4rem;
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            border-radius: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
        }

        .ytw-app-icon::before {
            content: '';
            position: absolute;
            inset: -4px;
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            border-radius: 1rem;
            filter: blur(8px);
            opacity: 0.3;
            animation: ytw-pulse 2s ease-in-out infinite;
        }

        .ytw-app-icon svg {
            width: 2rem;
            height: 2rem;
            fill: white;
            position: relative;
            z-index: 1;
        }

        @keyframes ytw-pulse {
            0%, 100% {
                opacity: 0.3;
            }
            50% {
                opacity: 0.6;
            }
        }

        .ytw-title {
            font-size: clamp(2rem, 5vw, 4rem);
            font-weight: 900;
            background: linear-gradient(135deg, #f59e0b, #ea580c, #f59e0b);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: ytw-gradientShift 3s ease-in-out infinite;
        }

        @keyframes ytw-gradientShift {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .ytw-subtitle {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
            margin-bottom: 2rem;
        }

        .ytw-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .ytw-feature-card {
            padding: 1rem;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            border: 1px solid rgba(245, 158, 11, 0.2);
            transition: all 0.3s ease;
            text-align: center;
        }

        .ytw-feature-card:hover {
            transform: translateY(-5px) scale(1.05);
            border-color: rgba(245, 158, 11, 0.4);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .ytw-feature-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }

        .ytw-feature-text {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
        }

        /* Input Section */
        .ytw-input-section {
            max-width: 800px;
            margin: 0 auto 3rem;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            border: 1px solid rgba(245, 158, 11, 0.2);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .ytw-input-wrapper {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .ytw-input-field {
            flex: 1 !important;
            min-width: 300px !important;
            padding: 1rem 1.5rem !important;
            background: rgba(0, 0, 0, 0.5) !important;
            border: 1px solid #475569 !important;
            border-radius: 0.75rem !important;
            color: white !important;
            font-size: 1.125rem !important;
            font-weight: 500 !important;
            transition: all 0.3s ease !important;
            position: relative !important;
        }

        .ytw-input-field:focus {
            outline: none;
            border-color: #f59e0b;
            box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
            background: rgba(0, 0, 0, 0.7);
        }

        .ytw-input-field::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .ytw-btn {
            padding: 1rem 1.5rem;
            border: none;
            border-radius: 0.75rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
        }

        .ytw-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .ytw-btn:hover::before {
            left: 100%;
        }

        .ytw-btn-paste {
            background: linear-gradient(135deg, #475569, #334155);
            color: white;
            box-shadow: 0 8px 25px rgba(71, 85, 105, 0.4);
        }

        .ytw-btn-paste:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(71, 85, 105, 0.5);
        }

        .ytw-btn-search {
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            color: white;
            width: 100%;
            font-size: 1.125rem;
            padding: 1.25rem;
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        }

        .ytw-btn-search:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
        }

        .ytw-btn-search:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Loading Styles */
        .ytw-loading {
            display: none;
            text-align: center;
            padding: 3rem 2rem;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            margin: 2rem 0;
            border: 1px solid rgba(245, 158, 11, 0.2);
        }

        .ytw-spinner {
            width: 3rem;
            height: 3rem;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-left: 3px solid #f59e0b;
            border-radius: 50%;
            animation: ytw-spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

        @keyframes ytw-spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Channel Styles */
        .ytw-channel-container {
            display: none;
            space-y: 2rem;
        }

        .ytw-channel-banner {
            width: 100%;
            height: clamp(200px, 30vw, 320px);
            background-size: cover;
            background-position: center;
            border-radius: 1.5rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .ytw-channel-banner::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 120px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
        }

        .ytw-channel-header {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(245, 158, 11, 0.2);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .ytw-channel-main-info {
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .ytw-channel-avatar {
            position: relative;
            flex-shrink: 0;
        }

        .ytw-channel-avatar img {
            width: clamp(96px, 15vw, 128px);
            height: clamp(96px, 15vw, 128px);
            border-radius: 50%;
            border: 4px solid rgba(245, 158, 11, 0.5);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .ytw-channel-avatar::before {
            content: '';
            position: absolute;
            inset: -8px;
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            border-radius: 50%;
            filter: blur(8px);
            opacity: 0.3;
        }

        .ytw-channel-details {
            flex: 1;
            min-width: 300px;
        }

        .ytw-channel-name {
            font-size: clamp(1.5rem, 4vw, 2.5rem);
            font-weight: 800;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .ytw-verified-badge {
            width: 2rem;
            height: 2rem;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1rem;
            font-weight: bold;
            box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
            flex-shrink: 0;
        }

        .ytw-channel-handle {
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .ytw-channel-description {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 0.75rem;
            padding: 1rem;
            margin-bottom: 1.5rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
        }

        .ytw-channel-links {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .ytw-channel-link {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
            border: 1px solid rgba(245, 158, 11, 0.3);
            color: #fbbf24;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .ytw-channel-link:hover {
            background: rgba(245, 158, 11, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
        }

        /* Stats Grid */
        .ytw-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .ytw-stat-card {
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            border: 1px solid rgba(100, 116, 139, 0.5);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .ytw-stat-card:hover {
            transform: translateY(-5px) scale(1.05);
            border-color: rgba(245, 158, 11, 0.5);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .ytw-stat-icon {
            width: 3rem;
            height: 3rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            transition: transform 0.3s ease;
        }

        .ytw-stat-card:hover .ytw-stat-icon {
            transform: scale(1.1);
        }

        .ytw-stat-icon.users {
            background: linear-gradient(135deg, #3b82f6, #06b6d4);
        }

        .ytw-stat-icon.views {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .ytw-stat-icon.calendar {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        }

        .ytw-stat-icon.location {
            background: linear-gradient(135deg, #f59e0b, #dc2626);
        }

        .ytw-stat-value {
            font-size: clamp(1.25rem, 3vw, 2rem);
            font-weight: 800;
            color: #f1f5f9;
            margin-bottom: 0.25rem;
            word-break: break-word;
        }

        .ytw-stat-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Videos Section */
        .ytw-videos-section {
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            padding: 2rem;
            border: 1px solid rgba(245, 158, 11, 0.2);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .ytw-section-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 2rem;
        }

        .ytw-section-icon {
            width: 2rem;
            height: 2rem;
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ytw-section-title {
            font-size: clamp(1.5rem, 4vw, 2rem);
            font-weight: 700;
            color: white;
        }

        .ytw-videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.5rem;
        }

        .ytw-video-card {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid rgba(100, 116, 139, 0.5);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .ytw-video-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            border-color: rgba(245, 158, 11, 0.5);
        }

        .ytw-video-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }

        .ytw-video-thumbnail::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0);
            transition: all 0.3s ease;
            z-index: 1;
        }

        .ytw-video-card:hover .ytw-video-thumbnail::before {
            background: rgba(0, 0, 0, 0.3);
        }

        .ytw-play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1);
            width: 4rem;
            height: 4rem;
            background: rgba(245, 158, 11, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            transition: all 0.3s ease;
            z-index: 2;
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        }

        .ytw-video-card:hover .ytw-play-button {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1.1);
        }

        .ytw-play-button svg {
            width: 1.5rem;
            height: 1.5rem;
            fill: white;
            margin-left: 2px;
        }

        .ytw-video-duration {
            position: absolute;
            bottom: 0.5rem;
            right: 0.5rem;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.375rem;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 3;
        }

        .ytw-video-info {
            padding: 1rem;
        }

        .ytw-video-title {
            font-size: 0.875rem;
            font-weight: 600;
            line-height: 1.4;
            margin-bottom: 0.5rem;
            color: white;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .ytw-video-card:hover .ytw-video-title {
            color: #fbbf24;
        }

        .ytw-video-meta {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.75rem;
            font-weight: 500;
        }

        /* Modal Styles */
        .ytw-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            padding: 1rem;
        }

        .ytw-modal-content {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
        }

        .ytw-modal-close {
            position: absolute;
            top: -3rem;
            right: 0;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.75rem;
            border-radius: 50%;
            width: 3rem;
            height: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .ytw-modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .ytw-video-player {
            width: 100%;
            aspect-ratio: 16/9;
            border: none;
            border-radius: 0.75rem;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        /* Error Styles */
        .ytw-error {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #fca5a5;
            padding: 2rem;
            border-radius: 1rem;
            text-align: center;
            margin: 2rem 0;
            backdrop-filter: blur(10px);
        }

        .ytw-error h3 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-size: 1.125rem;
        }

        /* Enhanced Download Modal Styles */
        .ytw-download-modal-content {
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(20px);
            border-radius: 1.5rem;
            border: 1px solid rgba(245, 158, 11, 0.3);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            padding: 2rem;
            margin: 2rem auto;
            position: relative;
        }

        .ytw-download-modal-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(245, 158, 11, 0.2);
        }

        .ytw-download-modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
            line-height: 1.4;
        }

        .ytw-download-modal-thumbnail {
            width: 200px;
            height: auto;
            border-radius: 1rem;
            margin: 0 auto 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .ytw-download-modal-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ytw-download-info-item {
            text-align: center;
        }

        .ytw-download-info-label {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .ytw-download-info-value {
            font-size: 1rem;
            color: #fbbf24;
            font-weight: 600;
        }

        .ytw-download-formats-section {
            margin-bottom: 2rem;
        }

        .ytw-download-section-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .ytw-download-section-icon {
            width: 1.5rem;
            height: 1.5rem;
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            border-radius: 0.375rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.875rem;
        }
			
			
			
			.ytw-input-section {
	max-width: 100%;
	margin: 0 auto 3rem;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(20px);
	border-radius: 1.5rem;
	border: 1px solid rgba(245, 158, 11, 0.2);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

        .ytw-download-formats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
        }

        .ytw-download-format-card {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            padding: 1.5rem;
            border: 1px solid rgba(100, 116, 139, 0.5);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .ytw-download-format-card:hover {
            transform: translateY(-3px);
            border-color: rgba(245, 158, 11, 0.5);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        }

        .ytw-download-format-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .ytw-download-format-type {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .ytw-download-format-icon {
            width: 2rem;
            height: 2rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.875rem;
            font-weight: bold;
        }

        .ytw-download-format-icon.audio {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        }

        .ytw-download-format-icon.video {
            background: linear-gradient(135deg, #10b981, #059669);
        }

        .ytw-download-format-label {
            font-size: 1rem;
            font-weight: 600;
            color: white;
        }

        .ytw-download-format-quality {
            font-size: 0.875rem;
            color: #fbbf24;
            font-weight: 600;
            background: rgba(245, 158, 11, 0.2);
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .ytw-btn-download {
            background: linear-gradient(135deg, #f59e0b, #ea580c);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
        }

        .ytw-btn-download:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
        }

        .ytw-btn-download:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Enhanced Loading Animation */
        .ytw-download-loading {
            text-align: center;
            padding: 3rem 2rem;
        }

        .ytw-download-loading-spinner {
            width: 4rem;
            height: 4rem;
            margin: 0 auto 2rem;
            position: relative;
        }

        .ytw-download-loading-spinner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 4px solid rgba(245, 158, 11, 0.2);
            border-radius: 50%;
        }

        .ytw-download-loading-spinner::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 4px solid transparent;
            border-top: 4px solid #f59e0b;
            border-radius: 50%;
            animation: ytw-downloadSpin 1s linear infinite;
        }

        @keyframes ytw-downloadSpin {
            to {
                transform: rotate(360deg);
            }
        }

        .ytw-download-loading-text {
            font-size: 1.125rem;
            color: white;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .ytw-download-loading-subtext {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
        }

        .ytw-download-loading-dots {
            display: inline-flex;
            gap: 0.25rem;
            margin-left: 0.5rem;
        }

        .ytw-download-loading-dot {
            width: 0.375rem;
            height: 0.375rem;
            background: #f59e0b;
            border-radius: 50%;
            animation: ytw-downloadDots 1.5s ease-in-out infinite;
        }

        .ytw-download-loading-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .ytw-download-loading-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes ytw-downloadDots {
            0%, 60%, 100% {
                opacity: 0.3;
                transform: scale(0.8);
            }
            30% {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Enhanced Progress Bar */
        .ytw-download-progress-container {
            margin-top: 2rem;
            padding: 2rem;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .ytw-download-progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .ytw-download-progress-title {
            font-size: 1rem;
            font-weight: 600;
            color: white;
        }

        .ytw-download-progress-percentage {
            font-size: 1rem;
            font-weight: 700;
            color: #fbbf24;
        }

        .ytw-download-progress-bar-container {
            width: 100%;
            height: 0.75rem;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 0.375rem;
            overflow: hidden;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ytw-download-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #f59e0b, #ea580c);
            border-radius: 0.375rem;
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .ytw-download-progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: ytw-progressShimmer 2s ease-in-out infinite;
        }

        @keyframes ytw-progressShimmer {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        .ytw-download-progress-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        .ytw-btn-cancel {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
        }

        .ytw-btn-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
        }

        .ytw-download-complete {
            text-align: center;
            padding: 2rem;
            background: rgba(16, 185, 129, 0.2);
            border: 1px solid rgba(16, 185, 129, 0.4);
            border-radius: 1rem;
            margin-top: 1rem;
        }

        .ytw-download-complete-icon {
            width: 3rem;
            height: 3rem;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: white;
            font-size: 1.5rem;
        }

        .ytw-download-complete-text {
            font-size: 1.125rem;
            font-weight: 600;
            color: #10b981;
        }

        /* Responsive Design */
        @media (max-width: 375px) {
            .ytw-container {
                padding: 1rem;
            }
            
            .ytw-input-section {
                padding: 1rem;
            }
            
            .ytw-input-wrapper {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            .ytw-input-field {
                min-width: unset;
                font-size: 1rem;
                padding: 0.75rem 1rem;
            }
            
            .ytw-btn {
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
            }
            
            .ytw-channel-main-info {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1rem;
            }
            
            .ytw-channel-name {
                justify-content: center;
                font-size: 1.5rem;
            }
            
            .ytw-stats-grid {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }
            
            .ytw-stat-card {
                padding: 1rem;
            }
            
            .ytw-videos-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .ytw-channel-header,
            .ytw-videos-section {
                padding: 1rem;
            }
            
            .ytw-download-modal-content {
                margin: 1rem;
                padding: 1rem;
            }
            
            .ytw-download-formats-grid {
                grid-template-columns: 1fr;
            }
            
            .ytw-download-modal-info {
                grid-template-columns: 1fr;
            }
            
            .ytw-app-icon {
                width: 3rem;
                height: 3rem;
            }
            
            .ytw-app-icon svg {
                width: 1.5rem;
                height: 1.5rem;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 100%;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 400px) {
            .ytw-title {
                font-size: 1.75rem;
            }
            
            .ytw-subtitle {
                font-size: 1rem;
            }
            
            .ytw-features-grid {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            
            .ytw-feature-card {
                padding: 0.75rem;
            }
            
            .ytw-feature-icon {
                font-size: 1.5rem;
            }
            
            .ytw-feature-text {
                font-size: 0.75rem;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 100%;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 600px) {
            .ytw-title {
                font-size: 2rem;
            }
            
            .ytw-subtitle {
                font-size: 1.125rem;
            }
            
            .ytw-features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .ytw-channel-header {
                padding: 1.5rem;
            }
            
            .ytw-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .ytw-videos-section {
                padding: 1.5rem;
            }
            
            .ytw-videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
            
            .ytw-download-modal-content {
                padding: 1.5rem;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 100%;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 768px) {
            .ytw-container {
                padding: 1rem;
            }

            .ytw-features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .ytw-input-section {
                padding: 1.5rem;
            }

            .ytw-input-wrapper {
                flex-direction: column;
                gap: 0.75rem;
            }

            .ytw-input-field {
                min-width: unset;
            }

            .ytw-channel-main-info {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 1rem;
            }

            .ytw-channel-name {
                justify-content: center;
            }

            .ytw-stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .ytw-stat-card {
                padding: 1rem;
            }

            .ytw-videos-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .ytw-channel-header,
            .ytw-videos-section {
                padding: 1.5rem;
            }

            .ytw-download-modal-content {
                margin: 1rem;
                padding: 1.5rem;
            }

            .ytw-download-formats-grid {
                grid-template-columns: 1fr;
            }

            .ytw-download-modal-info {
                grid-template-columns: 1fr;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 100%;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 992px) {
            .ytw-videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
            
            .ytw-stats-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .ytw-download-formats-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 100%;
}
        }

        @media (min-width: 1200px) {
            .ytw-videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
            }

            .ytw-stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* Utility Classes */
        .ytw-hidden {
            display: none;
        }

        .ytw-flex {
            display: flex;
        }

        .ytw-items-center {
            align-items: center;
        }

        .ytw-gap-2 {
            gap: 0.5rem;
        }

                /* Responsive Design */
        @media (max-width: 992px) {
            .ytw-container {
                padding: 1rem; /* Adjust padding for smaller screens */
            }

            .ytw-app-icon {
                width: 3.5rem; /* Adjust icon size */
                height: 3.5rem;
            }

            .ytw-app-icon svg {
                width: 1.75rem; /* Adjust SVG icon size */
                height: 1.75rem;
            }

            .ytw-title {
                font-size: clamp(2rem, 6vw, 3rem); /* Make title more responsive */
            }

            .ytw-subtitle {
                font-size: 1.125rem; /* Slightly smaller subtitle */
            }

            .ytw-features-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust feature grid for smaller cards */
                gap: 0.75rem;
            }

            .ytw-feature-card {
                padding: 1rem;
            }

            .ytw-feature-icon {
                font-size: 1.75rem;
            }

            .ytw-feature-text {
                font-size: 0.875rem;
            }

            .ytw-input-section {
                padding: 1.5rem;
            }

            .ytw-input-wrapper {
                flex-direction: column; /* Stack input fields and buttons vertically */
                gap: 0.75rem;
            }

            .ytw-input-field {
                min-width: unset; /* Remove min-width constraint */
                font-size: 1rem;
                padding: 0.75rem 1rem;
            }

            .ytw-btn {
                padding: 0.75rem 1rem;
                font-size: 0.875rem;
                width: 100%; /* Make buttons full width */
                justify-content: center;
            }

            .ytw-btn-search {
                padding: 1rem; /* Adjust search button padding */
                font-size: 1rem;
            }

            .ytw-channel-banner {
                height: clamp(180px, 35vw, 280px); /* Adjust banner height */
            }

            .ytw-channel-header {
                padding: 1.5rem;
            }

            .ytw-channel-main-info {
                flex-direction: column; /* Stack channel info vertically */
                align-items: center;
                text-align: center;
                gap: 1.5rem;
            }

            .ytw-channel-avatar img {
                width: clamp(80px, 18vw, 110px); /* Adjust avatar size */
                height: clamp(80px, 18vw, 110px);
            }

            .ytw-channel-name {
                font-size: clamp(1.5rem, 4.5vw, 2.25rem); /* Adjust channel name font size */
                justify-content: center; /* Center align channel name */
                gap: 0.5rem;
            }

            .ytw-verified-badge {
                width: 1.75rem; /* Adjust badge size */
                height: 1.75rem;
                font-size: 0.9rem;
            }

            .ytw-channel-handle {
                font-size: clamp(0.9rem, 2.8vw, 1.1rem); /* Adjust handle font size */
                margin-bottom: 0.75rem;
            }

            .ytw-channel-description {
                padding: 0.75rem;
                font-size: 0.9rem;
                line-height: 1.5;
            }

            .ytw-channel-links {
                justify-content: center; /* Center align links */
                gap: 0.5rem;
            }

            .ytw-channel-link {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            .ytw-stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust stats grid for more columns */
                gap: 0.75rem;
            }

            .ytw-stat-card {
                padding: 1.25rem;
            }

            .ytw-stat-icon {
                width: 2.5rem; /* Adjust stat icon size */
                height: 2.5rem;
            }

            .ytw-stat-value {
                font-size: clamp(1rem, 2.8vw, 1.6rem); /* Adjust stat value font size */
            }

            .ytw-stat-label {
                font-size: 0.75rem; /* Adjust stat label font size */
            }

            .ytw-videos-section {
                padding: 1.5rem;
            }

            .ytw-section-header {
                margin-bottom: 1.5rem;
            }

            .ytw-section-icon {
                width: 1.75rem; /* Adjust section icon size */
                height: 1.75rem;
            }

            .ytw-section-title {
                font-size: clamp(1.25rem, 4vw, 1.8rem); /* Adjust section title font size */
            }

            .ytw-videos-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Adjust video grid for smaller screens */
                gap: 1rem;
            }

            .ytw-video-card {
                border-radius: 0.75rem;
            }

            .ytw-video-thumbnail {
                border-top-left-radius: 0.75rem;
                border-top-right-radius: 0.75rem;
            }

            .ytw-play-button {
                width: 3.5rem; /* Adjust play button size */
                height: 3.5rem;
            }

            .ytw-play-button svg {
                width: 1.25rem; /* Adjust play button SVG size */
                height: 1.25rem;
            }

            .ytw-video-duration {
                font-size: 0.7rem;
                padding: 0.2rem 0.4rem;
                border-radius: 0.3rem;
            }

            .ytw-video-info {
                padding: 0.75rem;
            }

            .ytw-video-title {
                font-size: 0.8rem;
                margin-bottom: 0.4rem;
            }

            .ytw-video-meta {
                font-size: 0.7rem;
            }

            .ytw-modal-close {
                top: -2.5rem; /* Adjust modal close button position */
                right: 0.5rem;
                width: 2.5rem;
                height: 2.5rem;
                font-size: 1.2rem;
                padding: 0.5rem;
            }

            .ytw-download-modal-content {
                margin: 1rem auto;
                padding: 1.5rem;
                border-radius: 1rem;
            }

            .ytw-download-modal-header {
                margin-bottom: 1.5rem;
                padding-bottom: 0.75rem;
            }

            .ytw-download-modal-title {
                font-size: 1.25rem;
                margin-bottom: 0.75rem;
            }

            .ytw-download-modal-thumbnail {
                width: 160px; /* Adjust thumbnail size */
                border-radius: 0.75rem;
                margin-bottom: 0.75rem;
            }

            .ytw-download-modal-info {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adjust info grid */
                gap: 0.75rem;
                margin-bottom: 1.5rem;
                padding: 0.75rem;
                border-radius: 0.75rem;
            }

            .ytw-download-info-label {
                font-size: 0.8rem;
                margin-bottom: 0.4rem;
            }

            .ytw-download-info-value {
                font-size: 0.9rem;
            }

            .ytw-download-formats-section {
                margin-bottom: 1.5rem;
            }

            .ytw-download-section-title {
                font-size: 1.1rem;
                margin-bottom: 1rem;
            }

            .ytw-download-section-icon {
                width: 1.25rem;
                height: 1.25rem;
            }

            .ytw-download-formats-grid {
                grid-template-columns: 1fr; /* Stack download format cards */
                gap: 0.75rem;
            }

            .ytw-download-format-card {
                padding: 1rem;
                border-radius: 0.75rem;
            }

            .ytw-download-format-icon {
                width: 1.75rem;
                height: 1.75rem;
                font-size: 0.8rem;
            }

            .ytw-download-format-label {
                font-size: 0.9rem;
            }

            .ytw-download-format-quality {
                font-size: 0.75rem;
                padding: 0.2rem 0.6rem;
            }

            .ytw-btn-download {
                padding: 0.6rem 1.2rem;
                font-size: 0.8rem;
                border-radius: 0.6rem;
            }

            .ytw-download-loading {
                padding: 2rem 1rem;
            }

            .ytw-download-loading-spinner {
                width: 3rem;
                height: 3rem;
                margin-bottom: 1.5rem;
            }

            .ytw-download-loading-spinner::before,
            .ytw-download-loading-spinner::after {
                border-width: 3px;
            }

            .ytw-download-loading-text {
                font-size: 1rem;
            }

            .ytw-download-loading-subtext {
                font-size: 0.8rem;
            }

            .ytw-download-progress-container {
                padding: 1.5rem;
                border-radius: 0.75rem;
            }

            .ytw-download-progress-title,
            .ytw-download-progress-percentage {
                font-size: 0.9rem;
            }

            .ytw-download-progress-bar-container {
                height: 0.6rem;
                margin-bottom: 0.75rem;
            }

            .ytw-btn-cancel {
                padding: 0.6rem 1.2rem;
                font-size: 0.8rem;
                border-radius: 0.6rem;
            }

            .ytw-download-complete-icon {
                width: 2.5rem;
                height: 2.5rem;
                font-size: 1.2rem;
                margin-bottom: 0.75rem;
            }

            .ytw-download-complete-text {
                font-size: 1rem;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
}
        }

        @media (max-width: 768px) {
            .ytw-title {
                font-size: clamp(1.75rem, 7vw, 2.5rem);
            }

            .ytw-subtitle {
                font-size: 1rem;
            }

            .ytw-features-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 0.5rem;
            }

            .ytw-feature-card {
                padding: 0.8rem;
            }

            .ytw-feature-icon {
                font-size: 1.5rem;
            }

            .ytw-feature-text {
                font-size: 0.8rem;
            }

            .ytw-input-section {
                padding: 1.25rem;
            }

            .ytw-input-field {
                font-size: 0.9rem;
                padding: 0.6rem 0.8rem;
            }

            .ytw-btn {
                font-size: 0.8rem;
                padding: 0.6rem 0.8rem;
            }

            .ytw-btn-search {
                padding: 0.8rem;
                font-size: 0.9rem;
            }

            .ytw-channel-banner {
                height: clamp(150px, 40vw, 250px);
            }

            .ytw-channel-header {
                padding: 1.25rem;
            }

            .ytw-channel-avatar img {
                width: clamp(70px, 20vw, 90px);
                height: clamp(70px, 20vw, 90px);
            }

            .ytw-channel-name {
                font-size: clamp(1.25rem, 5vw, 2rem);
            }

            .ytw-verified-badge {
                width: 1.5rem;
                height: 1.5rem;
                font-size: 0.8rem;
            }

            .ytw-channel-handle {
                font-size: clamp(0.8rem, 3vw, 1rem);
            }

            .ytw-channel-description {
                font-size: 0.85rem;
            }

            .ytw-channel-link {
                font-size: 0.75rem;
            }

            .ytw-stats-grid {
                grid-template-columns: repeat(2, 1fr); /* Two columns for stats on smaller tablets */
                gap: 0.5rem;
            }

            .ytw-stat-card {
                padding: 1rem;
            }

            .ytw-stat-icon {
                width: 2.2rem;
                height: 2.2rem;
            }

            .ytw-stat-value {
                font-size: clamp(0.9rem, 3.5vw, 1.4rem);
            }

            .ytw-stat-label {
                font-size: 0.7rem;
            }

            .ytw-videos-section {
                padding: 1.25rem;
            }

            .ytw-section-icon {
                width: 1.5rem;
                height: 1.5rem;
            }

            .ytw-section-title {
                font-size: clamp(1.1rem, 4.5vw, 1.6rem);
            }

            .ytw-videos-grid {
                grid-template-columns: 1fr; /* Single column for videos on smaller tablets */
                gap: 0.8rem;
            }

            .ytw-play-button {
                width: 3rem;
                height: 3rem;
            }

            .ytw-play-button svg {
                width: 1.1rem;
                height: 1.1rem;
            }

            .ytw-video-title {
                font-size: 0.75rem;
            }

            .ytw-video-meta {
                font-size: 0.65rem;
            }

            .ytw-modal-close {
                top: -2.2rem;
                right: 0.3rem;
                width: 2.2rem;
                height: 2.2rem;
                font-size: 1rem;
            }

            .ytw-download-modal-content {
                padding: 1.25rem;
            }

            .ytw-download-modal-title {
                font-size: 1.1rem;
            }

            .ytw-download-modal-thumbnail {
                width: 140px;
            }

            .ytw-download-modal-info {
                grid-template-columns: 1fr; /* Single column for download info */
            }

            .ytw-download-info-label {
                font-size: 0.75rem;
            }

            .ytw-download-info-value {
                font-size: 0.85rem;
            }

            .ytw-download-section-title {
                font-size: 1rem;
            }

            .ytw-download-section-icon {
                width: 1.1rem;
                height: 1.1rem;
            }

            .ytw-download-format-card {
                padding: 0.8rem;
            }

            .ytw-download-format-icon {
                width: 1.5rem;
                height: 1.5rem;
                font-size: 0.7rem;
            }

            .ytw-download-format-label {
                font-size: 0.8rem;
            }

            .ytw-download-format-quality {
                font-size: 0.7rem;
            }

            .ytw-btn-download {
                padding: 0.5rem 1rem;
                font-size: 0.75rem;
            }

            .ytw-download-loading-spinner {
                width: 2.5rem;
                height: 2.5rem;
            }

            .ytw-download-loading-text {
                font-size: 0.9rem;
            }

            .ytw-download-loading-subtext {
                font-size: 0.75rem;
            }

            .ytw-download-progress-container {
                padding: 1.25rem;
            }

            .ytw-download-progress-title,
            .ytw-download-progress-percentage {
                font-size: 0.8rem;
            }

            .ytw-btn-cancel {
                padding: 0.5rem 1rem;
                font-size: 0.75rem;
            }

            .ytw-download-complete-icon {
                width: 2.2rem;
                height: 2.2rem;
                font-size: 1.1rem;
            }

            .ytw-download-complete-text {
                font-size: 0.9rem;
            }
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 238px;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 261px;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 270px;
}
								.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 600px) {
            .ytw-title {
                font-size: clamp(1.5rem, 8vw, 2.2rem);
            }

            .ytw-subtitle {
                font-size: 0.9rem;
            }

            .ytw-features-grid {
                grid-template-columns: repeat(2, 1fr); /* Two columns for features */
                gap: 0.4rem;
            }

            .ytw-feature-card {
                padding: 0.7rem;
            }

            .ytw-feature-icon {
                font-size: 1.3rem;
            }

            .ytw-feature-text {
                font-size: 0.75rem;
            }

            .ytw-input-section {
                padding: 1rem;
            }

            .ytw-input-field {
                font-size: 0.85rem;
                padding: 0.5rem 0.7rem;
            }

            .ytw-btn {
                font-size: 0.75rem;
                padding: 0.5rem 0.7rem;
            }

            .ytw-btn-search {
                padding: 0.7rem;
                font-size: 0.85rem;
            }

            .ytw-channel-banner {
                height: clamp(120px, 45vw, 200px);
            }

            .ytw-channel-header {
                padding: 1rem;
            }

            .ytw-channel-avatar img {
                width: clamp(60px, 22vw, 80px);
                height: clamp(60px, 22vw, 80px);
            }

            .ytw-channel-name {
                font-size: clamp(1.1rem, 5.5vw, 1.8rem);
            }

            .ytw-verified-badge {
                width: 1.3rem;
                height: 1.3rem;
                font-size: 0.7rem;
            }

            .ytw-channel-handle {
                font-size: clamp(0.75rem, 3.5vw, 0.9rem);
            }

            .ytw-channel-description {
                font-size: 0.8rem;
            }

            .ytw-channel-link {
                font-size: 0.7rem;
                padding: 0.3rem 0.6rem;
            }

            .ytw-stats-grid {
                grid-template-columns: 1fr; /* Single column for stats on phones */
                gap: 0.4rem;
            }

            .ytw-stat-card {
                padding: 0.8rem;
            }

            .ytw-stat-icon {
                width: 2rem;
                height: 2rem;
            }

            .ytw-stat-value {
                font-size: clamp(0.8rem, 4vw, 1.2rem);
            }

            .ytw-stat-label {
                font-size: 0.65rem;
            }

            .ytw-videos-section {
                padding: 1rem;
            }

            .ytw-section-icon {
                width: 1.3rem;
                height: 1.3rem;
            }

            .ytw-section-title {
                font-size: clamp(1rem, 5vw, 1.4rem);
            }

            .ytw-videos-grid {
                gap: 0.6rem;
            }

            .ytw-play-button {
                width: 2.8rem;
                height: 2.8rem;
            }

            .ytw-play-button svg {
                width: 1rem;
                height: 1rem;
            }

            .ytw-video-title {
                font-size: 0.7rem;
            }

            .ytw-video-meta {
                font-size: 0.6rem;
            }

            .ytw-modal-close {
                top: -2rem;
                right: 0.2rem;
                width: 2rem;
                height: 2rem;
                font-size: 0.9rem;
            }

            .ytw-download-modal-content {
                padding: 1rem;
            }

            .ytw-download-modal-title {
                font-size: 1rem;
            }

            .ytw-download-modal-thumbnail {
                width: 120px;
            }

            .ytw-download-info-label {
                font-size: 0.7rem;
            }

            .ytw-download-info-value {
                font-size: 0.8rem;
            }

            .ytw-download-section-title {
                font-size: 0.9rem;
            }

            .ytw-download-section-icon {
                width: 1rem;
                height: 1rem;
            }

            .ytw-download-format-card {
                padding: 0.7rem;
            }

            .ytw-download-format-icon {
                width: 1.3rem;
                height: 1.3rem;
                font-size: 0.65rem;
            }

            .ytw-download-format-label {
                font-size: 0.75rem;
            }

            .ytw-download-format-quality {
                font-size: 0.65rem;
            }

            .ytw-btn-download {
                padding: 0.4rem 0.8rem;
                font-size: 0.7rem;
            }

            .ytw-download-loading-spinner {
                width: 2.2rem;
                height: 2.2rem;
            }

            .ytw-download-loading-text {
                font-size: 0.8rem;
            }

            .ytw-download-loading-subtext {
                font-size: 0.7rem;
            }

            .ytw-download-progress-container {
                padding: 1rem;
            }

            .ytw-download-progress-title,
            .ytw-download-progress-percentage {
                font-size: 0.7rem;
            }

            .ytw-btn-cancel {
                padding: 0.4rem 0.8rem;
                font-size: 0.7rem;
            }

            .ytw-download-complete-icon {
                width: 2rem;
                height: 2rem;
                font-size: 1rem;
            }

            .ytw-download-complete-text {
                font-size: 0.8rem;
            }
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 238px;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 261px;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 270px;
}
								.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}
        }

        @media (max-width: 400px) {
            .ytw-title {
                font-size: clamp(1.3rem, 9vw, 2rem);
            }

            .ytw-subtitle {
                font-size: 0.85rem;
                margin-bottom: 1.5rem;
            }

            .ytw-features-grid {
                grid-template-columns: 1fr; /* Single column for features on very small devices */
                gap: 0.3rem;
            }

            .ytw-feature-card {
                padding: 0.6rem;
            }

            .ytw-feature-icon {
                font-size: 1.2rem;
            }

            .ytw-feature-text {
                font-size: 0.7rem;
            }

            .ytw-input-section {
                padding: 0.8rem;
            }

            .ytw-input-field {
                font-size: 0.8rem;
                padding: 0.4rem 0.6rem;
            }

            .ytw-btn {
                font-size: 0.7rem;
                padding: 0.4rem 0.6rem;
            }

            .ytw-btn-search {
                padding: 0.6rem;
                font-size: 0.8rem;
            }

            .ytw-channel-banner {
                height: clamp(100px, 50vw, 180px);
            }

            .ytw-channel-header {
                padding: 0.8rem;
            }

            .ytw-channel-avatar img {
                width: clamp(50px, 25vw, 70px);
                height: clamp(50px, 25vw, 70px);
            }

            .ytw-channel-name {
                font-size: clamp(1rem, 6vw, 1.6rem);
            }

            .ytw-verified-badge {
                width: 1.1rem;
                height: 1.1rem;
                font-size: 0.6rem;
            }

            .ytw-channel-handle {
                font-size: clamp(0.7rem, 4vw, 0.85rem);
            }

            .ytw-channel-description {
                font-size: 0.75rem;
            }

            .ytw-channel-link {
                font-size: 0.65rem;
                padding: 0.25rem 0.5rem;
            }

            .ytw-stat-card {
                padding: 0.7rem;
            }

            .ytw-stat-icon {
                width: 1.8rem;
                height: 1.8rem;
            }

            .ytw-stat-value {
                font-size: clamp(0.7rem, 4.5vw, 1.1rem);
            }

            .ytw-stat-label {
                font-size: 0.6rem;
            }

            .ytw-videos-section {
                padding: 0.8rem;
            }

            .ytw-section-icon {
                width: 1.1rem;
                height: 1.1rem;
            }

            .ytw-section-title {
                font-size: clamp(0.9rem, 5.5vw, 1.2rem);
            }

            .ytw-play-button {
                width: 2.5rem;
                height: 2.5rem;
            }

            .ytw-play-button svg {
                width: 0.9rem;
                height: 0.9rem;
            }

            .ytw-video-title {
                font-size: 0.65rem;
            }

            .ytw-video-meta {
                font-size: 0.55rem;
            }

            .ytw-modal-close {
                top: -1.8rem;
                right: 0.1rem;
                width: 1.8rem;
                height: 1.8rem;
                font-size: 0.8rem;
            }

            .ytw-download-modal-content {
                padding: 0.8rem;
            }

            .ytw-download-modal-title {
                font-size: 0.9rem;
            }

            .ytw-download-modal-thumbnail {
                width: 100px;
            }

            .ytw-download-info-label {
                font-size: 0.65rem;
            }

            .ytw-download-info-value {
                font-size: 0.75rem;
            }

            .ytw-download-section-title {
                font-size: 0.8rem;
            }

            .ytw-download-section-icon {
                width: 0.9rem;
                height: 0.9rem;
            }

            .ytw-download-format-card {
                padding: 0.6rem;
            }

            .ytw-download-format-icon {
                width: 1.1rem;
                height: 1.1rem;
                font-size: 0.6rem;
            }

            .ytw-download-format-label {
                font-size: 0.7rem;
            }

            .ytw-download-format-quality {
                font-size: 0.6rem;
            }

            .ytw-btn-download {
                padding: 0.35rem 0.7rem;
                font-size: 0.65rem;
            }

            .ytw-download-loading-spinner {
                width: 2rem;
                height: 2rem;
            }

            .ytw-download-loading-text {
                font-size: 0.7rem;
            }

            .ytw-download-loading-subtext {
                font-size: 0.65rem;
            }

            .ytw-download-progress-container {
                padding: 0.8rem;
            }

            .ytw-download-progress-title,
            .ytw-download-progress-percentage {
                font-size: 0.65rem;
            }
					
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
}
					
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 238px;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 261px;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 270px;
}
					.ytw-input-field {
	min-width: unset !important;
	font-size: 1rem !important;
	padding: 0.75rem 1rem !important;
	width: 208px;
}
					.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 205px;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 202px;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 203px;
}
								.ytw-channel-description {
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
	border-radius: 0.75rem;
	padding: 1rem !important;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.6 !important;
	color: rgba(255, 255, 255, 0.9);
	width: 100% !important;
}
					.ytw-channel-handle {
	font-size: 14px;
	width: 100% !important;
}
					.ytw-channel-name {
	font-size: 18px;
	width: 100% !important;
}

        }

/* --- Codex CSS updates --- */
.ytw-wrapper {
    --ytw-bg-1: #0f172a;
    --ytw-bg-2: #4c1d95;
    --ytw-bg-3: #db2777;
    --ytw-surface: rgba(15, 23, 42, 0.74);
    --ytw-surface-strong: rgba(15, 23, 42, 0.9);
    --ytw-surface-soft: rgba(255, 255, 255, 0.1);
    --ytw-border: rgba(255, 255, 255, 0.18);
    --ytw-border-strong: rgba(251, 191, 36, 0.42);
    --ytw-text: #ffffff;
    --ytw-muted: rgba(255, 255, 255, 0.76);
    --ytw-soft: rgba(255, 255, 255, 0.58);
    --ytw-accent: #f59e0b;
    --ytw-accent-2: #ec4899;
    --ytw-accent-3: #8b5cf6;
    --ytw-success: #10b981;
    --ytw-danger: #ef4444;
    --ytw-radius-sm: 10px;
    --ytw-radius-md: 14px;
    --ytw-radius-lg: 22px;
    --ytw-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
    --ytw-shadow-soft: 0 12px 34px rgba(2, 6, 23, 0.22);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 10%, rgba(236, 72, 153, 0.42), transparent 34%),
        radial-gradient(circle at 84% 8%, rgba(245, 158, 11, 0.26), transparent 30%),
        linear-gradient(135deg, var(--ytw-bg-1) 0%, var(--ytw-bg-2) 48%, var(--ytw-bg-3) 100%);
    min-height: 100vh;
    color: var(--ytw-text);
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

.ytw-wrapper *,
.ytw-wrapper *::before,
.ytw-wrapper *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ytw-wrapper .fa,
.ytw-wrapper .fas,
.ytw-wrapper .far,
.ytw-wrapper .fab,
.ytw-wrapper [class^="fa-"],
.ytw-wrapper [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900;
    display: inline-block;
    line-height: 1;
}

.ytw-background-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ytw-floating-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.55;
    animation: ytw-float 10s ease-in-out infinite;
    will-change: transform, opacity;
}

.ytw-orb-1 {
    width: 360px;
    height: 360px;
    background: rgba(245, 158, 11, 0.24);
    top: 8%;
    left: 8%;
    animation-delay: 0s;
}

.ytw-orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(236, 72, 153, 0.22);
    bottom: 10%;
    right: 6%;
    animation-delay: 1.2s;
}

.ytw-orb-3 {
    width: 280px;
    height: 280px;
    background: rgba(139, 92, 246, 0.22);
    top: 58%;
    left: 46%;
    animation-delay: 2.4s;
}

@keyframes ytw-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.42;
    }

    50% {
        transform: translate3d(0, -24px, 0) scale(1.08);
        opacity: 0.7;
    }
}

.ytw-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) 16px;
}

.ytw-header {
    text-align: center;
    margin-bottom: clamp(22px, 4vw, 38px);
}

.ytw-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.ytw-app-icon {
    position: relative;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #8b5cf6 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.35);
}

.ytw-app-icon::before {
    content: "";
    position: absolute;
    inset: -5px;
    background: inherit;
    border-radius: 22px;
    filter: blur(12px);
    opacity: 0.36;
    animation: ytw-pulse 2.8s ease-in-out infinite;
}

.ytw-app-icon svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    position: relative;
    z-index: 1;
}

@keyframes ytw-pulse {
    0%, 100% {
        opacity: 0.26;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.48;
        transform: scale(1.04);
    }
}

.ytw-title {
    font-size: clamp(1.8rem, 3.8vw, 2.55rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: capitalize !important;
    color: #ffffff;
    max-width: 920px;
    margin: 0 auto;
    text-wrap: balance;
}

.ytw-subtitle {
    font-size: clamp(0.98rem, 2vw, 1.12rem);
    line-height: 1.55;
    color: var(--ytw-muted);
    font-weight: 500;
    margin: 12px auto 0;
    max-width: 720px;
    text-transform: capitalize !important;
}

.ytw-input-section {
    width: min(100%, 840px);
    margin: 0 auto clamp(22px, 4vw, 36px);
    padding: clamp(18px, 3vw, 28px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(15, 23, 42, 0.62));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: var(--ytw-radius-lg);
    border: 1px solid var(--ytw-border);
    box-shadow: var(--ytw-shadow);
}

.ytw-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.ytw-input-field {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(148, 163, 184, 0.7) !important;
    border-radius: 14px !important;
    color: #111827 !important;
    font-size: 1rem !important;
    line-height: 54px !important;
    font-weight: 500 !important;
    resize: none !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(15, 23, 42, 0.14) !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.22s ease !important;
}

.ytw-input-field:focus {
    outline: none !important;
    border-color: var(--ytw-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22), 0 14px 34px rgba(15, 23, 42, 0.2) !important;
}

.ytw-input-field::placeholder {
    color: #64748b !important;
}

.ytw-btn {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    font-size: 0.98rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
}

.ytw-btn::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -110%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.52s ease;
}

.ytw-btn:hover::before {
    left: 110%;
}

.ytw-btn:hover {
    transform: translateY(-2px);
}

.ytw-btn:active {
    transform: translateY(0);
}

.ytw-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28), 0 12px 30px rgba(15, 23, 42, 0.28);
}

.ytw-btn svg {
    flex: 0 0 auto;
}

.ytw-btn-paste {
    background: linear-gradient(135deg, #334155 0%, #111827 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
}

.ytw-btn-paste:hover {
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.34);
    filter: brightness(1.05);
}

.ytw-btn-search {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 58%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 14px 34px rgba(236, 72, 153, 0.34);
}

.ytw-btn-search:hover:not(:disabled) {
    box-shadow: 0 18px 44px rgba(236, 72, 153, 0.44);
    filter: saturate(1.08);
}

.ytw-btn-search:disabled,
.ytw-btn-download:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.2);
}

.ytw-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 840px);
    margin: 0 auto clamp(24px, 4vw, 40px);
}

.ytw-feature-card {
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid var(--ytw-border);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    text-align: center;
    box-shadow: var(--ytw-shadow-soft);
}

.ytw-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--ytw-border-strong);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.32);
}

.ytw-feature-icon {
    font-size: 1.85rem;
    line-height: 1;
    margin-bottom: 9px;
    display: block;
}

.ytw-feature-text {
    display: block;
    font-size: 0.9rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.ytw-loading {
    display: none;
    text-align: center;
    padding: clamp(28px, 5vw, 48px) 20px;
    background: var(--ytw-surface);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: var(--ytw-radius-lg);
    margin: 24px 0;
    border: 1px solid var(--ytw-border);
    box-shadow: var(--ytw-shadow-soft);
}

.ytw-loading p {
    color: var(--ytw-muted);
    font-weight: 600;
    font-size: 1rem;
}

.ytw-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-left-color: var(--ytw-accent);
    border-radius: 999px;
    animation: ytw-spin 0.9s linear infinite;
    margin: 0 auto 14px;
}

@keyframes ytw-spin {
    to {
        transform: rotate(360deg);
    }
}

.ytw-channel-container {
    display: none;
}

.ytw-channel-banner {
    width: 100%;
    height: clamp(180px, 28vw, 320px);
    background-size: cover;
    background-position: center;
    border-radius: var(--ytw-radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ytw-shadow);
    border: 1px solid var(--ytw-border);
}

.ytw-channel-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.78));
}

.ytw-channel-header,
.ytw-videos-section {
    background: var(--ytw-surface);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: var(--ytw-radius-lg);
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: 24px;
    border: 1px solid var(--ytw-border);
    box-shadow: var(--ytw-shadow);
}

.ytw-channel-main-info {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ytw-channel-avatar {
    position: relative;
    flex: 0 0 auto;
}

.ytw-channel-avatar::before {
    content: "";
    position: absolute;
    inset: -7px;
    background: linear-gradient(135deg, var(--ytw-accent), var(--ytw-accent-2), var(--ytw-accent-3));
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.38;
}

.ytw-channel-avatar img {
    position: relative;
    z-index: 1;
    width: clamp(88px, 12vw, 126px);
    height: clamp(88px, 12vw, 126px);
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

.ytw-channel-details {
    flex: 1 1 280px;
    min-width: 0;
}

.ytw-channel-name {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #ffffff;
    word-break: break-word;
}

.ytw-verified-badge {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.34);
    flex: 0 0 auto;
}

.ytw-channel-handle {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ytw-muted);
    margin-bottom: 14px;
    font-weight: 600;
    word-break: break-word;
}

.ytw-channel-description {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
    overflow-wrap: anywhere;
}

.ytw-channel-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ytw-channel-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.34);
    color: #fde68a;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ytw-channel-link:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(251, 191, 36, 0.58);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
}

.ytw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ytw-stat-card {
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.ytw-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--ytw-border-strong);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.ytw-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    transition: transform 0.22s ease;
    color: #ffffff;
}

.ytw-stat-card:hover .ytw-stat-icon {
    transform: scale(1.06);
}

.ytw-stat-icon.users {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.ytw-stat-icon.views {
    background: linear-gradient(135deg, #10b981, #059669);
}

.ytw-stat-icon.calendar {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ytw-stat-icon.location {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.ytw-stat-value {
    font-size: clamp(1.16rem, 2.5vw, 1.65rem);
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    word-break: break-word;
}

.ytw-stat-label {
    font-size: 0.76rem;
    color: var(--ytw-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ytw-section-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
}

.ytw-section-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--ytw-accent), var(--ytw-accent-2));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex: 0 0 auto;
}

.ytw-section-title {
    font-size: clamp(1.28rem, 3vw, 1.78rem);
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
}

.ytw-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.ytw-video-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    cursor: pointer;
}

.ytw-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 52px rgba(2, 6, 23, 0.34);
    border-color: var(--ytw-border-strong);
}

.ytw-video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.ytw-video-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0);
    transition: background 0.22s ease;
    z-index: 1;
}

.ytw-video-card:hover .ytw-video-thumbnail::before {
    background: rgba(2, 6, 23, 0.34);
}

.ytw-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--ytw-accent), var(--ytw-accent-2));
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.96;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.38);
}

.ytw-video-card:hover .ytw-play-button {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.48);
}

.ytw-play-button svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    margin-left: 2px;
}

.ytw-video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(2, 6, 23, 0.86);
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    z-index: 3;
}

.ytw-video-info {
    padding: 15px;
}

.ytw-video-title {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.22s ease;
}

.ytw-video-card:hover .ytw-video-title {
    color: #fde68a;
}

.ytw-video-meta {
    color: var(--ytw-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.ytw-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 18px;
    overflow-y: auto;
}

.ytw-modal-content {
    width: min(100%, 1120px);
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.ytw-modal-close {
    position: absolute;
    top: -52px;
    right: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.ytw-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.ytw-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #000000;
}

.ytw-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.38);
    color: #fecaca;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin: 24px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ytw-error h3 {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.08rem;
    color: #ffffff;
}

.ytw-download-modal-content {
    width: min(100%, 900px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--ytw-surface-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--ytw-radius-lg);
    border: 1px solid var(--ytw-border);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
    padding: clamp(20px, 3vw, 32px);
    margin: 20px auto;
    position: relative;
}

.ytw-download-modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ytw-download-modal-title {
    font-size: clamp(1.12rem, 2.6vw, 1.45rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.38;
}

.ytw-download-modal-thumbnail {
    width: min(200px, 60vw);
    height: auto;
    border-radius: 16px;
    margin: 0 auto 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    display: block;
}

.ytw-download-modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ytw-download-info-item {
    text-align: center;
    min-width: 0;
}

.ytw-download-info-label {
    font-size: 0.76rem;
    color: var(--ytw-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.ytw-download-info-value {
    font-size: 0.98rem;
    color: #fde68a;
    font-weight: 800;
    word-break: break-word;
}

.ytw-download-formats-section {
    margin-bottom: 24px;
}

.ytw-download-section-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.ytw-download-section-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--ytw-accent), var(--ytw-accent-2));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.82rem;
}

.ytw-download-formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.ytw-download-format-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    position: relative;
    overflow: hidden;
}

.ytw-download-format-card:hover {
    transform: translateY(-3px);
    border-color: var(--ytw-border-strong);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.3);
}

.ytw-download-format-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ytw-download-format-type {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ytw-download-format-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.ytw-download-format-icon.audio {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.ytw-download-format-icon.video {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.audio {
    color: inherit;
}

.video {
    color: inherit;
}

.users {
    color: inherit;
}

.views {
    color: inherit;
}

.calendar {
    color: inherit;
}

.location {
    color: inherit;
}

.ytw-download-format-label {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.ytw-download-format-quality {
    font-size: 0.78rem;
    color: #fde68a;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.16);
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.34);
    white-space: nowrap;
}

.ytw-btn-download {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #ffffff;
    border: 0;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    width: 100%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.26);
}

.ytw-btn-download:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.38);
    filter: saturate(1.08);
}

.ytw-download-loading {
    text-align: center;
    padding: 38px 20px;
}

.ytw-download-loading-spinner {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    position: relative;
}

.ytw-download-loading-spinner::before,
.ytw-download-loading-spinner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.ytw-download-loading-spinner::before {
    border: 4px solid rgba(255, 255, 255, 0.14);
}

.ytw-download-loading-spinner::after {
    border: 4px solid transparent;
    border-top-color: var(--ytw-accent);
    animation: ytw-downloadSpin 0.9s linear infinite;
}

@keyframes ytw-downloadSpin {
    to {
        transform: rotate(360deg);
    }
}

.ytw-download-loading-text {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 7px;
}

.ytw-download-loading-subtext {
    font-size: 0.9rem;
    color: var(--ytw-muted);
}

.ytw-download-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.ytw-download-loading-dot {
    width: 6px;
    height: 6px;
    background: var(--ytw-accent);
    border-radius: 999px;
    animation: ytw-downloadDots 1.4s ease-in-out infinite;
}

.ytw-download-loading-dot:nth-child(2) {
    animation-delay: 0.18s;
}

.ytw-download-loading-dot:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes ytw-downloadDots {
    0%, 60%, 100% {
        opacity: 0.32;
        transform: scale(0.82);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.ytw-download-progress-container {
    margin-top: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.ytw-download-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ytw-download-progress-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
}

.ytw-download-progress-percentage {
    font-size: 0.96rem;
    font-weight: 900;
    color: #fde68a;
}

.ytw-download-progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(2, 6, 23, 0.56);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ytw-download-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ytw-download-progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    animation: ytw-progressShimmer 1.8s ease-in-out infinite;
}

@keyframes ytw-progressShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ytw-download-progress-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ytw-btn-cancel {
    background: linear-gradient(135deg, #ef4444, #be123c);
    color: #ffffff;
    border: 0;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.25);
}

.ytw-btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(239, 68, 68, 0.34);
    filter: saturate(1.06);
}

.ytw-download-complete {
    text-align: center;
    padding: 22px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.38);
    border-radius: 16px;
    margin-top: 14px;
}

.ytw-download-complete-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.28);
}

.ytw-download-complete-text {
    font-size: 1.04rem;
    font-weight: 800;
    color: #a7f3d0;
}

.ytw-hidden {
    display: none !important;
}

.ytw-flex {
    display: flex !important;
}

.ytw-items-center {
    align-items: center !important;
}

.ytw-gap-2 {
    gap: 0.5rem !important;
}

@media (max-width: 992px) {
    .ytw-container {
        width: min(100%, 920px);
        padding: 28px 16px;
    }

    .ytw-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ytw-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .ytw-wrapper {
        min-height: auto;
    }

    .ytw-container {
        padding: 24px 14px;
    }

    .ytw-header {
        margin-bottom: 22px;
    }

    .ytw-app-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .ytw-app-icon svg {
        width: 26px;
        height: 26px;
    }

    .ytw-title {
        font-size: clamp(1.55rem, 6vw, 2.1rem);
        line-height: 1.22;
    }

    .ytw-subtitle {
        font-size: 0.98rem;
        margin-top: 10px;
    }

    .ytw-input-section {
        padding: 18px;
        border-radius: 18px;
    }

    .ytw-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .ytw-input-field {
        width: 100% !important;
        max-width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        line-height: 52px !important;
        font-size: 1rem !important;
        padding: 0 16px !important;
    }

    .ytw-btn,
    .ytw-btn-paste,
    .ytw-btn-search {
        width: 100%;
        min-height: 52px;
        padding: 0 16px;
        font-size: 0.96rem;
    }

    .ytw-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ytw-feature-card {
        padding: 15px;
    }

    .ytw-channel-main-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ytw-channel-details {
        width: 100%;
        flex-basis: auto;
    }

    .ytw-channel-name {
        justify-content: center;
        width: 100% !important;
        font-size: 1.35rem;
    }

    .ytw-channel-handle {
        width: 100% !important;
        font-size: 0.95rem;
    }

    .ytw-channel-description {
        width: 100% !important;
        font-size: 0.92rem;
        padding: 14px !important;
    }

    .ytw-channel-links {
        justify-content: center;
    }

    .ytw-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .ytw-download-formats-grid,
    .ytw-download-modal-info {
        grid-template-columns: 1fr;
    }

    .ytw-modal {
        padding: 56px 12px 18px;
    }

    .ytw-modal-content {
        top: auto;
        transform: none;
    }

    .ytw-modal-close {
        top: -46px;
        right: 0;
    }

    .ytw-download-modal-content {
        max-height: calc(100vh - 28px);
        margin: 0 auto;
        padding: 18px;
    }

    .ytw-download-progress-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ytw-download-progress-actions,
    .ytw-btn-cancel {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .ytw-container {
        padding: 20px 12px;
    }

    .ytw-title {
        font-size: 1.42rem;
    }

    .ytw-subtitle {
        font-size: 0.92rem;
    }

    .ytw-input-section {
        padding: 14px;
    }

    .ytw-input-field {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 50px !important;
        font-size: 0.95rem !important;
        padding: 0 14px !important;
    }

    .ytw-btn,
    .ytw-btn-paste,
    .ytw-btn-search {
        min-height: 50px;
        font-size: 0.92rem;
    }

    .ytw-channel-header,
    .ytw-videos-section {
        padding: 16px;
        border-radius: 18px;
    }

    .ytw-stat-card,
    .ytw-download-format-card {
        padding: 15px;
    }

    .ytw-download-format-header {
        align-items: flex-start;
        flex-direction: column;
    }
}