@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@400;500;600;700;800&display=swap");

/* Global reset - scoped to prevent conflicts */
        .ytdv-wrapper * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Main wrapper - replaces body styling */
        .ytdv-wrapper {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: #ffffff;
            min-height: 100vh;
            line-height: 1.5;
        }
        
        .ytdv-container {
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Header */
        .ytdv-header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
        }
        
        .ytdv-logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .ytdv-logo {
            width: 50px;
            height: 50px;
            background: #ffffff;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }
        
        .ytdv-youtube-icon {
            width: 28px;
            height: 28px;
            fill: #ff0000;
        }
        
        .ytdv-title {
            font-size: 2.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff, #f1f2f6);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
        }
        
        .ytdv-subtitle {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }
        
        /* Input Section */
        .ytdv-input-section {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        .ytdv-input-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            text-align: center;
        }
        
        .ytdv-input-group {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }
        
        .ytdv-input-field {
            flex: 1;
            padding: 14px 18px !important;
            border: 2px solid rgba(255, 255, 255, 0.2) !important;
            border-radius: 12px !important;
            background: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
            font-size: 14px !important;
            font-weight: 500;
            transition: all 0.3s ease !important;
            font-family: 'Inter', sans-serif !important;
        }
        
        .ytdv-input-field:focus {
            outline: none;
            border-color: #ffffff;
            background: rgba(255, 255, 255, 0.15);
        }
        
        .ytdv-input-field::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        
        .ytdv-btn {
            padding: 14px 20px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ytdv-btn-paste {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .ytdv-btn-paste:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        
        .ytdv-btn-find {
            background: #dce7fd;
            color: #1e3c72;
            width: 100%;
            justify-content: center;
            padding: 16px;
            font-size: 16px;
            font-weight: 700;
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        }
        
        .ytdv-btn-find:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
        }
        
        .ytdv-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }
        
        .ytdv-btn-icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }
        
        /* Loading */
        .ytdv-loading {
            display: none;
            text-align: center;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .ytdv-loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top: 3px solid #ffffff;
            border-radius: 50%;
            animation: ytdv-spin 1s linear infinite;
            margin: 0 auto 20px;
        }
        
        .ytdv-loading-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
        }
        
        /* Results */
        .ytdv-results {
            display: none;
        }
        
        .ytdv-video-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }
        
        /* Video Header */
        .ytdv-video-header {
            padding: 25px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .ytdv-thumbnail-container {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            aspect-ratio: 16/9;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .ytdv-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .ytdv-video-info .ytdv-video-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
            margin-bottom: 15px;
            line-height: 1.3;
        }
        
        .ytdv-channel-info {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            margin-bottom: 20px;
        }
        
        .ytdv-channel-avatar {
            width: 40px;
            height: 40px;
            background: #ffffff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .ytdv-channel-icon {
            width: 20px;
            height: 20px;
            fill: #ff0000;
        }
        
        .ytdv-channel-details .ytdv-channel-name {
            font-size: 1rem;
            font-weight: 600;
            color: white;
            margin-bottom: 2px;
        }
        
        .ytdv-channel-link {
            color: #ffffff;
            text-decoration: none;
            font-weight: 600;
        }
        
        .ytdv-channel-link:hover {
            color: rgba(255, 255, 255, 0.8);
        }
        
        .ytdv-verified-text {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
        }
        
        /* Stats Grid */
        .ytdv-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }
        
        .ytdv-stat-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease;
        }
        
        .ytdv-stat-card:hover {
            transform: translateY(-3px);
        }
        
        .ytdv-stat-icon {
            width: 24px;
            height: 24px;
            margin: 0 auto 8px;
            padding: 6px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .ytdv-stat-card.ytdv-views .ytdv-stat-icon {
            background: #ffffff;
        }
        
        .ytdv-stat-card.ytdv-likes .ytdv-stat-icon {
            background: #ffffff;
        }
        
        .ytdv-stat-card.ytdv-published .ytdv-stat-icon {
            background: #ffffff;
        }
        
        .ytdv-stat-icon svg {
            width: 12px;
            height: 12px;
            fill: #1e3c72;
        }
        
        .ytdv-stat-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }
        
        .ytdv-stat-value {
            font-size: 1.1rem;
            font-weight: 700;
            color: white;
        }
        
        /* Description Section */
        .ytdv-description-section {
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ytdv-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .ytdv-section-title {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .ytdv-section-icon {
            width: 40px;
            height: 40px;
            background: #ffffff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .ytdv-section-icon svg {
            width: 20px;
            height: 20px;
            fill: #1e3c72;
        }
        
        .ytdv-section-title-text .ytdv-section-heading {
            font-size: 1.2rem;
            font-weight: 700;
            color: white;
            margin-bottom: 2px;
        }
        
        .ytdv-section-title-text .ytdv-section-subheading {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .ytdv-copy-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ytdv-copy-btn:hover {
            transform: translateY(-2px);
        }
        
        .ytdv-copy-btn.ytdv-copied {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .ytdv-copy-icon {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }
        
        .ytdv-description-content {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #ffffff;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.6;
            font-size: 0.9rem;
            white-space: pre-wrap;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        /* Captions Section */
        .ytdv-captions-section {
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ytdv-captions-icon {
            background: #ffffff;
        }
        
        .ytdv-captions-content {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            border-left: 4px solid #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ytdv-caption-item {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }
        
        .ytdv-caption-dot {
            width: 8px;
            height: 8px;
            background: #ffffff;
            border-radius: 50%;
        }
        
        .ytdv-caption-label {
            color: #ffffff;
            font-weight: 600;
        }
        
        .ytdv-caption-value {
            color: rgba(255, 255, 255, 0.9);
        }
        
        /* Error State */
        .ytdv-error {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
            margin-bottom: 30px;
        }
        
        .ytdv-error-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }
        
        .ytdv-error .ytdv-error-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 10px;
        }
        
        .ytdv-error .ytdv-error-message {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 8px;
        }
        
        .ytdv-error .ytdv-error-details {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.85rem;
        }
        
        /* Features Grid */
        .ytdv-features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }
        
        .ytdv-feature-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease;
        }
        
        .ytdv-feature-card:hover {
            transform: translateY(-5px);
        }
        
        .ytdv-feature-icon {
            font-size: 1.8rem;
            margin-bottom: 8px;
            display: block;
        }
        
        .ytdv-feature-text {
            font-size: 0.85rem;
            font-weight: 600;
            color: white;
        }
        
        /* Animations */
        @keyframes ytdv-spin {
            to {
                transform: rotate(360deg);
            }
        }
        
        /* Custom Scrollbar - scoped to wrapper */
        .ytdv-wrapper ::-webkit-scrollbar {
            width: 6px;
        }
        
        .ytdv-wrapper ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }
        
        .ytdv-wrapper ::-webkit-scrollbar-thumb {
            background: #ffffff;
            border-radius: 3px;
        }
        
        /* Responsive Design */
        @media (max-width: 992px) {
            .ytdv-container {
                max-width: 90%;
                padding: 15px;
            }
            
            .ytdv-title {
                font-size: 2rem;
            }
            
            .ytdv-input-section {
                padding: 25px;
            }
            
            .ytdv-video-header {
                padding: 20px;
            }
            
            .ytdv-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
					
					.ytdv-logo {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	margin-top: 80px;
}
        }
        
        @media (max-width: 768px) {
            .ytdv-container {
                max-width: 95%;
                padding: 10px;
            }
            
            .ytdv-title {
                font-size: 1.8rem;
            }
            
            .ytdv-input-group {
                flex-direction: column;
            }
            
            .ytdv-input-section,
            .ytdv-loading,
            .ytdv-error {
                padding: 20px;
            }
            
            .ytdv-video-header,
            .ytdv-description-section,
            .ytdv-captions-section {
                padding: 15px;
            }
            
            .ytdv-section-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .ytdv-stats-grid {
                grid-template-columns: 1fr;
            }
            
            .ytdv-features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
					
					.ytdv-logo {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	margin-top: 80px;
}
        }
        
        @media (max-width: 600px) {
            .ytdv-container {
                padding: 8px;
            }
            
            .ytdv-title {
                font-size: 1.6rem;
            }
            
            .ytdv-logo-container {
                flex-direction: column;
                gap: 10px;
            }
            
            .ytdv-btn-find {
                padding: 14px;
                font-size: 15px;
            }
            
            .ytdv-features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            
            .ytdv-feature-card {
                padding: 15px;
            }
					
					.ytdv-logo {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	margin-top: 80px;
}
        }
        
        @media (max-width: 400px) {
            .ytdv-container {
                padding: 5px;
            }
            
            .ytdv-title {
                font-size: 1.4rem;
            }
            
            .ytdv-header {
                padding: 20px 0;
                margin-bottom: 20px;
            }
            
            .ytdv-input-section {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .ytdv-input-title {
                font-size: 1.1rem;
            }
            
            .ytdv-btn {
                padding: 12px 16px;
                font-size: 13px;
            }
            
            .ytdv-features-grid {
                grid-template-columns: 1fr;
            }
					
					.ytdv-logo {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	margin-top: 80px;
}
        }
        
        @media (max-width: 375px) {
            .ytdv-title {
                font-size: 1.3rem;
            }
            
            .ytdv-subtitle {
                font-size: 0.9rem;
            }
            
            .ytdv-input-section {
                padding: 12px;
            }
            
            .ytdv-input-field {
                padding: 12px 15px;
                font-size: 13px;
            }
            
            .ytdv-btn {
                padding: 10px 14px;
                font-size: 12px;
            }
            
            .ytdv-stats-grid {
                gap: 10px;
            }
            
            .ytdv-stat-card {
                padding: 12px;
            }
					
					.ytdv-logo {
	width: 50px;
	height: 50px;
	background: #ffffff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	margin-top: 80px;
}
        }
        
        /* Search Again Button */
        .ytdv-search-again-section {
            padding: 25px;
            background: rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
        }
        
        .ytdv-btn-search-again {
            background: #ffffff;
            color: #1e3c72;
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        }
        
        .ytdv-btn-search-again:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
        }
        
        .ytdv-search-again-icon {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

/* --- Codex CSS updates --- */
/* Global reset - scoped to prevent conflicts */
.ytdv-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main wrapper - replaces body styling */
.ytdv-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 0, 0, 0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #180708 0%, #3b0b0d 42%, #0f172a 100%);
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
}

.ytdv-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Header */
.ytdv-header {
    text-align: center;
    margin-bottom: 34px;
    padding: 26px 0 8px;
}

.ytdv-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 20px;
}

.ytdv-logo {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    flex: 0 0 auto;
}

.ytdv-youtube-icon {
    width: 30px;
    height: 30px;
    fill: #ff0033;
}

.ytdv-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff, #ffd7dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.12;
    letter-spacing: 0;
}

