.ytdp-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 1rem;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
    color: #f3f4f6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ytdp-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ytdp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ytdp-logo svg {
    width: 32px;
    height: 32px;
    color: #ef4444;
}

.ytdp-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.ytdp-header p {
    color: #9ca3af;
    font-size: 0.875rem;
}

.ytdp-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .ytdp-input-group {
        flex-direction: row;
    }
}

.ytdp-input-group input {
    flex: 1;
    background: #1f2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.ytdp-input-group input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.ytdp-input-group button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ytdp-input-group button:hover {
    background: #dc2626;
}

.ytdp-alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.ytdp-alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.ytdp-card {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .ytdp-card {
        flex-direction: row;
    }
}

.ytdp-avatar-container {
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .ytdp-avatar-container {
        width: 200px;
    }
}

.ytdp-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ytdp-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ytdp-info h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #fff;
}

.ytdp-res-picker {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ytdp-res-picker button {
    background: #374151;
    border: none;
    color: #9ca3af;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ytdp-res-picker button.active {
    background: #ef4444;
    color: white;
}

.ytdp-btn-download {
    display: block;
    background: #10b981;
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.ytdp-btn-download:hover {
    background: #059669;
}

.ytdp-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: ytdp-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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