.ytsd-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ytsd-container h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.35rem;
    color: #1e293b;
}

#ytsd-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

#ytsd-url {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#ytsd-url:focus {
    border-color: #2563eb;
}

#ytsd-submit {
    padding: 12px 24px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#ytsd-submit:hover {
    background: #b91c1c;
}

#ytsd-loader {
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 16px;
}

.ytsd-card {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ytsd-thumb {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ytsd-card h4 {
    margin: 8px 0 16px 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.ytsd-table {
    width: 100%;
    border-collapse: collapse;
}

.ytsd-table th, .ytsd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.9rem;
}

.ytsd-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.ytsd-badge {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ytsd-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.ytsd-btn:hover {
    background: #1d4ed8;
}

.ytsd-error {
    padding: 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-weight: 500;
}

.ytsd-ad-slot {
    margin: 16px 0;
    text-align: center;
    background: #f8fafc;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}