.ytdv-subtitle {
    font-size: 1rem;
    color: rgba(255, 242, 244, 0.86);
    font-weight: 500;
}

/* Input Section */
.ytdv-input-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.ytdv-input-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: center;
}

.ytdv-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
}

.ytdv-input-field {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 15px 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
}

.ytdv-input-field:focus {
    outline: none;
    border-color: #ff6b7a !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.18);
}

.ytdv-input-field::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.ytdv-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.ytdv-btn-paste {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ytdv-btn-paste:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.ytdv-btn-find {
    background: linear-gradient(135deg, #ff0033, #ff5b45);
    color: #ffffff;
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(255, 0, 51, 0.32);
}

.ytdv-btn-find:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(255, 0, 51, 0.42);
}

.ytdv-btn:focus-visible,
.ytdv-copy-btn:focus-visible,
.ytdv-btn-search-again:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.72);
    outline-offset: 3px;
}

.ytdv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ytdv-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

/* Loading */
.ytdv-loading {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ytdv-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.26);
    border-top: 3px solid #ff5b45;
    border-radius: 50%;
    animation: ytdv-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.ytdv-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

/* Results */
.ytdv-results {
    display: none;
}

.ytdv-video-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

/* Video Header */
.ytdv-video-header {
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ytdv-thumbnail-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.ytdv-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytdv-video-info {
    min-width: 0;
}

.ytdv-video-info .ytdv-video-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ytdv-channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    min-width: 0;
}

.ytdv-channel-avatar {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ytdv-channel-icon {
    width: 20px;
    height: 20px;
    fill: #ff0033;
}

.ytdv-channel-details {
    min-width: 0;
}

.ytdv-channel-details .ytdv-channel-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}

.ytdv-channel-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.ytdv-channel-link:hover {
    color: #ffc7ce;
}

.ytdv-verified-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

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

.ytdv-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ytdv-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
}

.ytdv-stat-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    padding: 7px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ytdv-stat-card.ytdv-views .ytdv-stat-icon {
    background: #ffffff;
}

.ytdv-stat-card.ytdv-likes .ytdv-stat-icon {
    background: #ffffff;
}

.ytdv-stat-card.ytdv-published .ytdv-stat-icon {
    background: #ffffff;
}

.ytdv-stat-icon svg {
    width: 14px;
    height: 14px;
    fill: #d8002b;
}

.ytdv-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ytdv-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    overflow-wrap: anywhere;
}

/* Description Section */
.ytdv-description-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.055);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ytdv-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.ytdv-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ytdv-section-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.ytdv-section-icon svg {
    width: 20px;
    height: 20px;
    fill: #d8002b;
}

.ytdv-section-title-text {
    min-width: 0;
}

.ytdv-section-title-text .ytdv-section-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.ytdv-section-title-text .ytdv-section-subheading {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.ytdv-copy-btn {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ytdv-copy-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.ytdv-copy-btn.ytdv-copied {
    background: rgba(255, 0, 51, 0.32);
}

.ytdv-copy-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.ytdv-description-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff5b45;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    font-size: 0.92rem;
    white-space: pre-wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow-wrap: anywhere;
}

/* Captions Section */
.ytdv-captions-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.055);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ytdv-captions-icon {
    background: #ffffff;
}

.ytdv-captions-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ff5b45;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ytdv-caption-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.ytdv-caption-dot {
    width: 8px;
    height: 8px;
    background: #ff5b45;
    border-radius: 50%;
    flex: 0 0 auto;
}

.ytdv-caption-label {
    color: #ffffff;
    font-weight: 700;
}

.ytdv-caption-value {
    color: rgba(255, 255, 255, 0.9);
}

/* Error State */
.ytdv-error {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 91, 69, 0.38);
    text-align: center;
    margin-bottom: 30px;
}

.ytdv-error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ytdv-error .ytdv-error-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.ytdv-error .ytdv-error-message {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 8px;
}

.ytdv-error .ytdv-error-details {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

/* Features Grid */
.ytdv-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ytdv-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, background 0.3s ease;
}

.ytdv-feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.14);
}

.ytdv-feature-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.ytdv-feature-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

/* Search Again Button */
.ytdv-search-again-section {
    padding: 25px;
    background: rgba(255, 255, 255, 0.055);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.ytdv-btn-search-again {
    background: #ffffff;
    color: #d8002b;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.22);
}

.ytdv-btn-search-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(255, 255, 255, 0.3);
}

.ytdv-search-again-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Animations */
@keyframes ytdv-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar - scoped to wrapper */
.ytdv-wrapper ::-webkit-scrollbar {
    width: 6px;
}

.ytdv-wrapper ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ytdv-wrapper ::-webkit-scrollbar-thumb {
    background: #ff5b45;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ytdv-container {
        max-width: 1200px;
        width: 100%;
        padding: 28px 18px;
    }

    .ytdv-title {
        font-size: 2.35rem;
    }

    .ytdv-input-section {
        padding: 26px;
    }

    .ytdv-video-header {
        padding: 22px;
    }

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

    .ytdv-logo {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 768px) {
    .ytdv-container {
        max-width: 1200px;
        width: 100%;
        padding: 24px 14px;
    }

    .ytdv-title {
        font-size: 2rem;
    }

    .ytdv-input-group {
        flex-direction: column;
    }

    .ytdv-btn,
    .ytdv-btn-paste {
        width: 100%;
    }

    .ytdv-input-section,
    .ytdv-loading,
    .ytdv-error {
        padding: 22px;
    }

    .ytdv-video-header,
    .ytdv-description-section,
    .ytdv-captions-section {
        padding: 18px;
    }

    .ytdv-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ytdv-section-title {
        align-items: flex-start;
    }

    .ytdv-copy-btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .ytdv-logo {
        width: 52px;
        height: 52px;
    }
}

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

    .ytdv-header {
        padding: 16px 0 4px;
        margin-bottom: 24px;
    }

    .ytdv-title {
        font-size: 1.72rem;
    }

    .ytdv-logo-container {
        flex-direction: column;
        gap: 12px;
    }

    .ytdv-btn-find {
        padding: 14px;
        font-size: 15px;
    }

    .ytdv-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ytdv-feature-card {
        padding: 16px 12px;
    }

    .ytdv-logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 400px) {
    .ytdv-container {
        padding: 18px 10px;
    }

    .ytdv-title {
        font-size: 1.48rem;
    }

    .ytdv-header {
        padding: 12px 0;
        margin-bottom: 20px;
    }

    .ytdv-input-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .ytdv-input-title {
        font-size: 1.1rem;
    }

    .ytdv-btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    .ytdv-features-grid {
        grid-template-columns: 1fr;
    }

    .ytdv-logo {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 375px) {
    .ytdv-title {
        font-size: 1.36rem;
    }

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

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

    .ytdv-input-field {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    .ytdv-btn {
        padding: 11px 13px;
        font-size: 12px;
    }

    .ytdv-stats-grid {
        gap: 10px;
    }

    .ytdv-stat-card {
        padding: 12px;
    }

    .ytdv-logo {
        width: 46px;
        height: 46px;
    }
}